]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/pornhub.py
[extractor] Deprecate `_sort_formats`
[yt-dlp.git] / yt_dlp / extractor / pornhub.py
index 6afaf5e6e7f5fd3c451f9b4549caf243629c2cb8..5d8d7c100a4d40109f4f682c401ddec35a865619 100644 (file)
@@ -456,10 +456,6 @@ def add_format(format_url, height=None):
                 continue
             add_format(video_url)
 
-        # field_preference is unnecessary here, but kept for code-similarity with youtube-dl
-        self._sort_formats(
-            formats, field_preference=('height', 'width', 'fps', 'format_id'))
-
         model_profile = self._search_json(
             r'var\s+MODEL_PROFILE\s*=', webpage, 'model profile', video_id, fatal=False)
         video_uploader = self._html_search_regex(