anidex: fix #1817 settings' category id causing no results (#1880)

This commit is contained in:
garfield69 2017-09-22 18:06:22 +12:00 committed by kaso17
parent aee64183fc
commit db9fb73b4d
1 changed files with 6 additions and 9 deletions

View File

@ -1,4 +1,4 @@
---
---
site: anidex
name: Anidex
description: "Anidex is a torrent tracker and indexer, primarily for English fansub groups of anime"
@ -34,16 +34,13 @@
- name: cat-id
type: text
label: Category Id
# no longer supported?
# - name: lang-id
# type: text
# label: Language Id
- name: info
type: info
label: Category Id Note
default: "You can filter your searches by using any of the following category numbers (comma delimited):<br>1 :Anime - Sub<br>2 :Anime - Raw<br>3 :Anime - Dub<br>4 :LA - Sub<br>5 :LA - Raw<br>6 :Light Novel<br>7 :Manga - TLed<br>8 :Manga - Raw<br>9 :♫ - Lossy<br>10 :♫ - Lossless<br>11 :♫ - Video<br>12 :Games<br>13 :Applications<br>14 :Pictures<br>15 :Adult Video<br>16 :Other"
search:
path: "/"
inputs:
q: "{{ .Query.Keywords }}"
id: "{{ .Config.cat-id }}"
path: "?{{if .Config.cat-id}}id={{.Config.cat-id }}&{{else}}{{end}}q={{if .Keywords}}{{.Keywords}}{{else}}{{end}}"
rows:
selector: div.table-responsive > table > tbody > tr
fields: