projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[vice:show] Add extractor (Closes #8847)
[youtube-dl]
/
youtube_dl
/
extractor
/
twitch.py
diff --git
a/youtube_dl/extractor/twitch.py
b/youtube_dl/extractor/twitch.py
index 8639293e35a79875c40b3933b5531381c2b3d077..958bf8fff58b4264742871ba019d9f8c5be21adb 100644
(file)
--- 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',
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'],
'allow_spectre': 'true',
'player': 'twitchweb',
'nauth': access_token['token'],
@@
-431,6
+432,7
@@
class TwitchStreamIE(TwitchBaseIE):
query = {
'allow_source': 'true',
query = {
'allow_source': 'true',
+ 'allow_audio_only': 'true',
'p': random.randint(1000000, 10000000),
'player': 'twitchweb',
'segment_preference': '4',
'p': random.randint(1000000, 10000000),
'player': 'twitchweb',
'segment_preference': '4',