projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3359fb6
)
[vine] Extend _VALID_URL
author
Sergey M․
<dstftw@gmail.com>
Thu, 9 Apr 2015 16:40:18 +0000
(22:40 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 9 Apr 2015 16:40:18 +0000
(22:40 +0600)
youtube_dl/extractor/vine.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vine.py
b/youtube_dl/extractor/vine.py
index 804adbdb080e15c02686626d147f25d1f5c718c8..a4d5af14748a91a9ede4c5b586a4d49568ad6416 100644
(file)
--- a/
youtube_dl/extractor/vine.py
+++ b/
youtube_dl/extractor/vine.py
@@
-9,7
+9,7
@@
from ..utils import unified_strdate
class VineIE(InfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?vine\.co/
v
/(?P<id>\w+)'
+ _VALID_URL = r'https?://(?:www\.)?vine\.co/
(?:v|oembed)
/(?P<id>\w+)'
_TESTS = [{
'url': 'https://vine.co/v/b9KOOWX7HUx',
'md5': '2f36fed6235b16da96ce9b4dc890940d',
@@
-49,6
+49,9
@@
class VineIE(InfoExtractor):
'uploader': 'Z3k3',
'uploader_id': '936470460173008896',
},
+ }, {
+ 'url': 'https://vine.co/oembed/MYxVapFvz2z.json',
+ 'only_matching': True,
}]
def _real_extract(self, url):