From e40273f767977988dc2c8e12adcf98436a832246 Mon Sep 17 00:00:00 2001 From: clerie Date: Mon, 3 Jan 2022 20:57:54 +0100 Subject: [PATCH] Optimize youtube-dl download options --- hosts/storage-2/mixcloud.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts/storage-2/mixcloud.nix b/hosts/storage-2/mixcloud.nix index be7fa47..0215d82 100644 --- a/hosts/storage-2/mixcloud.nix +++ b/hosts/storage-2/mixcloud.nix @@ -27,12 +27,13 @@ serviceConfig = { User = "data-mixcloud"; Group = "data-mixcloud"; + Restart="on-failure"; }; path = [ pkgs.youtube-dl ]; script = '' mkdir -p /data/mixcloud/couchsofa/ cd /data/mixcloud/couchsofa/ - youtube-dl https://www.mixcloud.com/couchsofa/ + youtube-dl --ignore-errors --playlist-random --newline https://www.mixcloud.com/couchsofa/ ''; startAt = "*-*-* 05:05:00"; };