]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/imdb.py
[cleanup] Fix some typos (#4194)
[yt-dlp.git] / yt_dlp / extractor / imdb.py
index 7eb66d821672971cf37b95e4e8e6dd2304c1cf5e..74cab7dc1d39558102f1a7728e452e3a370a7fd4 100644 (file)
@@ -1,5 +1,3 @@
-from __future__ import unicode_literals
-
 import base64
 import json
 import re
@@ -68,7 +66,7 @@ def _real_extract(self, url):
         video_info = traverse_obj(info, ('props', 'pageProps', 'videoPlaybackData', 'video'), default={})
         title = (traverse_obj(video_info, ('name', 'value'), ('primaryTitle', 'titleText', 'text'))
                  or self._html_search_meta(('og:title', 'twitter:title'), webpage, default=None)
-                 or self._html_search_regex(r'<title>(.+?)</title>', webpage, 'title'))
+                 or self._html_extract_title(webpage))
         data = video_info.get('playbackURLs') or try_get(self._download_json(
             'https://www.imdb.com/ve/data/VIDEO_PLAYBACK_DATA', video_id,
             query={