Browse Source

[rtmp] Add support for multiple AFM data entries

totalwebcasting
Sergey M․ 11 years ago
parent
commit
eb45133451
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      youtube_dl/downloader/rtmp.py

+ 5
- 1
youtube_dl/downloader/rtmp.py View File

@ -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)]


Loading…
Cancel
Save