diff --git a/hosts/common/programs/yt-dlp.nix b/hosts/common/programs/yt-dlp.nix index 3fddb1d43..2c75e418d 100644 --- a/hosts/common/programs/yt-dlp.nix +++ b/hosts/common/programs/yt-dlp.nix @@ -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} + ''; }; }