mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
Added flag for 'allow_audio_only' format in Twitch queries
This commit is contained in:
parent
7404061141
commit
ac45505528
1 changed files with 2 additions and 0 deletions
|
@ -252,6 +252,7 @@ def _real_extract(self, url):
|
|||
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 @@ def _real_extract(self, url):
|
|||
|
||||
query = {
|
||||
'allow_source': 'true',
|
||||
'allow_audio_only': 'true',
|
||||
'p': random.randint(1000000, 10000000),
|
||||
'player': 'twitchweb',
|
||||
'segment_preference': '4',
|
||||
|
|
Loading…
Reference in a new issue