1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-06-06 22:56:18 +08:00

Added flag for 'allow_audio_only' in Twitch extractor queries

This commit is contained in:
Benjamin Congdon
2016-03-07 09:42:51 -06:00
Unverified
parent 7404061141
commit cc5898150e
+2
View File
@@ -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',