projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests: Add coding to files
[youtube-dl]
/
youtube_dl
/
extractor
/
vevo.py
diff --git
a/youtube_dl/extractor/vevo.py
b/youtube_dl/extractor/vevo.py
index 7aa04ef6893375dd6bc3551028fe014fdf1069db..49a249ae32a901ea3bc5be431b2a510a09fc95bc 100644
(file)
--- a/
youtube_dl/extractor/vevo.py
+++ b/
youtube_dl/extractor/vevo.py
@@
-3,12
+3,15
@@
import json
from .common import InfoExtractor
from ..utils import (
from .common import InfoExtractor
from ..utils import (
- unified_strdate,
ExtractorError,
)
class VevoIE(InfoExtractor):
ExtractorError,
)
class VevoIE(InfoExtractor):
- _VALID_URL = r'http://www.vevo.com/watch/.*?/.*?/(?P<id>.*)$'
+ """
+ Accecps urls from vevo.com or in the format 'vevo:{id}'
+ (currently used by MTVIE)
+ """
+ _VALID_URL = r'((http://www.vevo.com/watch/.*?/.*?/)|(vevo:))(?P<id>.*)$'
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)