A feature-rich command-line audio/video downloader
Fix missing cast preventing detection of already downloaded file
Ricardo Garcia6a0015a7e0de
diff --git a/youtube-dl b/youtube-dlindex 591b7fc33f..6afdc0e6a2 100755--- a/youtube-dl+++ b/youtube-dl@@ -397,8 +397,8 @@ class FileDownloader(object):raisedata = 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)returnelse:self.report_unable_to_resume()