mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-10-04 13:24:40 -04:00
[formatsort] Remove misuse of 'preference'
'preference' is to be used only when the format is better that ALL qualities of a lower preference irrespective of ANY sorting order the user requests. See deezer.py for correct use of this In the older sorting method, `preference`, `quality` and `language_preference` were functionally almost equivalent. So these disparities doesn't really matter there Also, despite what the documentation says, the default for `preference` was actually 0 and not -1. I have tried to correct this and also account for it when converting `preference` to `quality`
This commit is contained in:
@@ -54,7 +54,7 @@ class XNXXIE(InfoExtractor):
|
||||
if determine_ext(format_url) == 'm3u8':
|
||||
formats.extend(self._extract_m3u8_formats(
|
||||
format_url, video_id, 'mp4', entry_protocol='m3u8_native',
|
||||
preference=1, m3u8_id='hls', fatal=False))
|
||||
quality=1, m3u8_id='hls', fatal=False))
|
||||
else:
|
||||
format_id = mobj.group('id')
|
||||
if format_id:
|
||||
|
Reference in New Issue
Block a user