]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/rule34video.py
[extractor] Deprecate `_sort_formats`
[yt-dlp.git] / yt_dlp / extractor / rule34video.py
index 522d4ccd5bd0af097f6bc91a67f3c9a1bf04916a..9d15f4d214d29f96fe8188a7b123c61a381f8f3e 100644 (file)
@@ -1,5 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
 import re
 
 from ..utils import parse_duration
@@ -49,12 +47,10 @@ def _real_extract(self, url):
                 'quality': quality,
             })
 
-        title = self._html_search_regex(r'<title>([^<]+)</title>', webpage, 'title')
+        title = self._html_extract_title(webpage)
         thumbnail = self._html_search_regex(r'preview_url:\s+\'([^\']+)\'', webpage, 'thumbnail', default=None)
         duration = self._html_search_regex(r'"icon-clock"></i>\s+<span>((?:\d+:?)+)', webpage, 'duration', default=None)
 
-        self._sort_formats(formats)
-
         return {
             'id': video_id,
             'formats': formats,