From: Benjamin Congdon Date: Tue, 8 Mar 2016 03:03:24 +0000 (-0600) Subject: Added flag for 'allow_audio_only' format in Twitch queries X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=ac45505528a71e729a47153ce60053f861e644a9;p=youtube-dl Added flag for 'allow_audio_only' format in Twitch queries --- 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',