1
mirror of https://github.com/yt-dlp/yt-dlp synced 2024-12-20 00:35:54 +01:00

Fix missing cast preventing detection of already downloaded file

This commit is contained in:
Ricardo Garcia 2009-05-27 23:02:37 +02:00
parent 7db85b2c70
commit 6a0015a7e0

View File

@ -397,8 +397,8 @@ class FileDownloader(object):
raise
data = urllib2.urlopen(basic_request)
content_length = data.info()['Content-Length']
if content_length is not None and content_length == resume_len:
self.report_file_already_downloaded(self.name)
if content_length is not None and long(content_length) == resume_len:
self.report_file_already_downloaded(stream.name)
return
else:
self.report_unable_to_resume()