fix title info of qq video extractor

This commit is contained in:
clauderains 2016-01-07 12:10:43 +08:00 committed by huangtiande
parent 591667be17
commit 31d407edf8

View File

@ -41,7 +41,7 @@ class QqVideoIE(InfoExtractor):
video_id, 'Downloading video metadata')
webpage = self._download_webpage(url, video_id)
title = self._html_search_regex('<title>(.+?)</title>', webpage, "video title", '')
title = self._html_search_regex('<h1\s+class="mod_player_title"[^>]*>(.+?)</h1>', webpage, "video title", '')
url = url_doc.find('./vd/vi/url').text
ext = self._search_regex('\.([\d\w]+)\?', url, '', '')