]> jfr.im git - yt-dlp.git/commitdiff
[extractor/twitch:vod] Support links from schedule tab (#7071)
authorFlorian Albrechtskirchinger <redacted>
Mon, 29 May 2023 14:30:20 +0000 (16:30 +0200)
committerGitHub <redacted>
Mon, 29 May 2023 14:30:20 +0000 (20:00 +0530)
Authored by: falbrechtskirchinger

yt_dlp/extractor/twitch.py

index d7a1cc531ae7056e01fad77cdeaf5a5baec96b23..4a17d80489a38a5495cb31b15c028dd46d1e42cc 100644 (file)
@@ -194,7 +194,8 @@ class TwitchVodIE(TwitchBaseIE):
                     https?://
                         (?:
                             (?:(?:www|go|m)\.)?twitch\.tv/(?:[^/]+/v(?:ideo)?|videos)/|
-                            player\.twitch\.tv/\?.*?\bvideo=v?
+                            player\.twitch\.tv/\?.*?\bvideo=v?|
+                            www\.twitch\.tv/[^/]+/schedule\?vodID=
                         )
                         (?P<id>\d+)
                     '''
@@ -363,6 +364,9 @@ class TwitchVodIE(TwitchBaseIE):
             'skip_download': True
         },
         'expected_warnings': ['Unable to download JSON metadata: HTTP Error 403: Forbidden']
+    }, {
+        'url': 'https://www.twitch.tv/tangotek/schedule?vodID=1822395420',
+        'only_matching': True,
     }]
 
     def _download_info(self, item_id):