[Feature Request] Custom User-Agent
chromer030 opened this issue Β· comments
rmoghadam commented
In some situations without custom user-agent , downloading is not possible, and server doesn't respond to request because only specific or very recent or standard browser's UA are accepted, for example streaming websites.
Please consider implementing this essential feature.
Proposed feature look likes this :
dlm -U 'user agent'
dlm -U 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36'
Arnaud Gourlay commented
This sounds reasonable and should be pretty easy to implement π
Arnaud Gourlay commented
Fixed in 3485a7f.
Will be part of the next release.
rmoghadam commented
vielen dank !
Arnaud Gourlay commented
@chromer030 0.2.3 is out π
Please give those two new features a try!
rmoghadam commented
Tested and working like charm, thanks alot.
./dlm -i 1.txt -M 1 -o . --proxy http://127.0.0.1:10809 -U 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36'
[2022-01-31 23:56:17] Starting dlm with at most 1 concurrent downloads
[2022-01-31 23:56:17] Found 1 URLs in input file 1.txt
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ 0/1
google-chrome-stable_current_amd64. [00:00:26] [###>------------------------------------] 7.69MiB/86.65MiB (speed:998.92KiB/s) (eta:2m)