hook for recording play

This commit is contained in:
2025-08-24 22:46:34 +02:00
parent f93b85b55e
commit a48a92ca58
6 changed files with 45 additions and 20 deletions

View File

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