MTVIE: add support for Vevo videos (related #913)
[youtube-dl] / youtube_dl / extractor / vevo.py
index 7aa04ef6893375dd6bc3551028fe014fdf1069db..aa88e1a92e587a9d68075ac6a5196e35ce7857af 100644 (file)
@@ -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)