projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
721f5a2
)
[anitube] Relax key regex (Closes #7303)
author
Sergey M․
<dstftw@gmail.com>
Fri, 30 Oct 2015 15:00:36 +0000
(21:00 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 30 Oct 2015 15:00:36 +0000
(21:00 +0600)
Another variant seen http://anitubebr.xpg.uol.com.br/embed/
youtube_dl/extractor/anitube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/anitube.py
b/youtube_dl/extractor/anitube.py
index 31f0d417ce420de69f9e06ac0498242dc913bf73..23f942ae2d039cf92c9a67934a07d3062f744b0d 100644
(file)
--- 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)