swarmazon-api: add search freeleech only. #13725

This commit is contained in:
ilike2burnthing
2023-04-19 08:59:56 +01:00
committed by GitHub
parent 9a65072e99
commit 1bfc1f3b56

View File

@@ -36,6 +36,10 @@ settings:
type: info type: info
label: About your API key label: About your API key
default: "Find or Generate a new API Token by accessing the <a href=\"https://swarmazon.club/en/view/settings.php?section=token\" target =_blank>Token Setting</a> page." default: "Find or Generate a new API Token by accessing the <a href=\"https://swarmazon.club/en/view/settings.php?section=token\" target =_blank>Token Setting</a> page."
- name: freeleech
type: checkbox
label: Search freeleech only
default: false
login: login:
path: api/search.php path: api/search.php
@@ -55,7 +59,8 @@ search:
inputs: inputs:
api_key: "{{ .Config.apikey }}" api_key: "{{ .Config.apikey }}"
filter: "{{ .Keywords }}" filter: "{{ .Keywords }}"
$raw: "{{ if .Query.IMDBID }}&media_ref={{ .Query.IMDBID }}{{ else }}{{ end }}" media_ref: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ end }}"
freeleech: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
limit: 100 limit: 100
rows: rows: