1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-11 05:27:14 +08:00

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