rg caching, improved display
This commit is contained in:
@@ -17,12 +17,12 @@ BEGIN { OFS="\t" }
|
||||
case "EP": line_type=format_ep; break
|
||||
case "Broadcast": line_type=format_broadcast; break
|
||||
case "Other": line_type=format_other; break
|
||||
default: line_type="unknown type"
|
||||
default: line_type=""
|
||||
}
|
||||
split(sectype, a, ";")
|
||||
for (i in a) {
|
||||
t=""
|
||||
switch (sectype) {
|
||||
switch (a[i]) {
|
||||
case "Compilation": t=format_compilation; break
|
||||
case "Soundtrack": t=format_soundtrack; break
|
||||
case "Spokenword": t=format_spokenword; break
|
||||
@@ -37,11 +37,15 @@ BEGIN { OFS="\t" }
|
||||
case "Field recording": t=fieldrec; break
|
||||
}
|
||||
if (t)
|
||||
line_sectype=line_sectype ? line_sectype " / " t : t
|
||||
line_sectype=line_sectype ? line_sectype ", " t : t
|
||||
}
|
||||
if (sectype) {
|
||||
line_type = sprintf(format_has_secondary, line_type)
|
||||
line_sectype = sprintf(format_secondary, line_sectype)
|
||||
}
|
||||
sub("<<title>>", title, line_release)
|
||||
line_year = year ? format_year : ""
|
||||
sub("<<year>>", year, line_year)
|
||||
sort = year ? year : 0
|
||||
print line_type, line_sectype, line_release, line_year, sort, id
|
||||
print line_type, line_release, line_year, line_sectype, sort, id
|
||||
}
|
||||
|
Reference in New Issue
Block a user