Ver Fonte

[bitchute] use _html_search_regex for title extraction

Remita Amine há 6 anos atrás
pai
commit
8578ea4dcb
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      youtube_dl/extractor/bitchute.py

+ 1 - 1
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',
                 '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>([^<]+)'),
             (r'<[^>]+\bid=["\']video-title[^>]+>([^<]+)', r'<title>([^<]+)'),
             webpage, 'title', default=None) or self._html_search_meta(
             webpage, 'title', default=None) or self._html_search_meta(
             'description', webpage, 'title',
             'description', webpage, 'title',