linkomanija: add freeleech only setting (#14119)

This commit is contained in:
Bogdan 2023-03-03 23:09:46 +02:00 committed by GitHub
parent a51fab1fc9
commit 381212f783
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -53,11 +53,13 @@ settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: freeleech
type: checkbox
label: Search freeleech only
default: false
- name: searchindesc
type: checkbox
label: Search in torrent description (get more results)
@ -78,7 +80,7 @@ search:
paths:
- path: browse.php
inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}{{ if .Config.freeleech }}freeleech=1&{{ else }}{{ end }}"
search: "{{ .Keywords }}"
incldead: 1
searchindesc: "{{ .Config.searchindesc }}"