From: Dave Loyall Date: Tue, 19 May 2020 19:11:05 +0000 (-0500) Subject: [redtube] Improve title extraction (#25208) X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=youtube-dl.git;a=commitdiff_plain;h=bf097a5077036d25e5c2ae2ea2d3b8c55bfdc83c [redtube] Improve title extraction (#25208) --- diff --git a/youtube_dl/extractor/redtube.py b/youtube_dl/extractor/redtube.py index b1bde1e81..deb3ad52c 100644 --- a/youtube_dl/extractor/redtube.py +++ b/youtube_dl/extractor/redtube.py @@ -57,7 +57,7 @@ class RedTubeIE(InfoExtractor): if not info.get('title'): info['title'] = self._html_search_regex( - (r']+class="(?:video_title_text|videoTitle)[^"]*">(?P(?:(?!\1).)+)</h\1>', + (r'<h(\d)[^>]+class="(?:video_title_text|videoTitle|video_title)[^"]*">(?P<title>(?:(?!\1).)+)</h\1>', r'(?:videoTitle|title)\s*:\s*(["\'])(?P<title>(?:(?!\1).)+)\1',), webpage, 'title', group='title', default=None) or self._og_search_title(webpage)