From df7ce08c9788f9f3a2c907ebfa50a603db6ab3bb Mon Sep 17 00:00:00 2001 From: Soispha Date: Mon, 1 Jan 2024 17:17:56 +0100 Subject: fix(hm/conf/ytcc): Use better nested download directories --- hm/soispha/conf/ytcc/default.nix | 2 +- hm/soispha/conf/ytcc/ytcc.conf | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hm/soispha/conf/ytcc/default.nix b/hm/soispha/conf/ytcc/default.nix index 0a336be5..87300ec1 100644 --- a/hm/soispha/conf/ytcc/default.nix +++ b/hm/soispha/conf/ytcc/default.nix @@ -5,7 +5,7 @@ }: { xdg.configFile."ytcc/ytcc.conf".source = pkgs.substituteAll { src = ./ytcc.conf; - xdg_download_dir = config.xdg.userDirs.download; + download_dir = "${config.xdg.userDirs.download}/ytcc"; xdg_data_home = config.xdg.dataHome; }; } diff --git a/hm/soispha/conf/ytcc/ytcc.conf b/hm/soispha/conf/ytcc/ytcc.conf index 8f1b2388..513418ca 100644 --- a/hm/soispha/conf/ytcc/ytcc.conf +++ b/hm/soispha/conf/ytcc/ytcc.conf @@ -1,7 +1,8 @@ [ytcc] -download_dir = @xdg_download_dir@ +download_dir = @download_dir@ download_subdirs = false mpv_flags = --really-quiet --ytdl --ytdl-format=bestvideo[height<=?1080]+bestaudio/best --speed=2.7 +download_subdirs = true order_by = playlists:asc, publish_date:desc video_attrs = id, title, publish_date, duration, playlists playlist_attrs = name, url, tags, reverse -- cgit 1.4.1