about summary refs log tree commit diff stats
path: root/hm
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-01-01 17:17:56 +0100
committerSoispha <soispha@vhack.eu>2024-01-01 17:17:56 +0100
commitdf7ce08c9788f9f3a2c907ebfa50a603db6ab3bb (patch)
tree45a45e6848150d16b33e1d76483eac5a4b946dce /hm
parentfeat(hm/pkgs/ytc): Init (diff)
downloadnixos-config-df7ce08c9788f9f3a2c907ebfa50a603db6ab3bb.zip
fix(hm/conf/ytcc): Use better nested download directories
Diffstat (limited to 'hm')
-rw-r--r--hm/soispha/conf/ytcc/default.nix2
-rw-r--r--hm/soispha/conf/ytcc/ytcc.conf3
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