From 9aa929d33778e9073e554421a53520f81af43eac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Sun, 23 Oct 2016 17:20:45 +0700 Subject: [PATCH] [twitch:stream] Add support for rebroadcasts (closes #10995) --- youtube_dl/extractor/twitch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.py index 46c2cfe7b..77414a242 100644 --- a/youtube_dl/extractor/twitch.py +++ b/youtube_dl/extractor/twitch.py @@ -398,7 +398,7 @@ def _real_extract(self, url): channel_id = self._match_id(url) stream = self._call_api( - 'kraken/streams/%s' % channel_id, channel_id, + 'kraken/streams/%s?stream_type=all' % channel_id, channel_id, 'Downloading stream JSON').get('stream') if not stream: @@ -417,6 +417,7 @@ def _real_extract(self, url): query = { 'allow_source': 'true', 'allow_audio_only': 'true', + 'allow_spectre': 'true', 'p': random.randint(1000000, 10000000), 'player': 'twitchweb', 'segment_preference': '4',