mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-22 15:57:23 +00:00
Fix missing cast preventing detection of already downloaded file
This commit is contained in:
parent
7db85b2c70
commit
6a0015a7e0
1 changed files with 2 additions and 2 deletions
|
@ -397,8 +397,8 @@ class FileDownloader(object):
|
||||||
raise
|
raise
|
||||||
data = urllib2.urlopen(basic_request)
|
data = urllib2.urlopen(basic_request)
|
||||||
content_length = data.info()['Content-Length']
|
content_length = data.info()['Content-Length']
|
||||||
if content_length is not None and content_length == resume_len:
|
if content_length is not None and long(content_length) == resume_len:
|
||||||
self.report_file_already_downloaded(self.name)
|
self.report_file_already_downloaded(stream.name)
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
self.report_unable_to_resume()
|
self.report_unable_to_resume()
|
||||||
|
|
Loading…
Reference in a new issue