aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>2010-12-12 19:21:09 +0100
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>2010-12-12 19:21:09 +0100
commitb905e5f583d06678ab0a54b53a227208de7c35ee (patch)
treeee0dce574e6a74bc941bdfc57843665c1956771e
parentef4f4544a24633655a9347176ed475322e6dacf0 (diff)
Fix erroneous "content too short" error message
-rwxr-xr-xyoutube-dl2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube-dl b/youtube-dl
index 4cb84b22a..7d4344ae0 100755
--- a/youtube-dl
+++ b/youtube-dl
@@ -648,7 +648,7 @@ class FileDownloader(object):
stream.close()
self.report_finish()
- if data_len is not None and str(byte_counter) != data_len:
+ if data_len is not None and byte_counter != data_len:
raise ContentTooShortError(byte_counter, long(data_len))
self.try_rename(tmpfilename, filename)
return True