diff options
author | Jaime Marquínez Ferrándiz <[email protected]> | 2014-06-06 14:55:19 +0200 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <[email protected]> | 2014-06-06 14:55:19 +0200 |
commit | 087ca2cb07be342bed18e4d0630a4089249b931f (patch) | |
tree | f6d0bde6c17159dcb0731a29161de5d18423185f /youtube_dl/downloader/rtmp.py | |
parent | 70e322695db9d67ba3ab35bf660d92be5e7e55f1 (diff) | |
download | youtube-dl-087ca2cb07be342bed18e4d0630a4089249b931f.tar.gz youtube-dl-087ca2cb07be342bed18e4d0630a4089249b931f.zip |
[naver] Add rtmp formats (fixes #3054)
Diffstat (limited to 'youtube_dl/downloader/rtmp.py')
-rw-r--r-- | youtube_dl/downloader/rtmp.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/downloader/rtmp.py b/youtube_dl/downloader/rtmp.py index 78b1e7cd2..cc6a84106 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) @@ -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): |