aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-10-30 21:00:36 +0600
committerSergey M․ <dstftw@gmail.com>2015-10-30 21:00:36 +0600
commit6722ebd43720e836af8217fa078fa1a604b98229 (patch)
treec59fefa69815be496a3089afba41f0653e183de0 /youtube_dl/extractor
parent721f5a277ca0012ee72c9d4b3e5550e52a0a596d (diff)
[anitube] Relax key regex (Closes #7303)
Another variant seen http://anitubebr.xpg.uol.com.br/embed/
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/anitube.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/anitube.py b/youtube_dl/extractor/anitube.py
index 31f0d417c..23f942ae2 100644
--- a/youtube_dl/extractor/anitube.py
+++ b/youtube_dl/extractor/anitube.py
@@ -26,8 +26,8 @@ class AnitubeIE(InfoExtractor):
video_id = mobj.group('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(
'http://www.anitube.se/nuevo/econfig.php?key=%s' % key, key)