mirror of
https://github.com/Jackett/Jackett
synced 2025-02-26 16:12:55 +00:00
bttree: add andmatch filter. resolves #6601
also add config sort option
This commit is contained in:
parent
004d0d7014
commit
d1ac466974
1 changed files with 14 additions and 2 deletions
|
@ -16,18 +16,30 @@
|
|||
search: [q]
|
||||
music-search: [q, album, artist, label, year]
|
||||
|
||||
settings: []
|
||||
settings:
|
||||
- name: sort
|
||||
type: select
|
||||
label: Sort requested from site
|
||||
default: "added"
|
||||
options:
|
||||
"added": "created"
|
||||
"seeders": "seeders"
|
||||
"name": "title"
|
||||
|
||||
search:
|
||||
paths:
|
||||
# http://bt.etree.org/?searchzzzz=&cat=0
|
||||
- path: /
|
||||
inputs:
|
||||
searchzzzz: "{{if .Query.Artist}}{{ .Query.Artist }}{{else}}{{ .Keywords }}{{end}}"
|
||||
searchzzzz: "{{ if .Query.Artist }}{{ .Query.Artist }}{{else}}{{ .Keywords }}{{end}}"
|
||||
cat: 0
|
||||
sort: "{{ .Config.sort }}"
|
||||
|
||||
rows:
|
||||
selector: table[bgcolor="#CCCCCC"] tbody tr:has(a[href^="download.php"])
|
||||
filters:
|
||||
- name: andmatch
|
||||
|
||||
fields:
|
||||
category:
|
||||
text: "Music"
|
||||
|
|
Loading…
Reference in a new issue