feat: detect local artists, rgs and releases
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user