Browse Source

[dotsub] Fix extraction

master
Sergey M․ 9 years ago
parent
commit
5090d93f2c
1 changed files with 2 additions and 1 deletions
  1. 3
      youtube_dl/extractor/dotsub.py

3
youtube_dl/extractor/dotsub.py

@ -36,7 +36,8 @@ class DotsubIE(InfoExtractor):
if not video_url: if not video_url:
webpage = self._download_webpage(url, video_id) webpage = self._download_webpage(url, video_id)
video_url = self._search_regex( video_url = self._search_regex(
r'"file"\s*:\s*\'([^\']+)', webpage, 'video url')
[r'<source[^>]+src="([^"]+)"', r'"file"\s*:\s*\'([^\']+)'],
webpage, 'video url')
return { return {
'id': video_id, 'id': video_id,

Loading…
Cancel
Save