From 76a34e4d9c37ccd065708c100da024bccd4d278a Mon Sep 17 00:00:00 2001 From: Bauke Date: Thu, 28 Mar 2024 19:19:43 +0100 Subject: [PATCH] Output empty lines for no results and no longer escape ampersands. --- .bauke/bin/miniflux-unread-entries | 2 ++ .bauke/scripts/tauon-controls.ts | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.bauke/bin/miniflux-unread-entries b/.bauke/bin/miniflux-unread-entries index 81a5f87..74f7bae 100755 --- a/.bauke/bin/miniflux-unread-entries +++ b/.bauke/bin/miniflux-unread-entries @@ -8,4 +8,6 @@ count=$(echo $json | jq -j '.unreads | length') if [[ ! $count -eq "0" ]]; then echo $count +else + echo fi diff --git a/.bauke/scripts/tauon-controls.ts b/.bauke/scripts/tauon-controls.ts index 4e62173..5333d72 100644 --- a/.bauke/scripts/tauon-controls.ts +++ b/.bauke/scripts/tauon-controls.ts @@ -101,7 +101,9 @@ async function getStatus(): Promise { async function getCurrentSong(): Promise { const status = await getStatus(); if (status.status === "playing") { - console.log(`${status.artist} - ${status.title}`.replaceAll("&", "&")); + console.log(`${status.artist} - ${status.title}`); + } else { + console.log(""); } }