aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-04-24 21:47:13 +0600
committerSergey M․ <dstftw@gmail.com>2015-04-24 21:47:13 +0600
commit5090d93f2c7e5d40cd6d7a8c9eda789f67bd1eb8 (patch)
tree047307a274c9c50db3cce9ffc2c08fc9e413b765
parentc8ff645766aa56742045adcf0c64b92617334eb5 (diff)
[dotsub] Fix extraction
-rw-r--r--youtube_dl/extractor/dotsub.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/dotsub.py b/youtube_dl/extractor/dotsub.py
index f51d88a98..e9ca236d4 100644
--- 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,