1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-11-18 12:39:26 +01:00

[twitch:vod] Expand _VALID_URL (closes #11846)

This commit is contained in:
Sergey M․ 2017-01-27 21:31:26 +07:00
parent b51a4ebed4
commit 0b23c222ba
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -209,7 +209,7 @@ class TwitchVodIE(TwitchItemBaseIE):
_VALID_URL = r'''(?x) _VALID_URL = r'''(?x)
https?:// https?://
(?: (?:
(?:www\.)?twitch\.tv/[^/]+/v/| (?:www\.)?twitch\.tv/(?:[^/]+/v|videos)/|
player\.twitch\.tv/\?.*?\bvideo=v player\.twitch\.tv/\?.*?\bvideo=v
) )
(?P<id>\d+) (?P<id>\d+)
@ -259,6 +259,9 @@ class TwitchVodIE(TwitchItemBaseIE):
}, { }, {
'url': 'http://player.twitch.tv/?t=5m10s&video=v6528877', 'url': 'http://player.twitch.tv/?t=5m10s&video=v6528877',
'only_matching': True, 'only_matching': True,
}, {
'url': 'https://www.twitch.tv/videos/6528877',
'only_matching': True,
}] }]
def _real_extract(self, url): def _real_extract(self, url):