[extractor/twitch] Support mobile clips (#6699)

Authored by: bepvte
This commit is contained in:
bepvte 2023-05-28 22:54:36 -07:00 committed by GitHub
parent 94627c5dde
commit 02312c03cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1075,7 +1075,7 @@ class TwitchClipsIE(TwitchBaseIE):
https?:// https?://
(?: (?:
clips\.twitch\.tv/(?:embed\?.*?\bclip=|(?:[^/]+/)*)| clips\.twitch\.tv/(?:embed\?.*?\bclip=|(?:[^/]+/)*)|
(?:(?:www|go|m)\.)?twitch\.tv/[^/]+/clip/ (?:(?:www|go|m)\.)?twitch\.tv/(?:[^/]+/)?clip/
) )
(?P<id>[^/?#&]+) (?P<id>[^/?#&]+)
''' '''
@ -1111,6 +1111,9 @@ class TwitchClipsIE(TwitchBaseIE):
}, { }, {
'url': 'https://go.twitch.tv/rossbroadcast/clip/ConfidentBraveHumanChefFrank', 'url': 'https://go.twitch.tv/rossbroadcast/clip/ConfidentBraveHumanChefFrank',
'only_matching': True, 'only_matching': True,
}, {
'url': 'https://m.twitch.tv/clip/FaintLightGullWholeWheat',
'only_matching': True,
}] }]
def _real_extract(self, url): def _real_extract(self, url):