aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/twitch.py
diff options
context:
space:
mode:
authorBenjamin Congdon <bencongdon96@gmail.com>2016-03-07 21:03:24 -0600
committerBenjamin Congdon <bencongdon96@gmail.com>2016-03-07 21:03:24 -0600
commitac45505528a71e729a47153ce60053f861e644a9 (patch)
tree248d7d667af98a78197c120c9efca4473036f4cb /youtube_dl/extractor/twitch.py
parent7404061141147d0346d6c27e7a76ff7285658219 (diff)
Added flag for 'allow_audio_only' format in Twitch queries
Diffstat (limited to 'youtube_dl/extractor/twitch.py')
-rw-r--r--youtube_dl/extractor/twitch.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.py
index 8639293e3..958bf8fff 100644
--- a/youtube_dl/extractor/twitch.py
+++ b/youtube_dl/extractor/twitch.py
@@ -252,6 +252,7 @@ class TwitchVodIE(TwitchItemBaseIE):
self._USHER_BASE, item_id,
compat_urllib_parse.urlencode({
'allow_source': 'true',
+ 'allow_audio_only': 'true',
'allow_spectre': 'true',
'player': 'twitchweb',
'nauth': access_token['token'],
@@ -431,6 +432,7 @@ class TwitchStreamIE(TwitchBaseIE):
query = {
'allow_source': 'true',
+ 'allow_audio_only': 'true',
'p': random.randint(1000000, 10000000),
'player': 'twitchweb',
'segment_preference': '4',