hqmusic: tidy search

This commit is contained in:
ilike2burnthing 2023-12-02 01:05:44 +00:00 committed by GitHub
parent dd0f1ae65e
commit ef64424e5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -68,10 +68,10 @@ search:
$raw: "{{ range .Categories }}filter_cat[{{.}}]=1&{{end}}"
searchstr: "{{ .Keywords }}"
artistname: "{{ if and (.Query.Artist) (ne .Query.Artist \"VA\") }}{{ .Query.Artist }}{{ else }}{{ end }}"
groupname: "{{ if .Query.Album }}{{ .Query.Album }}{{ else }}{{ end }}"
recordlabel: "{{ if .Query.Label }}{{ .Query.Label }}{{ else }}{{ end }}"
year: "{{ if .Query.Year }}{{ .Query.Year }}{{ else }}{{ end }}"
filelist: "{{ if .Query.Track }}{{ .Query.Track }}{{ else }}{{ end }}"
groupname: "{{ .Query.Album }}"
recordlabel: "{{ .Query.Label }}"
year: "{{ .Query.Year }}"
filelist: "{{ .Query.Track }}"
freetorrent: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
taglist: "{{ .Query.Genre }}"
# 0 Any, 1 All