yt-dlp: cleanup config

This commit is contained in:
2025-08-02 10:05:51 +00:00
parent a52f1f0f6a
commit 29ee5efe24

View File

@@ -54,12 +54,12 @@ in
# `res:1080` means "prefer the best resolution <= 1080, followed by the _worst_ resolution > 1080"
# default sort ordering: lang,quality,res,fps,hdr:12,vcodec,channels,acodec,size,br,asr,proto,ext,hasaud,source,id.
# vcodec default ordering: av01 > vp9.2 > vp9 > h265 > h264 > vp8 > h263 > theora > other
'' + (if cfg.config.defaultProfile == "high-quality" then ''
-S lang,res:1440,fps:60,vcodec,br:3000
'' else if cfg.config.defaultProfile == "mid-range" then ''
-S lang,res:1080,vcodec:vp9,fps:60,br:3000
'' else ''
-S lang,vcodec:h264,height:360,fps:30,br:3000
'');
#
--alias profile-high-quality -S\ lang,res:1440,fps:60,vcodec,br:3000
--alias profile-mid-range -S\ lang,res:1080,vcodec:vp9,fps:60,br:3000
--alias profile-fast -S\ lang,vcodec:h264,height:360,fps:30,br:3000
--profile-${cfg.config.defaultProfile}
'';
};
}