From b905e5f583d06678ab0a54b53a227208de7c35ee Mon Sep 17 00:00:00 2001 From: Ricardo Garcia Date: Sun, 12 Dec 2010 19:21:09 +0100 Subject: [PATCH] Fix erroneous "content too short" error message --- youtube-dl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.40.0