diff options
author | Ricardo Garcia <sarbalap+freshmeat@gmail.com> | 2009-05-27 23:02:37 +0200 |
---|---|---|
committer | Ricardo Garcia <sarbalap+freshmeat@gmail.com> | 2010-10-31 11:24:36 +0100 |
commit | 6a0015a7e0deaf7f82e64fbfb5ee62d2058dd95f (patch) | |
tree | 850de1cdbeeabfdbe2c867ad127d7d8e538233f1 | |
parent | 7db85b2c70eb933e7b52eebaf2d5401abd502f6b (diff) |
Fix missing cast preventing detection of already downloaded file
-rwxr-xr-x | youtube-dl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube-dl b/youtube-dl index 591b7fc33..6afdc0e6a 100755 --- a/youtube-dl +++ b/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() |