projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f74a734
)
[youtube] Expand _VALID_URL to support vid.plus
author
Sergey M․
<dstftw@gmail.com>
Sun, 16 Aug 2015 20:04:13 +0000
(
02:04
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 16 Aug 2015 20:04:13 +0000
(
02:04
+0600)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index 4d1ca92986b680aed75a6f34b8052fa5d5903656..8e2da46e3ad68d902a2757dcc9b4e4613c7adb45 100644
(file)
--- a/
youtube_dl/extractor/youtube.py
+++ b/
youtube_dl/extractor/youtube.py
@@
-202,7
+202,10
@@
class YoutubeIE(YoutubeBaseInfoExtractor):
v=
)
))
- |youtu\.be/ # just youtu.be/xxxx
+ |(?:
+ youtu\.be| # just youtu.be/xxxx
+ vid\.plus # or vid.plus/xxxx
+ )/
|(?:www\.)?cleanvideosearch\.com/media/action/yt/watch\?videoId=
)
)? # all until now is optional -> you can pass the naked ID
@@
-624,6
+627,10
@@
class YoutubeIE(YoutubeBaseInfoExtractor):
'params': {
'skip_download': True,
},
+ },
+ {
+ 'url': 'http://vid.plus/FlRa-iH7PGw',
+ 'only_matching': True,
}
]