]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/nfhsnetwork.py
[extractor] Deprecate `_sort_formats`
[yt-dlp.git] / yt_dlp / extractor / nfhsnetwork.py
index e6f98b036ae8e850eb35ce3002d3d00ce7c9c4ed..febad8fdf30a9f8ae05e4ba774eab7a2ef43a154 100644 (file)
@@ -124,7 +124,6 @@ def _real_extract(self, url):
             video_id).get('video_url')
 
         formats = self._extract_m3u8_formats(m3u8_url, video_id, 'mp4', live=isLive)
-        self._sort_formats(formats, ['res', 'tbr'])
 
         return {
             'id': video_id,
@@ -137,5 +136,6 @@ def _real_extract(self, url):
             'uploader_url': uploaderPage,
             'location': location,
             'upload_date': upload_date,
-            'is_live': isLive
+            'is_live': isLive,
+            '_format_sort_fields': ('res', 'tbr'),
         }