diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-04-24 21:47:13 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-04-24 21:47:13 +0600 |
commit | 5090d93f2c7e5d40cd6d7a8c9eda789f67bd1eb8 (patch) | |
tree | 047307a274c9c50db3cce9ffc2c08fc9e413b765 /youtube_dl/extractor | |
parent | c8ff645766aa56742045adcf0c64b92617334eb5 (diff) |
[dotsub] Fix extraction
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/dotsub.py | 3 |
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, |