]> jfr.im git - yt-dlp.git/commit
[formatsort] Remove misuse of 'preference'
authorpukkandan <redacted>
Thu, 18 Feb 2021 22:03:16 +0000 (03:33 +0530)
committerpukkandan <redacted>
Thu, 18 Feb 2021 22:03:45 +0000 (03:33 +0530)
commitf983b87567ff063d4daca13772a8e37af990f472
treea6d629640bd4f16d5eb9ec50c2d30f2e5fd672ca
parentdca3ff4a5e9628a13881eb556fa675e23671834c
[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`
61 files changed:
youtube_dlc/extractor/adobetv.py
youtube_dlc/extractor/arcpublishing.py
youtube_dlc/extractor/arte.py
youtube_dlc/extractor/beatport.py
youtube_dlc/extractor/bilibili.py
youtube_dlc/extractor/bokecc.py
youtube_dlc/extractor/bpb.py
youtube_dlc/extractor/cammodels.py
youtube_dlc/extractor/canalplus.py
youtube_dlc/extractor/cctv.py
youtube_dlc/extractor/common.py
youtube_dlc/extractor/coub.py
youtube_dlc/extractor/crunchyroll.py
youtube_dlc/extractor/dispeak.py
youtube_dlc/extractor/drtv.py
youtube_dlc/extractor/espn.py
youtube_dlc/extractor/facebook.py
youtube_dlc/extractor/firsttv.py
youtube_dlc/extractor/flickr.py
youtube_dlc/extractor/go.py
youtube_dlc/extractor/hearthisat.py
youtube_dlc/extractor/ign.py
youtube_dlc/extractor/imgur.py
youtube_dlc/extractor/iqiyi.py
youtube_dlc/extractor/kuwo.py
youtube_dlc/extractor/lifenews.py
youtube_dlc/extractor/limelight.py
youtube_dlc/extractor/liveleak.py
youtube_dlc/extractor/livestream.py
youtube_dlc/extractor/mdr.py
youtube_dlc/extractor/mediasite.py
youtube_dlc/extractor/msn.py
youtube_dlc/extractor/muenchentv.py
youtube_dlc/extractor/nba.py
youtube_dlc/extractor/noco.py
youtube_dlc/extractor/npo.py
youtube_dlc/extractor/ntvde.py
youtube_dlc/extractor/ora.py
youtube_dlc/extractor/picarto.py
youtube_dlc/extractor/playtvak.py
youtube_dlc/extractor/qqmusic.py
youtube_dlc/extractor/radiofrance.py
youtube_dlc/extractor/rtl2.py
youtube_dlc/extractor/rtp.py
youtube_dlc/extractor/rutv.py
youtube_dlc/extractor/sina.py
youtube_dlc/extractor/soundcloud.py
youtube_dlc/extractor/srgssr.py
youtube_dlc/extractor/storyfire.py
youtube_dlc/extractor/tele13.py
youtube_dlc/extractor/telemb.py
youtube_dlc/extractor/threeqsdn.py
youtube_dlc/extractor/uol.py
youtube_dlc/extractor/urort.py
youtube_dlc/extractor/vidme.py
youtube_dlc/extractor/vimeo.py
youtube_dlc/extractor/vzaar.py
youtube_dlc/extractor/wistia.py
youtube_dlc/extractor/xnxx.py
youtube_dlc/extractor/xstream.py
youtube_dlc/extractor/zattoo.py