Browse Source

Fix erroneous "content too short" error message

master
Ricardo Garcia 14 years ago
parent
commit
b905e5f583
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube-dl

2
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

Loading…
Cancel
Save