diff --git a/users/simon/modules/youtube-dl.nix b/users/simon/modules/youtube-dl.nix index a24ecbe..4b90e03 100644 --- a/users/simon/modules/youtube-dl.nix +++ b/users/simon/modules/youtube-dl.nix @@ -5,10 +5,10 @@ { lib, pkgs, ... }: let # zAudioFormat because a better video format is preferred and - # cartesianProductOfSets cycles through the attributes in lexicographic order + # cartesianProduct cycles through the attributes in lexicographic order formats = (map ({ videoFormat, zAudioFormat }: "${videoFormat}+${zAudioFormat}") - (lib.cartesianProductOfSets { + (lib.cartesianProduct { videoFormat = [ "bestvideo[vcodec^=av01]" "bestvideo[vcodec^=vp09]" "bestvideo[vcodec^=avc1]" "bestvideo" ]; zAudioFormat = [ "bestaudio[acodec^=opus]" "bestaudio[acodec^=mp4a]" "bestaudio" ]; })) ++ [ "best" ];