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

Update drtuber.py

This commit is contained in:
Sergey M 2018-04-07 21:38:46 +07:00 committed by GitHub
parent 0a0de8fb2d
commit 20fa8c5866
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,10 +66,11 @@ class DrTuberIE(InfoExtractor):
self._sort_formats(formats)
title = self._html_search_regex(
(r'class="title_watch"[^>]*><(?:p|h\d+)[^>]*>([^<]+)<',
(r'<h1[^>]+class=["\']title[^>]+>([^<]+)',
r'<title>([^<]+)\s*@\s+DrTuber',
r'class="title_watch"[^>]*><(?:p|h\d+)[^>]*>([^<]+)<',
r'<p[^>]+class="title_substrate">([^<]+)</p>',
r'<title>([^<]+) - \d+',
r'<h1[^>]+class="title">([^<]+)</h1>'),
r'<title>([^<]+) - \d+'),
webpage, 'title')
thumbnail = self._html_search_regex(