Browse Source

[drtuber] Improve title extraction

master
Sergey M․ 8 years ago
parent
commit
367976d49f
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 3 additions and 1 deletions
  1. 4
      youtube_dl/extractor/drtuber.py

4
youtube_dl/extractor/drtuber.py

@ -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(

Loading…
Cancel
Save