]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/thisav.py
[cleanup] Use `_html_extract_title`
[yt-dlp.git] / yt_dlp / extractor / thisav.py
index 4af286e6d995dff32a64501d10354cbbe7ec70ee..6bb00b3abac36da57a4b20a26b5893418db696ec 100644 (file)
@@ -37,9 +37,7 @@ def _real_extract(self, url):
 
         video_id = mobj.group('id')
         webpage = self._download_webpage(url, video_id)
-        title = remove_end(self._html_search_regex(
-            r'<title>([^<]+)</title>', webpage, 'title'),
-            ' - 視頻 - ThisAV.com-世界第一中文成人娛樂網站')
+        title = remove_end(self._html_extract_title(webpage), ' - 視頻 - ThisAV.com-世界第一中文成人娛樂網站')
         video_url = self._html_search_regex(
             r"addVariable\('file','([^']+)'\);", webpage, 'video url', default=None)
         if video_url: