aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/twitch.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-10-23 17:20:45 +0700
committerSergey M․ <dstftw@gmail.com>2016-10-23 17:20:45 +0700
commit9aa929d33778e9073e554421a53520f81af43eac (patch)
treefcce5414d8e9fa24431ee5c4ed443b252bb03273 /youtube_dl/extractor/twitch.py
parent425f3fdfcb4a559da836bbada82f2bb06d34b707 (diff)
downloadyoutube-dl-9aa929d33778e9073e554421a53520f81af43eac.zip
youtube-dl-9aa929d33778e9073e554421a53520f81af43eac.tar.gz
youtube-dl-9aa929d33778e9073e554421a53520f81af43eac.tar.bz2
[twitch:stream] Add support for rebroadcasts (closes #10995)
Diffstat (limited to 'youtube_dl/extractor/twitch.py')
-rw-r--r--youtube_dl/extractor/twitch.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.py
index 46c2cfe..77414a2 100644
--- a/youtube_dl/extractor/twitch.py
+++ b/youtube_dl/extractor/twitch.py
@@ -398,7 +398,7 @@ class TwitchStreamIE(TwitchBaseIE):
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 @@ class TwitchStreamIE(TwitchBaseIE):
query = {
'allow_source': 'true',
'allow_audio_only': 'true',
+ 'allow_spectre': 'true',
'p': random.randint(1000000, 10000000),
'player': 'twitchweb',
'segment_preference': '4',