Fix erroneous "content too short" error message
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>
Sun, 12 Dec 2010 18:21:09 +0000 (19:21 +0100)
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>
Sun, 12 Dec 2010 18:21:09 +0000 (19:21 +0100)
youtube-dl

index 4cb84b22a1398695bc6823cbac8c8e36ff7b02e8..7d4344ae03e0ccaed3f455ae178de8828037b070 100755 (executable)
@@ -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