Skip to content

Commit

Permalink
[bitchute] use _html_search_regex for title extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
remitamine committed Nov 18, 2018
1 parent 9b27a78 commit 8578ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/bitchute.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _real_extract(self, url):
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.57 Safari/537.36',
})

title = self._search_regex(
title = self._html_search_regex(
(r'<[^>]+\bid=["\']video-title[^>]+>([^<]+)', r'<title>([^<]+)'),
webpage, 'title', default=None) or self._html_search_meta(
'description', webpage, 'title',
Expand Down

0 comments on commit 8578ea4

Please sign in to comment.