From 5649fd8b917ab44646da58ecb3c91ddac29c6d49 Mon Sep 17 00:00:00 2001 From: clerie Date: Fri, 17 Feb 2023 22:02:27 +0100 Subject: [PATCH] hosts/storage-2: prevent youtube-dl downloading tracks again and again and again --- hosts/storage-2/mixcloud.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/storage-2/mixcloud.nix b/hosts/storage-2/mixcloud.nix index 9967765..2a7a162 100644 --- a/hosts/storage-2/mixcloud.nix +++ b/hosts/storage-2/mixcloud.nix @@ -31,7 +31,7 @@ let script = '' mkdir -p /data/mixcloud/${source}/ cd /data/mixcloud/${source}/ - youtube-dl --ignore-errors --playlist-random --newline -x --audio-format mp3 ${url} + youtube-dl --ignore-errors --playlist-random --download-archive .already-downloaded.txt --newline -x --audio-format mp3 ${url} ''; startAt = "*-*-* 05:05:00"; }