diff --git a/hosts/storage-2/mixcloud.nix b/hosts/storage-2/mixcloud.nix index 10fada4..caf01d8 100644 --- a/hosts/storage-2/mixcloud.nix +++ b/hosts/storage-2/mixcloud.nix @@ -25,13 +25,11 @@ let Group = "data-mixcloud"; Restart="on-failure"; }; - wants = [ "youtube-dl-prepare.service" ]; - after = [ "youtube-dl-prepare.service" ]; - path = [ pkgs.youtube-dl ]; + path = [ pkgs.yt-dlp ]; script = '' mkdir -p /data/mixcloud/${source}/ cd /data/mixcloud/${source}/ - youtube-dl --ignore-errors --playlist-random --download-archive .already-downloaded.txt --newline -x --audio-format mp3 ${url} + yt-dlp --ignore-errors --playlist-random --download-archive .already-downloaded.txt --newline -x --audio-format mp3 ${url} ''; startAt = "*-*-* 05:05:00"; }