aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMobiDotS <msaad615@gmail.com>2019-10-16 10:13:35 -0500
committerremitamine <remitamine@gmail.com>2019-10-16 15:13:35 +0000
commitbc48773ed4c068adfe67078714814035660e5ca4 (patch)
treec1d4fb16c269efd55d49bbc1749aa259e5963bf7
parentd07866f13efac39bf3f0b331870a15e0f5e98057 (diff)
downloadyoutube-dl-bc48773ed4c068adfe67078714814035660e5ca4.tar.xz
[twitch] update VOD URL matching (closes #22395) (#22727)
-rw-r--r--youtube_dl/extractor/twitch.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.py
index 0500e33a6..ca7676fe2 100644
--- a/youtube_dl/extractor/twitch.py
+++ b/youtube_dl/extractor/twitch.py
@@ -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):