]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/archiveorg.py
[extractor] Deprecate `_sort_formats`
[yt-dlp.git] / yt_dlp / extractor / archiveorg.py
index 4218f52d68169641d350997b2ab6bf3271dc545c..90dda9f53f99533944c8a54b224d98466ea3d0eb 100644 (file)
@@ -312,7 +312,7 @@ def _real_extract(self, url):
                 })
 
         for entry in entries.values():
-            self._sort_formats(entry['formats'], ('source', ))
+            entry['_format_sort_fields'] = ('source', )
 
         if len(entries) == 1:
             # If there's only one item, use it as the main info dict