瀏覽代碼

Report no connect as error

Sergey M․ 12 年之前
父節點
當前提交
826547870b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/downloader/rtmp.py

+ 1 - 1
youtube_dl/downloader/rtmp.py

@@ -160,7 +160,7 @@ class RtmpFD(FileDownloader):
         retval = run_rtmpdump(args)
 
         if retval == RD_NO_CONNECT:
-            self.to_screen(u'[rtmpdump] Could not connect to RTMP server.')
+            self.report_error(u'[rtmpdump] Could not connect to RTMP server.')
             return False
 
         while (retval == RD_INCOMPLETE or retval == RD_FAILED) and not test: