Update modules/home/wayland/apps/eww/bar/scripts/radio

This commit is contained in:
sora 2023-12-01 15:50:07 +01:00
parent 7a3a2a9f69
commit 09e3a2af95

View File

@ -15,7 +15,7 @@ PID=$( [ -e "$MPV_PID_FILE" ] && cat "$MPV_PID_FILE" || echo 0 )
RADIO_ID=$( [ -e "$RADIO_ID_FILE" ] && cat "$RADIO_ID_FILE" || echo 0 )
RADIO_URL=""
INFO='{"id":null,"artist":null,"song":null,"image600":null}'
PAUSED=$(( $PID == 0 && $RADIO_ID > 0 ? 1 : 0 ))
PAUSED=$(( $PID == 0 || $RADIO_ID == 0 ? 1 : 0 ))
STATUS="{}"
get_radio() {