]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[redtube] Improve title extraction (#25208)
authorDave Loyall <dave@the-good-guys.net>
Tue, 19 May 2020 19:11:05 +0000 (14:11 -0500)
committerGitHub <noreply@github.com>
Tue, 19 May 2020 19:11:05 +0000 (02:11 +0700)
youtube_dl/extractor/redtube.py

index b1bde1e8117bf5fa72cccf94ce825a0ad31c274e..deb3ad52cac934cf91c74dc91de334e271ec88bd 100644 (file)
@@ -57,7 +57,7 @@ class RedTubeIE(InfoExtractor):
 
         if not info.get('title'):
             info['title'] = self._html_search_regex(
-                (r'<h(\d)[^>]+class="(?:video_title_text|videoTitle)[^"]*">(?P<title>(?:(?!\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)