1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-13 05:27:17 +08:00

re #11535 Added support for player.twitch.tv urls

This commit is contained in:
Robert Smith 2016-12-25 14:44:10 -08:00
parent b63005f5af
commit e37c5858a2

View File

@ -206,7 +206,8 @@ class TwitchChapterIE(TwitchItemBaseIE):
class TwitchVodIE(TwitchItemBaseIE):
IE_NAME = 'twitch:vod'
_VALID_URL = r'%s/[^/]+/v/(?P<id>\d+)' % TwitchBaseIE._VALID_URL_BASE
_VALID_URL_BASE = r'https?://(?:www\.|player\.)?twitch\.tv'
_VALID_URL = r'%s/(?:[^/]+/v/|\?video=v)(?P<id>\d+)' % _VALID_URL_BASE
_ITEM_TYPE = 'vod'
_ITEM_SHORTCUT = 'v'