bugfix: single file play

This commit is contained in:
2025-08-28 15:48:50 +02:00
parent 8bfa2d7483
commit 4a8f42cdd5
3 changed files with 54 additions and 49 deletions

View File

@@ -4,7 +4,7 @@ BEGIN {
delete local_recordings[0]
if (file_local_recordings) {
while ((getline < file_local_recordings) == 1)
local_recordings[$1] = $2
local_recordings[$1] = 1
close(file_local_recordings)
}
}
@@ -17,6 +17,7 @@ BEGIN {
dur = $5
title = $6
artist = $7
deco = local_recordings[id] ? $8 : ""
# Parse duration
if (dur) {
dur = int(dur / 1000)
@@ -39,5 +40,5 @@ BEGIN {
l = local_recordings[id] ? format_local : ""
c = id == current_id ? format_current : ""
sortk = med" "nr
print sortk, l, c, line, parentid, id ":" local_recordings[id]
print sortk, l, c, line, parentid, id ":" deco
}