From be154ccbe2dd1eea5ca3539e5092b54e9e18fa24 Mon Sep 17 00:00:00 2001 From: felix Date: Tue, 29 Nov 2016 13:57:30 +0100 Subject: [PATCH] [downloader/rtmp] add support for SecureToken verification --- youtube_dl/downloader/rtmp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/youtube_dl/downloader/rtmp.py b/youtube_dl/downloader/rtmp.py index fbb7f51b0..37e33ad99 100644 --- a/youtube_dl/downloader/rtmp.py +++ b/youtube_dl/downloader/rtmp.py @@ -106,6 +106,7 @@ class RtmpFD(FileDownloader): conn = info_dict.get('rtmp_conn') protocol = info_dict.get('rtmp_protocol') real_time = info_dict.get('rtmp_real_time', False) + securetoken = info_dict.get('rtmp_securetoken') no_resume = info_dict.get('no_resume', False) continue_dl = self.params.get('continuedl', True) @@ -149,6 +150,8 @@ class RtmpFD(FileDownloader): basic_args += ['--protocol', protocol] if real_time: basic_args += ['--realtime'] + if securetoken is not None: + basic_args += ['--token', securetoken] args = basic_args if not no_resume and continue_dl and not live: