aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/zdf.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/zdf.py')
-rw-r--r--yt_dlp/extractor/zdf.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/yt_dlp/extractor/zdf.py b/yt_dlp/extractor/zdf.py
index 1eab384b9..fca426a50 100644
--- a/yt_dlp/extractor/zdf.py
+++ b/yt_dlp/extractor/zdf.py
@@ -110,7 +110,6 @@ class ZDFBaseIE(InfoExtractor):
'class': track.get('class'),
'language': track.get('language'),
})
- self._sort_formats(formats, ('tbr', 'res', 'quality', 'language_preference'))
duration = float_or_none(try_get(
ptmd, lambda x: x['attributes']['duration']['value']), scale=1000)
@@ -121,6 +120,7 @@ class ZDFBaseIE(InfoExtractor):
'duration': duration,
'formats': formats,
'subtitles': self._extract_subtitles(ptmd),
+ '_format_sort_fields': ('tbr', 'res', 'quality', 'language_preference'),
}
def _extract_player(self, webpage, video_id, fatal=True):
@@ -318,7 +318,6 @@ class ZDFIE(ZDFBaseIE):
format_urls = set()
for f in formitaeten or []:
self._extract_format(content_id, formats, format_urls, f)
- self._sort_formats(formats)
thumbnails = []
teaser_bild = document.get('teaserBild')