From 9399294529219b0eeddb951347915ef1407157e9 Mon Sep 17 00:00:00 2001 From: clerie Date: Mon, 3 Jun 2024 14:24:23 +0200 Subject: [PATCH] hosts/storage-2: Used yt-dlp --- hosts/storage-2/mixcloud.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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"; }