sugoimusic: add genre query and results

master
ilike2burnthing 2022-08-05 01:24:34 +01:00 committed by GitHub
parent 5230394ebf
commit 7c102a1101
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 3 deletions

View File

@ -25,8 +25,8 @@ caps:
modes:
search: [q]
tv-search: [q, season, ep]
music-search: [q]
tv-search: [q, season, ep, genre]
music-search: [q, genre]
settings:
- name: username
@ -91,7 +91,9 @@ search:
searchstr: "{{ .Keywords }}"
# we can only grab the first release if group_results=1
group_results: 0
action: basic
action: advanced
# year: "{{ .Query.Year }}" # broken on site
taglist: "{{ .Query.Genre }}"
order_by: "{{ .Config.sort }}"
order_way: "{{ .Config.type }}"
# 0 normal, 1 freeleech, 2 neutral leech, 3 either
@ -141,6 +143,10 @@ search:
filters:
- name: replace
args: ["/static/common/noartwork/nocover.png", ""]
genre:
selector: div.tags
description:
text: "{{ .Result.genre }}"
download:
selector: span > a[href^="torrents.php?action=download&id="]
attribute: href