瀏覽代碼

Fix erroneous "content too short" error message

Ricardo Garcia 14 年之前
父節點
當前提交
b905e5f583
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube-dl

+ 1 - 1
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