diff options
| author | Sergey M․ <dstftw@gmail.com> | 2014-05-01 21:14:21 +0700 | 
|---|---|---|
| committer | Sergey M․ <dstftw@gmail.com> | 2014-05-01 21:14:21 +0700 | 
| commit | eb451334514d77b3e0fd7a63ea99c7c266199ef8 (patch) | |
| tree | 245b6adf1e2dc4ff5dbd245218d613371f3e5bea | |
| parent | 10c0e2d818830df0130a276b7d75a8c09705d892 (diff) | |
[rtmp] Add support for multiple AFM data entries
| -rw-r--r-- | youtube_dl/downloader/rtmp.py | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/youtube_dl/downloader/rtmp.py b/youtube_dl/downloader/rtmp.py index 94233bcc3..78b1e7cd2 100644 --- a/youtube_dl/downloader/rtmp.py +++ b/youtube_dl/downloader/rtmp.py @@ -10,6 +10,7 @@ from .common import FileDownloader  from ..utils import (      encodeFilename,      format_bytes, +    compat_str,  ) @@ -127,7 +128,10 @@ class RtmpFD(FileDownloader):              basic_args += ['--flashVer', flash_version]          if live:              basic_args += ['--live'] -        if conn: +        if isinstance(conn, list): +            for entry in conn: +                basic_args += ['--conn', entry] +        elif isinstance(conn, compat_str):              basic_args += ['--conn', conn]          args = basic_args + [[], ['--resume', '--skip', '1']][not live and self.params.get('continuedl', False)] | 
