projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef4f454
)
Fix erroneous "content too short" error message
author
Ricardo Garcia
<sarbalap+freshmeat@gmail.com>
Sun, 12 Dec 2010 18:21:09 +0000
(19:21 +0100)
committer
Ricardo Garcia
<sarbalap+freshmeat@gmail.com>
Sun, 12 Dec 2010 18:21:09 +0000
(19:21 +0100)
youtube-dl
patch
|
blob
|
history
diff --git
a/youtube-dl
b/youtube-dl
index 4cb84b22a1398695bc6823cbac8c8e36ff7b02e8..7d4344ae03e0ccaed3f455ae178de8828037b070 100755
(executable)
--- 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