hook for recording play
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
@@ -1,5 +1,13 @@
|
||||
BEGIN { OFS="\t" }
|
||||
|
||||
BEGIN {
|
||||
OFS="\t"
|
||||
local_recordings[0] = 0
|
||||
delete local_recordings[0]
|
||||
if (file_local_recordings) {
|
||||
while ((getline < file_local_recordings) == 1)
|
||||
local_recordings[$1] = $2
|
||||
close(file_local_recordings)
|
||||
}
|
||||
}
|
||||
{
|
||||
gsub("&", "\\\\&")
|
||||
id = $1
|
||||
@@ -27,6 +35,7 @@ BEGIN { OFS="\t" }
|
||||
sub("<<title>>", title, line)
|
||||
sub("<<artist>>", artist, line)
|
||||
sub("<<duration>>", dur, line)
|
||||
l = local_recordings[id] ? format_local : ""
|
||||
sortk = med" "nr
|
||||
print sortk, line, id
|
||||
print sortk, l, line, id ":" local_recordings[id]
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
BEGIN {
|
||||
BEGIN {
|
||||
OFS="\t"
|
||||
local_releasegroups[0] = 0
|
||||
delete local_releasegroups[0]
|
||||
@@ -20,8 +20,7 @@ BEGIN {
|
||||
title = $5
|
||||
artistcredit = $6
|
||||
line_release = artist == artistcredit ? format_release : format_release_w_artist
|
||||
if (local_releasegroups[$1])
|
||||
line_release = format_local line_release
|
||||
l = local_releasegroups[$1] ? format_local : ""
|
||||
switch (type) {
|
||||
case "Single": line_type=format_single; break
|
||||
case "Album": line_type=format_album; break
|
||||
@@ -59,5 +58,5 @@ BEGIN {
|
||||
line_year = year ? format_year : ""
|
||||
sub("<<year>>", year, line_year)
|
||||
sortk = year ? year : 0
|
||||
print sortk, line_type, line_release, line_year, line_sectype, id
|
||||
print sortk, l, line_type, line_release, line_year, line_sectype, id
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
BEGIN {
|
||||
BEGIN {
|
||||
OFS="\t"
|
||||
local_releases[0] = 0
|
||||
delete local_releases[0]
|
||||
@@ -52,7 +52,6 @@ BEGIN {
|
||||
sub("<<artist>>", artist, line)
|
||||
sub("<<country>>", country, line)
|
||||
sortk = year ? year : 0
|
||||
if (local_releases[id])
|
||||
line = format_local line
|
||||
print sortk, line, id ":" local_releases[id]
|
||||
l = local_releases[id] ? format_local : ""
|
||||
print sortk, l, line, id ":" local_releases[id]
|
||||
}
|
||||
|
Reference in New Issue
Block a user