]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/weibo.py
Allow extractors to specify section_start/end for clips
[yt-dlp.git] / yt_dlp / extractor / weibo.py
index 621df5b549488846130032f1a6ce568f849ca179..d5a52ce20e09e31212fab59e6e962eeb468b7f01 100644 (file)
@@ -1,6 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
 from .common import InfoExtractor
 
 import json
@@ -73,8 +70,7 @@ def _real_extract(self, url):
             webpage = self._download_webpage(
                 url, video_id, note='Revisiting webpage')
 
-        title = self._html_search_regex(
-            r'<title>(.+?)</title>', webpage, 'title')
+        title = self._html_extract_title(webpage)
 
         video_formats = compat_parse_qs(self._search_regex(
             r'video-sources=\\\"(.+?)\"', webpage, 'video_sources'))