aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/vevo.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-06-24 13:54:19 +0200
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-06-24 13:54:19 +0200
commit1c251cd9482bd0168ca844ad281317b5c19cd607 (patch)
tree61c5bbf30d38808a5b810589b6aca04a15ca8b56 /youtube_dl/extractor/vevo.py
parent70d1924f8ba4d200ba43b0f1a1ea25d9e193c878 (diff)
downloadyoutube-dl-1c251cd9482bd0168ca844ad281317b5c19cd607.tar.xz
MTVIE: add support for Vevo videos (related #913)
Diffstat (limited to 'youtube_dl/extractor/vevo.py')
-rw-r--r--youtube_dl/extractor/vevo.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube_dl/extractor/vevo.py b/youtube_dl/extractor/vevo.py
index 7aa04ef68..aa88e1a92 100644
--- a/youtube_dl/extractor/vevo.py
+++ b/youtube_dl/extractor/vevo.py
@@ -8,7 +8,11 @@ from ..utils import (
)
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)