]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[bitchute] use _html_search_regex for title extraction
authorRemita Amine <remitamine@gmail.com>
Sun, 18 Nov 2018 15:15:10 +0000 (16:15 +0100)
committerRemita Amine <remitamine@gmail.com>
Sun, 18 Nov 2018 15:15:27 +0000 (16:15 +0100)
youtube_dl/extractor/bitchute.py

index 446a1ab19f93955ab143e729628e4ecf1add9b16..43b4732aa0f1c1dcc721f93134d00b439562f418 100644 (file)
@@ -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',