faster but quite buggy; no disc state storage

This commit is contained in:
2025-09-04 15:10:16 +02:00
parent b15848887b
commit 8c37cb2fea
7 changed files with 368 additions and 81 deletions

View File

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