Skip to content

Commit

Permalink
[twitch:vod] Improve _VALID_URL (closes #17135)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey M․ committed Aug 2, 2018
1 parent 19b9de1 commit 644921b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion youtube_dl/extractor/twitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ class TwitchVodIE(TwitchItemBaseIE):
_VALID_URL = r'''(?x)
https?://
(?:
(?:(?:www|go|m)\.)?twitch\.tv/(?:[^/]+/v|videos)/|
(?:(?:www|go|m)\.)?twitch\.tv/(?:[^/]+/v(?:ideo)?|videos)/|
player\.twitch\.tv/\?.*?\bvideo=v
)
(?P<id>\d+)
Expand Down Expand Up @@ -296,6 +296,9 @@ class TwitchVodIE(TwitchItemBaseIE):
}, {
'url': 'https://m.twitch.tv/beagsandjam/v/247478721',
'only_matching': True,
}, {
'url': 'https://www.twitch.tv/northernlion/video/291940395',
'only_matching': True,
}]

def _real_extract(self, url):
Expand Down

0 comments on commit 644921b

Please sign in to comment.