extended awk scripts to return partentid
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
Reference in New Issue
Block a user