Browse Source

[nowvideo] Support more domains

totalwebcasting
Sergey M․ 10 years ago
parent
commit
7cd3bc5f99
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      youtube_dl/extractor/generic.py
  2. +1
    -1
      youtube_dl/extractor/nowvideo.py

+ 1
- 1
youtube_dl/extractor/generic.py View File

@ -519,7 +519,7 @@ class GenericIE(InfoExtractor):
# Look for embedded NowVideo player
mobj = re.search(
r'<iframe[^>]+?src=(["\'])(?P<url>http://(?:(?:embed|www)\.)?nowvideo\.(?:ch|sx|eu)/embed\.php.+?)\1', webpage)
r'<iframe[^>]+?src=(["\'])(?P<url>http://(?:(?: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')


+ 1
- 1
youtube_dl/extractor/nowvideo.py View File

@ -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'


Loading…
Cancel
Save