projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8ff645
)
[dotsub] Fix extraction
author
Sergey M․
<dstftw@gmail.com>
Fri, 24 Apr 2015 15:47:13 +0000
(21:47 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 24 Apr 2015 15:47:13 +0000
(21:47 +0600)
youtube_dl/extractor/dotsub.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/dotsub.py
b/youtube_dl/extractor/dotsub.py
index f51d88a986b79d65cae3c1604ee3d16e9515c0fd..e9ca236d4a03c13b1b29b3386535c4262332dab0 100644
(file)
--- a/
youtube_dl/extractor/dotsub.py
+++ b/
youtube_dl/extractor/dotsub.py
@@
-36,7
+36,8
@@
class DotsubIE(InfoExtractor):
if not video_url:
webpage = self._download_webpage(url, video_id)
video_url = self._search_regex(
- r'"file"\s*:\s*\'([^\']+)', webpage, 'video url')
+ [r'<source[^>]+src="([^"]+)"', r'"file"\s*:\s*\'([^\']+)'],
+ webpage, 'video url')
return {
'id': video_id,