From b83410fb297484b07dad24ecbbf35bf1cec4bab9 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 25 Apr 2018 15:33:28 +0200 Subject: use download-youtube@.service --- odin/strm/cache_media | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'odin') diff --git a/odin/strm/cache_media b/odin/strm/cache_media index 8c345489..a69ce766 100644 --- a/odin/strm/cache_media +++ b/odin/strm/cache_media @@ -32,5 +32,7 @@ while { } && [[ -n "${ids}" ]]; do url="" - xargs -d '\n' -n 1 -r -P 1 -- download_youtube <<<$(print -l ${ids}) + for id (${ids}); do + systemd-run --unit $(systemd-escape --template=download-youtube@.service ${id}) + done done -- cgit v1.2.3