hosts/storage-2: Used yt-dlp
This commit is contained in:
parent
413c8cc52c
commit
9399294529
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user