From 6a3bee5d4f5e1b6eedf0df8e4cb90c4cc73734ca Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 25 Apr 2018 16:04:17 +0200 Subject: don't spawn many uucicos --- odin/strm/download_youtube | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'odin/strm/download_youtube') diff --git a/odin/strm/download_youtube b/odin/strm/download_youtube index f04bb519..1eb65def 100644 --- a/odin/strm/download_youtube +++ b/odin/strm/download_youtube @@ -321,11 +321,12 @@ printf ">>> %s <<<\n %s\n" "${msgId}" "${message}" if [[ -n "$(notmuch search "tag:inbox AND $msgId")" ]]; then if [[ ${msgTags[(i)tv]} -le $#msgTags ]]; then printf "%s\n%s\n" "Media available on odin" "${title}" \ - | uux -p -n 'hel!notify-gkleen' -a download_youtube -u normal \ + | uux -r -p -n 'hel!notify-gkleen' -a download_youtube -u normal \ && print "Sent notification to hel via uucp" else - queue.hel "${filename}" && notmuch tag '-inbox' '-unread' -- $msgId + queue.hel -r "${filename}" && notmuch tag '-inbox' '-unread' -- $msgId fi + systemctl --no-wait start uucico@hel.service else print "Message vanished from inbox" | warn fi -- cgit v1.2.3