summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-06-12 23:35:04 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-06-12 23:35:04 +0200
commit26ba8df52287d493a063da4a5b93455cb4cb5b82 (patch)
tree8a56abc6253c0e53ab181152c6a3fc326e47a32c
parentc5760f5a5a0d41e4adfca1da35d77726c3cdd1a9 (diff)
downloadnixos-26ba8df52287d493a063da4a5b93455cb4cb5b82.tar
nixos-26ba8df52287d493a063da4a5b93455cb4cb5b82.tar.gz
nixos-26ba8df52287d493a063da4a5b93455cb4cb5b82.tar.bz2
nixos-26ba8df52287d493a063da4a5b93455cb4cb5b82.tar.xz
nixos-26ba8df52287d493a063da4a5b93455cb4cb5b82.zip
Start uucico from cache-media
-rw-r--r--odin/strm/cache_media8
1 files changed, 8 insertions, 0 deletions
diff --git a/odin/strm/cache_media b/odin/strm/cache_media
index 796bccf0..c34e20fe 100644
--- a/odin/strm/cache_media
+++ b/odin/strm/cache_media
@@ -22,6 +22,8 @@ function notmuch {
22 done 22 done
23} 23}
24 24
25acted=false
26
25while { 27while {
26 results=$(notmuch search --sort=oldest-first --output=messages "( tag:inbox AND is:media AND is:unread ) AND NOT ( tag:new OR tag:killed OR tag:failed OR tag:cached )") 28 results=$(notmuch search --sort=oldest-first --output=messages "( tag:inbox AND is:media AND is:unread ) AND NOT ( tag:new OR tag:killed OR tag:failed OR tag:cached )")
27 ids=("${(f)results}") 29 ids=("${(f)results}")
@@ -34,5 +36,11 @@ while {
34 36
35 for id (${ids}); do 37 for id (${ids}); do
36 systemctl --user start $(systemd-escape --template=download-youtube@.service ${id}) 38 systemctl --user start $(systemd-escape --template=download-youtube@.service ${id})
39
40 acted=true
37 done 41 done
38done 42done
43
44if ${acted}; then
45 systemctl --no-block start uucico@hel.service
46fi