projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10c0e2d
)
[rtmp] Add support for multiple AFM data entries
author
Sergey M․
<dstftw@gmail.com>
Thu, 1 May 2014 14:14:21 +0000
(21:14 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 1 May 2014 14:14:21 +0000
(21:14 +0700)
youtube_dl/downloader/rtmp.py
patch
|
blob
|
history
diff --git
a/youtube_dl/downloader/rtmp.py
b/youtube_dl/downloader/rtmp.py
index 94233bcc391446ca697e84dce9ca900e0b7a06eb..78b1e7cd2227f328b1dcbc6096c8a95b2d421a51 100644
(file)
--- 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)]