diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-25 16:04:17 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-25 16:04:17 +0200 |
commit | 6a3bee5d4f5e1b6eedf0df8e4cb90c4cc73734ca (patch) | |
tree | 51bbdfe1afb4df32ad4935468c4dfe1c1cc1b0f3 /odin/strm/download_youtube | |
parent | b304928bc358c2c3e656f5f1d77e972ab5dd6ab3 (diff) | |
download | nixos-6a3bee5d4f5e1b6eedf0df8e4cb90c4cc73734ca.tar nixos-6a3bee5d4f5e1b6eedf0df8e4cb90c4cc73734ca.tar.gz nixos-6a3bee5d4f5e1b6eedf0df8e4cb90c4cc73734ca.tar.bz2 nixos-6a3bee5d4f5e1b6eedf0df8e4cb90c4cc73734ca.tar.xz nixos-6a3bee5d4f5e1b6eedf0df8e4cb90c4cc73734ca.zip |
don't spawn many uucicos
Diffstat (limited to 'odin/strm/download_youtube')
-rw-r--r-- | odin/strm/download_youtube | 5 |
1 files changed, 3 insertions, 2 deletions
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}" | |||
321 | if [[ -n "$(notmuch search "tag:inbox AND $msgId")" ]]; then | 321 | if [[ -n "$(notmuch search "tag:inbox AND $msgId")" ]]; then |
322 | if [[ ${msgTags[(i)tv]} -le $#msgTags ]]; then | 322 | if [[ ${msgTags[(i)tv]} -le $#msgTags ]]; then |
323 | printf "%s\n%s\n" "Media available on odin" "${title}" \ | 323 | printf "%s\n%s\n" "Media available on odin" "${title}" \ |
324 | | uux -p -n 'hel!notify-gkleen' -a download_youtube -u normal \ | 324 | | uux -r -p -n 'hel!notify-gkleen' -a download_youtube -u normal \ |
325 | && print "Sent notification to hel via uucp" | 325 | && print "Sent notification to hel via uucp" |
326 | else | 326 | else |
327 | queue.hel "${filename}" && notmuch tag '-inbox' '-unread' -- $msgId | 327 | queue.hel -r "${filename}" && notmuch tag '-inbox' '-unread' -- $msgId |
328 | fi | 328 | fi |
329 | systemctl --no-wait start uucico@hel.service | ||
329 | else | 330 | else |
330 | print "Message vanished from inbox" | warn | 331 | print "Message vanished from inbox" | warn |
331 | fi | 332 | fi |