MTVIE: add support for Vevo videos (related #913)

This commit is contained in:
Jaime Marquínez Ferrándiz 2013-06-24 13:54:19 +02:00
parent 70d1924f8b
commit 1c251cd948
2 changed files with 13 additions and 1 deletions

View 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)