commit 5090d93f2c7e5d40cd6d7a8c9eda789f67bd1eb8
parent c8ff645766aa56742045adcf0c64b92617334eb5
Author: Sergey M․ <dstftw@gmail.com>
Date: Fri, 24 Apr 2015 21:47:13 +0600
[dotsub] Fix extraction
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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,