0
0
Fork 0

[twitch:vod] Improve _VALID_URL (closes #17135)

main
Sergey M․ 2018-08-02 23:16:15 +07:00
parent 19b9de13c4
commit 644921b372
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with 4 additions and 1 deletions

View File

@ -240,7 +240,7 @@ class TwitchVodIE(TwitchItemBaseIE):
_VALID_URL = r'''(?x) _VALID_URL = r'''(?x)
https?:// https?://
(?: (?:
(?:(?:www|go|m)\.)?twitch\.tv/(?:[^/]+/v|videos)/| (?:(?:www|go|m)\.)?twitch\.tv/(?:[^/]+/v(?:ideo)?|videos)/|
player\.twitch\.tv/\?.*?\bvideo=v player\.twitch\.tv/\?.*?\bvideo=v
) )
(?P<id>\d+) (?P<id>\d+)
@ -296,6 +296,9 @@ class TwitchVodIE(TwitchItemBaseIE):
}, { }, {
'url': 'https://m.twitch.tv/beagsandjam/v/247478721', 'url': 'https://m.twitch.tv/beagsandjam/v/247478721',
'only_matching': True, 'only_matching': True,
}, {
'url': 'https://www.twitch.tv/northernlion/video/291940395',
'only_matching': True,
}] }]
def _real_extract(self, url): def _real_extract(self, url):