Skip to content

Commit

Permalink
[redtube] Improve title extraction (ytdl-org#25208)
Browse files Browse the repository at this point in the history
  • Loading branch information
daveloyall authored May 19, 2020
1 parent 52c50a1 commit bf097a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/redtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def _real_extract(self, url):

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)
Expand Down

0 comments on commit bf097a5

Please sign in to comment.