From 60bbab10223b13de11c30f0437aaacc175132870 Mon Sep 17 00:00:00 2001 From: DataGhost Date: Mon, 30 May 2022 15:10:04 +0200 Subject: [PATCH] Changed quality parameter to preference to accodomate sorting the m3u8 streams --- youtube_dl/extractor/dumpert.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/dumpert.py b/youtube_dl/extractor/dumpert.py index 6f49b3d15..7a42273ba 100644 --- a/youtube_dl/extractor/dumpert.py +++ b/youtube_dl/extractor/dumpert.py @@ -66,17 +66,17 @@ class DumpertIE(InfoExtractor): if not uri: continue version = variant.get('version') + preference = quality(version) ext = determine_ext(uri) if ext == 'm3u8': formats.extend(self._extract_m3u8_formats( - uri, video_id, ext='mp4', m3u8_id=version)) + uri, video_id, ext='mp4', preference=preference)) else: formats.append({ 'url': uri, 'format_id': version, + 'preference': preference, }) - for format in formats: - format['quality'] = quality(format['format_id']) self._sort_formats(formats) thumbnails = []