projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b51a4eb
)
[twitch:vod] Expand _VALID_URL (closes #11846)
author
Sergey M․
<dstftw@gmail.com>
Fri, 27 Jan 2017 14:31:26 +0000
(21:31 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 27 Jan 2017 14:33:05 +0000
(21:33 +0700)
youtube_dl/extractor/twitch.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/twitch.py
b/youtube_dl/extractor/twitch.py
index 6d67bda86d7bc61e92fe11ce5b67a5e6d9327422..1ca159a4db62b70dfea23d93e37fb04324b6f563 100644
(file)
--- 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):