[twitch] update VOD URL matching (closes #22395) (#22727)
authorMobiDotS <msaad615@gmail.com>
Wed, 16 Oct 2019 15:13:35 +0000 (10:13 -0500)
committerremitamine <remitamine@gmail.com>
Wed, 16 Oct 2019 15:13:35 +0000 (15:13 +0000)
youtube_dl/extractor/twitch.py

index 0500e33a65c92a9667f84ca20f1c72e832365cad..ca7676fe2f139773e2752ad3126076929124d76b 100644 (file)
@@ -248,7 +248,7 @@ class TwitchVodIE(TwitchItemBaseIE):
                     https?://
                         (?:
                             (?:(?:www|go|m)\.)?twitch\.tv/(?:[^/]+/v(?:ideo)?|videos)/|
-                            player\.twitch\.tv/\?.*?\bvideo=v
+                            player\.twitch\.tv/\?.*?\bvideo=v?
                         )
                         (?P<id>\d+)
                     '''
@@ -306,6 +306,9 @@ class TwitchVodIE(TwitchItemBaseIE):
     }, {
         'url': 'https://www.twitch.tv/northernlion/video/291940395',
         'only_matching': True,
+    }, {
+        'url': 'https://player.twitch.tv/?video=480452374',
+        'only_matching': True,
     }]
 
     def _real_extract(self, url):