mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
fetcher.http: send url to debug log before request
This commit is contained in:
parent
d6eba115ba
commit
cb710e6001
@ -11,6 +11,7 @@ from svtplay_dl.utils.urllib import urlopen, Request, HTTPError
|
||||
|
||||
def download_http(options, url):
|
||||
""" Get the stream from HTTP """
|
||||
log.debug("Fetching %s", url)
|
||||
request = Request(url)
|
||||
request.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user