]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/foxgay.py
[cleanup] Use `_html_extract_title`
[yt-dlp.git] / yt_dlp / extractor / foxgay.py
index 512a106455cc7460d81f48d2890bc457fccbe661..1c53e0642b39d6908aad7deeeb336b77a22ba6ca 100644 (file)
@@ -29,8 +29,7 @@ def _real_extract(self, url):
         video_id = self._match_id(url)
         webpage = self._download_webpage(url, video_id)
 
-        title = remove_end(self._html_search_regex(
-            r'<title>([^<]+)</title>', webpage, 'title'), ' - Foxgay.com')
+        title = remove_end(self._html_extract_title(webpage), ' - Foxgay.com')
         description = get_element_by_id('inf_tit', webpage)
 
         # The default user-agent with foxgay cookies leads to pages without videos