Ver código fonte

FileDownloader: fixed call to "report_error" of YoutubeDL

It was being called as "error"
Jaime Marquínez Ferrándiz 12 anos atrás
pai
commit
2e32528012
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      youtube_dl/FileDownloader.py

+ 1 - 1
youtube_dl/FileDownloader.py

@@ -137,7 +137,7 @@ class FileDownloader(object):
         self.ydl.report_warning(*args, **kargs)
 
     def report_error(self, *args, **kargs):
-        self.ydl.error(*args, **kargs)
+        self.ydl.report_error(*args, **kargs)
 
     def slow_down(self, start_time, byte_counter):
         """Sleep if the download speed is over the rate limit."""