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