feat: detect local artists, rgs and releases

This commit is contained in:
2025-08-23 14:02:39 +02:00
parent bf3a26a4fd
commit d525342187
5 changed files with 42 additions and 8 deletions

View File

@@ -1,8 +1,16 @@
BEGIN { OFS="\t" }
$2 == "Group" { name = format_group }
$2 != "Group" { name = format_person }
BEGIN {
OFS="\t"
local_artists[0] = 0
delete local_artists[0]
while ((getline < file_local_artists) == 1)
local_artists[$1] = 1
close(file_local_artists)
}
{
gsub("&", "\\\\&")
name = $2 == "Group" ? format_group : format_person
if (local_artists[$1])
name = format_local name
if ($4)
name = name " " format_disambiguation
sub("<<disambiguation>>", $4, name)