]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/funimation.py
[extractor] Deprecate `_sort_formats`
[yt-dlp.git] / yt_dlp / extractor / funimation.py
index c70cf50c7e7b822aec19c9d203c5fe8306d7e689..18363c1b917438ecbe280dfa0e2ac7f87b9b5688 100644 (file)
@@ -247,7 +247,6 @@ def _real_extract(self, url):
             self.raise_no_formats(
                 'There are no video formats matching the requested languages/versions', expected=True, video_id=display_id)
         self._remove_duplicate_formats(formats)
-        self._sort_formats(formats, ('lang', 'source'))
 
         return {
             'id': episode_id,
@@ -266,6 +265,7 @@ def _real_extract(self, url):
             'formats': formats,
             'thumbnails': thumbnails,
             'subtitles': subtitles,
+            '_format_sort_fields': ('lang', 'source'),
         }
 
     def _get_subtitles(self, subtitles, experience_id, episode, display_id, format_name):