artist select, ctrl-h ctrl-l keys, bugfixes

This commit is contained in:
2025-07-31 20:29:30 +02:00
parent fcc9f5d252
commit 935c9b3b52
5 changed files with 67 additions and 15 deletions

View File

@@ -1,8 +1,8 @@
BEGIN { OFS="\t" }
{
gsub("&", "\\\\&")
id = $1
print ">>"id"<<" >> "/tmp/foo"
status = $2
year = substr($3, 1, 4) + 0
year = year == 0 ? "" : year
@@ -28,15 +28,24 @@ BEGIN { OFS="\t" }
line = line "\t" release_format_title_artist
else if (artist != rg_artist && title == rg_title)
line = line "\t" release_format_artist
else if (artist != rg_artist && title == rg_title)
else if (artist == rg_artist && title != rg_title)
line = line "\t" release_format_title
else
line = line "\t"
if (artist != rg_artist)
print "artist not rg_artist: "artist"!="rg_artist >> "/tmp/foo"
if (title != rg_title)
print "title not rg_title: "title"!="rg_title >> "/tmp/foo"
sub("<<status>>", line_status, line)
sub("<<year>>", year, line)
sub("<<tracks>>", trackcnt, line)
sub("<<media>>", media, line)
gsub("&", "\\\\&", label)
sub("<<label>>", label, line)
gsub("&", "\\\\&", titel)
sub("<<title>>", title, line)
gsub("&", "\\\\&", artist)
sub("<<artist>>", artist, line)
sub("<<country>>", country, line)
sortk = year ? year : 0