bugfix: single file play
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user