浏览代码

[downloader/hls] Return False if ffmpeg or avconv couldn't be found

Jaime Marquínez Ferrándiz 11 年之前
父节点
当前提交
baf2907501
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      youtube_dl/downloader/hls.py

+ 1 - 0
youtube_dl/downloader/hls.py

@@ -24,6 +24,7 @@ class HlsFD(FileDownloader):
                 break
         else:
             self.report_error(u'm3u8 download detected but ffmpeg or avconv could not be found. Please install one.')
+            return False
         cmd = [program] + args
 
         retval = subprocess.call(cmd)