Browse Source

[dump] Fix title extraction

totalwebcasting
Sergey M․ 10 years ago
parent
commit
fefc9d121d
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      youtube_dl/extractor/dump.py

+ 3
- 3
youtube_dl/extractor/dump.py View File

@ -28,12 +28,12 @@ class DumpIE(InfoExtractor):
video_url = self._search_regex( video_url = self._search_regex(
r's1.addVariable\("file",\s*"([^"]+)"', webpage, 'video URL') r's1.addVariable\("file",\s*"([^"]+)"', webpage, 'video URL')
thumb = self._og_search_thumbnail(webpage)
title = self._search_regex(r'<b>([^"]+)</b>', webpage, 'title')
title = self._og_search_title(webpage)
thumbnail = self._og_search_thumbnail(webpage)
return { return {
'id': video_id, 'id': video_id,
'title': title, 'title': title,
'url': video_url, 'url': video_url,
'thumbnail': thumb,
'thumbnail': thumbnail,
} }

Loading…
Cancel
Save