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

@@ -9,17 +9,18 @@ BEGIN {
}
}
{
id = $1
status = $2
year = substr($3, 1, 4) + 0
parentid = $1
id = $2
status = $3
year = substr($4, 1, 4) + 0
year = year == 0 ? "" : year
covercount = $4
label = $5
trackcnt = $6
media = $7
country = $8
title = $9
artist = $10
covercount = $5
label = $6
trackcnt = $7
media = $8
country = $9
title = $10
artist = $11
switch (status) {
case "Official": line_status = release_official; break
case "Promotion": line_status = release_promotion; break
@@ -53,5 +54,5 @@ BEGIN {
sub("<<country>>", country, line)
sortk = year ? year : 0
l = local_releases[id] ? format_local : ""
print sortk, l, line, id ":" local_releases[id]
print sortk, l, line, parentid, id ":" local_releases[id]
}