extended awk scripts to return partentid

This commit is contained in:
2025-08-28 13:26:47 +02:00
parent 28f6dc67ba
commit f2383c3803
9 changed files with 133 additions and 119 deletions

View File

@@ -10,12 +10,13 @@ BEGIN {
}
{
gsub("&", "\\\\&")
id = $1
med = $2
nr = $3
dur = $4
title = $5
artist = $6
parentid = $1
id = $2
med = $3
nr = $4
dur = $5
title = $6
artist = $7
# Parse duration
if (dur) {
dur = int(dur / 1000)
@@ -37,5 +38,5 @@ BEGIN {
sub("<<duration>>", dur, line)
l = local_recordings[id] ? format_local : ""
sortk = med" "nr
print sortk, l, line, id ":" local_recordings[id]
print sortk, l, line, parentid, id ":" local_recordings[id]
}