aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-01-27 21:31:26 +0700
committerSergey M․ <dstftw@gmail.com>2017-01-27 21:33:05 +0700
commit0b23c222ba099d73c287d024f45f90714c15f289 (patch)
treef2a5e08e57b3d14894eead7092da1cdc4a2f2fd9 /youtube_dl
parentb51a4ebed45a3944c02bb3c36778630fd9306de7 (diff)
[twitch:vod] Expand _VALID_URL (closes #11846)
Diffstat (limited to 'youtube_dl')
-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 6d67bda86..1ca159a4d 100644
--- a/youtube_dl/extractor/twitch.py
+++ b/youtube_dl/extractor/twitch.py
@@ -209,7 +209,7 @@ class TwitchVodIE(TwitchItemBaseIE):
_VALID_URL = r'''(?x)
https?://
(?:
- (?:www\.)?twitch\.tv/[^/]+/v/|
+ (?:www\.)?twitch\.tv/(?:[^/]+/v|videos)/|
player\.twitch\.tv/\?.*?\bvideo=v
)
(?P<id>\d+)
@@ -259,6 +259,9 @@ class TwitchVodIE(TwitchItemBaseIE):
}, {
'url': 'http://player.twitch.tv/?t=5m10s&video=v6528877',
'only_matching': True,
+ }, {
+ 'url': 'https://www.twitch.tv/videos/6528877',
+ 'only_matching': True,
}]
def _real_extract(self, url):