]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/rutv.py
[extractor] Deprecate `_sort_formats`
[yt-dlp.git] / yt_dlp / extractor / rutv.py
index 75da01f7d3ddba3662546567f809b35188b59a04..d7f9a73377de50d89f1b879935d984ce0b84adb0 100644 (file)
@@ -189,8 +189,6 @@ def _real_extract(self, url):
                 })
                 formats.append(fmt)
 
-        self._sort_formats(formats, ('source', ))
-
         return {
             'id': video_id,
             'title': title,
@@ -201,4 +199,5 @@ def _real_extract(self, url):
             'formats': formats,
             'subtitles': subtitles,
             'is_live': is_live,
+            '_format_sort_fields': ('source', ),
         }