1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-13 03:37:23 +08:00

fix Request.full_url incompatibility with python2

This commit is contained in:
Sergey Korabanov 2017-01-02 21:38:52 +08:00 committed by arichi
parent d324742a17
commit 50e8b765a1

View File

@ -40,7 +40,7 @@ class HttpFD(FileDownloader):
"(peak rate = %.2fKiB/s, block rate = %.2fKiB/s, downloaded %.0fKiB before throttling)") % (
peak_rate / 1024, block_rate / 1024, (byte_counter - last_range_start) / 1024))
request.add_header('Range', 'bytes=%d-' % byte_counter)
request = sanitized_Request(request.full_url, None, request.headers)
request = sanitized_Request(request.get_full_url(), None, request.headers)
try:
new_data = self.ydl.urlopen(request)
throttled = True