From: Sergey M․ Date: Sat, 5 Apr 2014 09:38:57 +0000 (+0700) Subject: [nowvideo] Support more domains X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=7cd3bc5f99f76fb6e8bdc94f8c26338da65d47d9;p=youtube-dl [nowvideo] Support more domains --- diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 1c45ebb00..e0d227aec 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -519,7 +519,7 @@ class GenericIE(InfoExtractor): # Look for embedded NowVideo player mobj = re.search( - r']+?src=(["\'])(?Phttp://(?:(?:embed|www)\.)?nowvideo\.(?:ch|sx|eu)/embed\.php.+?)\1', webpage) + r']+?src=(["\'])(?Phttp://(?:(?:embed|www)\.)?nowvideo\.(?:ch|sx|eu|at|ag|co)/embed\.php.+?)\1', webpage) if mobj is not None: return self.url_result(mobj.group('url'), 'NowVideo') diff --git a/youtube_dl/extractor/nowvideo.py b/youtube_dl/extractor/nowvideo.py index 8e6ec2344..bfba18418 100644 --- a/youtube_dl/extractor/nowvideo.py +++ b/youtube_dl/extractor/nowvideo.py @@ -7,7 +7,7 @@ class NowVideoIE(NovaMovIE): IE_NAME = 'nowvideo' IE_DESC = 'NowVideo' - _VALID_URL = NovaMovIE._VALID_URL_TEMPLATE % {'host': 'nowvideo\.(?:ch|sx|eu)'} + _VALID_URL = NovaMovIE._VALID_URL_TEMPLATE % {'host': 'nowvideo\.(?:ch|sx|eu|at|ag|co)'} _HOST = 'www.nowvideo.ch'