1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-23 00:02:24 +00:00

[drtuber] Improve title extraction

This commit is contained in:
Sergey M․ 2016-08-11 23:47:52 +07:00
parent 0aef0771f8
commit 367976d49f
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -38,7 +38,9 @@ class DrTuberIE(InfoExtractor):
r'<source src="([^"]+)"', webpage, 'video URL')
title = self._html_search_regex(
[r'<p[^>]+class="title_substrate">([^<]+)</p>', r'<title>([^<]+) - \d+'],
(r'class="title_watch"[^>]*><p>([^<]+)<',
r'<p[^>]+class="title_substrate">([^<]+)</p>',
r'<title>([^<]+) - \d+'),
webpage, 'title')
thumbnail = self._html_search_regex(