Преглед на файлове

Fix missing cast preventing detection of already downloaded file

Ricardo Garcia преди 16 години
родител
ревизия
6a0015a7e0
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      youtube-dl

+ 2 - 2
youtube-dl

@@ -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()