1
0

hosts/storage-2: Used yt-dlp

This commit is contained in:
clerie 2024-06-03 14:24:23 +02:00
parent 413c8cc52c
commit 9399294529
Signed by: clerie
GPG Key ID: BD9F56480870BAD2

View File

@ -25,13 +25,11 @@ let
Group = "data-mixcloud"; Group = "data-mixcloud";
Restart="on-failure"; Restart="on-failure";
}; };
wants = [ "youtube-dl-prepare.service" ]; path = [ pkgs.yt-dlp ];
after = [ "youtube-dl-prepare.service" ];
path = [ pkgs.youtube-dl ];
script = '' script = ''
mkdir -p /data/mixcloud/${source}/ mkdir -p /data/mixcloud/${source}/
cd /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"; startAt = "*-*-* 05:05:00";
} }