agourlay / dlm

Minimal HTTP download manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] Custom User-Agent

chromer030 opened this issue Β· comments

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' 

This sounds reasonable and should be pretty easy to implement πŸ‘

Fixed in 3485a7f.
Will be part of the next release.

vielen dank !

@chromer030 0.2.3 is out πŸš€
Please give those two new features a try!

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)