logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 8578ea4dcb17834ee3843e0e337c15af706f9803
parent 9b27a78a881bceb9d62f3364399d7572e8e2be24
Author: Remita Amine <remitamine@gmail.com>
Date:   Sun, 18 Nov 2018 16:15:10 +0100

[bitchute] use _html_search_regex for title extraction

Diffstat:

Myoutube_dl/extractor/bitchute.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/bitchute.py b/youtube_dl/extractor/bitchute.py @@ -37,7 +37,7 @@ class BitChuteIE(InfoExtractor): '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',