Skip to content

Commit 87c686a

Browse files
committed
fix display current station name during navigation
1 parent ff35bbf commit 87c686a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

shelldio.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,20 @@ info() {
298298

299299
last_title=""
300300
last_time=""
301+
last_station_name=""
301302

302303
while kill -0 "$mpv_pid" 2>/dev/null; do
303304
current_title=$(get_current_title)
304305
current_time=$(date +"%T")
305306

307+
# Update station name if it changed (during navigation)
308+
if [[ "$stathmos_name" != "$last_station_name" ]]; then
309+
tput cup 20 0 # Move to station name line
310+
tput el # Clear line
311+
echo -ne " Ακούτε: $stathmos_name"
312+
last_station_name="$stathmos_name"
313+
fi
314+
306315
# Update title only when it changes
307316
if [[ "$current_title" != "$last_title" ]]; then
308317
tput cup 21 0 # Move to title line (after welcome screen)

0 commit comments

Comments
 (0)