X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fvevo.py;h=49a249ae32a901ea3bc5be431b2a510a09fc95bc;hb=5c5de1c79ac9084e63d2a5b1a1b814ae2b819c8c;hp=7aa04ef6893375dd6bc3551028fe014fdf1069db;hpb=70d1924f8ba4d200ba43b0f1a1ea25d9e193c878;p=youtube-dl.git diff --git a/youtube_dl/extractor/vevo.py b/youtube_dl/extractor/vevo.py index 7aa04ef68..49a249ae3 100644 --- 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 ( - unified_strdate, ExtractorError, ) class VevoIE(InfoExtractor): - _VALID_URL = r'http://www.vevo.com/watch/.*?/.*?/(?P.*)$' + """ + 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.*)$' def _real_extract(self, url): mobj = re.match(self._VALID_URL, url)