bigfangroup: fix 0 results for keywordless search

This commit is contained in:
Garfield69 2024-04-26 09:10:38 +12:00
parent ca13c35c94
commit 971ceb68aa
1 changed files with 7 additions and 7 deletions

View File

@ -91,20 +91,20 @@ settings:
search: search:
# https://bigfangroup.org/browse.php?search=black+lightning&cat=0&incldead=0&year=0&format=0 # https://bigfangroup.org/browse.php?search=black+lightning&cat=0&incldead=0&year=0&format=0
headers: headers:
Referer: ["{{ .Config.sitelink }}browse.php?search={{ .Keywords }}&cat=0&incldead=1&year=0&format=0"] Referer: ["{{ .Config.sitelink }}browse.php{{ if .Keywords }}?search={{ .Keywords }}&cat=0&incldead=1&year=0&format=0{{ else }}{{ end }}"]
paths: paths:
# https://bigfangroup.org/browse.php?ajax=1&search=the+librarian&cat=0&incldead=0&year=0&format=0 # https://bigfangroup.org/browse.php?ajax=1&search=the+librarian&cat=0&incldead=0&year=0&format=0
- path: browse.php - path: browse.php
inputs: inputs:
ajax: 1 ajax: 1
search: "{{ .Keywords }}" search: "{{ .Keywords }}"
cat: 0 cat: "{{ if .Keywords }}0{{ else }}{{ end }}"
# 0 active, 1 incldead, 2 onlydead, 3 gold, 4 noseed, 5 silver, 7 BFG # 0 active, 1 incldead, 2 onlydead, 3 gold, 4 noseed, 5 silver, 7 BFG
incldead: 1 incldead: "{{ if .Keywords }}1{{ else }}{{ end }}"
year: 0 year: "{{ if .Keywords }}0{{ else }}{{ end }}"
format: 0 format: "{{ if .Keywords }}0{{ else }}{{ end }}"
s: "{{ .Config.sort }}" s: "{{ if .Keywords }}{{ .Config.sort }}{{ else }}{{ end }}"
d: "{{ .Config.type }}" d: "{{ if .Keywords }}{{ .Config.type }}{{ else }}{{ end }}"
keywordsfilters: keywordsfilters:
# strip season and/or ep # strip season and/or ep