ebooks-shares: add vip results setting. resolves #11387

tracker doesn't support multi-category search
This commit is contained in:
ilike2burnthing
2022-01-16 16:03:37 +00:00
committed by GitHub
parent a5b7e58d26
commit 2a23f98682

View File

@@ -274,6 +274,10 @@ settings:
type: checkbox type: checkbox
label: Search freeleech only label: Search freeleech only
default: false default: false
- name: vip
type: checkbox
label: Include VIP results
default: true
- name: sort - name: sort
type: select type: select
label: Sort requested from site label: Sort requested from site
@@ -316,10 +320,9 @@ search:
paths: paths:
- path: torrents-search.php - path: torrents-search.php
inputs: inputs:
$raw: "{{ range .Categories }}filter_cat[{{.}}]=1&{{end}}"
search: "{{ if .Keywords }}\"{{ .Keywords }}\"{{ else }}{{ end }}" search: "{{ if .Keywords }}\"{{ .Keywords }}\"{{ else }}{{ end }}"
# 0 only active 1 incl dead 2 only dead # 0 only active 1 incl dead 2 only dead
incldead: 0 incldead: 1
# 0 all 1 not freeleech 2 only freeleech # 0 all 1 not freeleech 2 only freeleech
freeleech: "{{ if .Config.freeleech }}2{{ else }}0{{ end }}" freeleech: "{{ if .Config.freeleech }}2{{ else }}0{{ end }}"
# 0 all 1 english 2 french 3 german 4 italian 5 japanese 6 spanish 7 russian 8 other # 0 all 1 english 2 french 3 german 4 italian 5 japanese 6 spanish 7 russian 8 other
@@ -328,7 +331,7 @@ search:
order: "{{ .Config.type }}" order: "{{ .Config.type }}"
rows: rows:
selector: tr.t-row selector: "tr.t-row{{ if .Config.vip }}{{ else }}:not(:has(a[href^=\"torrents.php?cat=\"]):contains(\"VIP\")){{ end }}"
fields: fields:
category: category: