]> jfr.im git - yt-dlp.git/commitdiff
[extractor/twitch] Support mobile clips (#6699)
authorbepvte <redacted>
Mon, 29 May 2023 05:54:36 +0000 (22:54 -0700)
committerGitHub <redacted>
Mon, 29 May 2023 05:54:36 +0000 (11:24 +0530)
Authored by: bepvte

yt_dlp/extractor/twitch.py

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