]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/miaopai.py
[extractor/youtube] Workaround 403 for android formats
[yt-dlp.git] / yt_dlp / extractor / miaopai.py
index f9e35ac7f6a56044e13fe31d18590e12bdf3ac03..329ce365825ec01bf8fdef2d20cd60902dff3488 100644 (file)
@@ -1,6 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
 from .common import InfoExtractor
 
 
@@ -24,8 +21,7 @@ def _real_extract(self, url):
         webpage = self._download_webpage(
             url, video_id, headers={'User-Agent': self._USER_AGENT_IPAD})
 
-        title = self._html_search_regex(
-            r'<title>([^<]+)</title>', webpage, 'title')
+        title = self._html_extract_title(webpage)
         thumbnail = self._html_search_regex(
             r'<div[^>]+class=(?P<q1>[\'"]).*\bvideo_img\b.*(?P=q1)[^>]+data-url=(?P<q2>[\'"])(?P<url>[^\'"]+)(?P=q2)',
             webpage, 'thumbnail', fatal=False, group='url')