[DrTuber] Fix title extraction

This commit is contained in:
Parmjit Virk 2018-04-06 05:10:31 -05:00
parent fdfb32a0dd
commit 0a0de8fb2d

View File

@ -68,7 +68,8 @@ class DrTuberIE(InfoExtractor):
title = self._html_search_regex( title = self._html_search_regex(
(r'class="title_watch"[^>]*><(?:p|h\d+)[^>]*>([^<]+)<', (r'class="title_watch"[^>]*><(?:p|h\d+)[^>]*>([^<]+)<',
r'<p[^>]+class="title_substrate">([^<]+)</p>', r'<p[^>]+class="title_substrate">([^<]+)</p>',
r'<title>([^<]+) - \d+'), r'<title>([^<]+) - \d+',
r'<h1[^>]+class="title">([^<]+)</h1>'),
webpage, 'title') webpage, 'title')
thumbnail = self._html_search_regex( thumbnail = self._html_search_regex(