소스 검색

[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)