torrentleech: add exclude archives option

This commit is contained in:
Bogdan 2023-07-03 22:50:20 +03:00
parent e1c206bcfd
commit 93a26a78f5
1 changed files with 5 additions and 1 deletions

View File

@ -100,6 +100,10 @@ settings:
type: checkbox
label: Exclude SCENE torrents from results
default: false
- name: exclude_archives
type: checkbox
label: Exclude torrents with the tag RAR from results
default: false
- name: sort
type: select
label: Sort requested from site
@ -154,7 +158,7 @@ search:
- name: re_replace
args: ["(^|\\s)-", " "]
rows:
selector: torrentList
selector: "torrentList{{ if .Config.exclude_archives }}:not(.tags:contains(\"rar\")){{ else }}{{ end }}"
count:
selector: $.numFound