Browse Source

[anitube] Relax key regex (Closes #7303)

Another variant seen http://anitubebr.xpg.uol.com.br/embed/
totalwebcasting
Sergey M․ 9 years ago
parent
commit
6722ebd437
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      youtube_dl/extractor/anitube.py

+ 2
- 2
youtube_dl/extractor/anitube.py View File

@ -26,8 +26,8 @@ class AnitubeIE(InfoExtractor):
video_id = mobj.group('id') video_id = mobj.group('id')
webpage = self._download_webpage(url, video_id) webpage = self._download_webpage(url, video_id)
key = self._html_search_regex(
r'http://www\.anitube\.se/embed/([A-Za-z0-9_-]*)', webpage, 'key')
key = self._search_regex(
r'src=["\']https?://[^/]+/embed/([A-Za-z0-9_-]+)', webpage, 'key')
config_xml = self._download_xml( config_xml = self._download_xml(
'http://www.anitube.se/nuevo/econfig.php?key=%s' % key, key) 'http://www.anitube.se/nuevo/econfig.php?key=%s' % key, key)


Loading…
Cancel
Save