diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-25 15:33:28 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-25 15:33:28 +0200 |
commit | b83410fb297484b07dad24ecbbf35bf1cec4bab9 (patch) | |
tree | 1e366a4c0088332930c7a17839e238c56feff196 /odin | |
parent | a2bcc084136b6c5e92dbfe8b39a503707927d706 (diff) | |
download | nixos-b83410fb297484b07dad24ecbbf35bf1cec4bab9.tar nixos-b83410fb297484b07dad24ecbbf35bf1cec4bab9.tar.gz nixos-b83410fb297484b07dad24ecbbf35bf1cec4bab9.tar.bz2 nixos-b83410fb297484b07dad24ecbbf35bf1cec4bab9.tar.xz nixos-b83410fb297484b07dad24ecbbf35bf1cec4bab9.zip |
use download-youtube@.service
Diffstat (limited to 'odin')
-rw-r--r-- | odin/strm/cache_media | 4 |
1 files changed, 3 insertions, 1 deletions
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 { | |||
32 | } && [[ -n "${ids}" ]]; do | 32 | } && [[ -n "${ids}" ]]; do |
33 | url="" | 33 | url="" |
34 | 34 | ||
35 | xargs -d '\n' -n 1 -r -P 1 -- download_youtube <<<$(print -l ${ids}) | 35 | for id (${ids}); do |
36 | systemd-run --unit $(systemd-escape --template=download-youtube@.service ${id}) | ||
37 | done | ||
36 | done | 38 | done |