diff options
Diffstat (limited to 'youtube_dl/downloader')
| -rw-r--r-- | youtube_dl/downloader/hls.py | 2 | ||||
| -rw-r--r-- | youtube_dl/downloader/rtmp.py | 5 | 
2 files changed, 5 insertions, 2 deletions
diff --git a/youtube_dl/downloader/hls.py b/youtube_dl/downloader/hls.py index 9d407fe6e..9f29e2f81 100644 --- a/youtube_dl/downloader/hls.py +++ b/youtube_dl/downloader/hls.py @@ -25,7 +25,7 @@ class HlsFD(FileDownloader):              except (OSError, IOError):                  pass          else: -            self.report_error(u'm3u8 download detected but ffmpeg or avconv could not be found') +            self.report_error(u'm3u8 download detected but ffmpeg or avconv could not be found. Please install one.')          cmd = [program] + args          retval = subprocess.call(cmd) diff --git a/youtube_dl/downloader/rtmp.py b/youtube_dl/downloader/rtmp.py index 78b1e7cd2..68646709a 100644 --- a/youtube_dl/downloader/rtmp.py +++ b/youtube_dl/downloader/rtmp.py @@ -96,6 +96,7 @@ class RtmpFD(FileDownloader):          flash_version = info_dict.get('flash_version', None)          live = info_dict.get('rtmp_live', False)          conn = info_dict.get('rtmp_conn', None) +        protocol = info_dict.get('rtmp_protocol', None)          self.report_destination(filename)          tmpfilename = self.temp_name(filename) @@ -105,7 +106,7 @@ class RtmpFD(FileDownloader):          try:              subprocess.call(['rtmpdump', '-h'], stdout=(open(os.path.devnull, 'w')), stderr=subprocess.STDOUT)          except (OSError, IOError): -            self.report_error('RTMP download detected but "rtmpdump" could not be run') +            self.report_error('RTMP download detected but "rtmpdump" could not be run. Please install it.')              return False          # Download using rtmpdump. rtmpdump returns exit code 2 when @@ -133,6 +134,8 @@ class RtmpFD(FileDownloader):                  basic_args += ['--conn', entry]          elif isinstance(conn, compat_str):              basic_args += ['--conn', conn] +        if protocol is not None: +            basic_args += ['--protocol', protocol]          args = basic_args + [[], ['--resume', '--skip', '1']][not live and self.params.get('continuedl', False)]          if sys.platform == 'win32' and sys.version_info < (3, 0):  | 
