icetorrent: fix imdbid searches. resolves #7651

also drop searching with both browse and browseadult
now use one or the other via config checkbox.
This commit is contained in:
Garfield69 2020-03-15 06:33:08 +13:00
parent fe3fcda356
commit 8ebeb2bb17
1 changed files with 11 additions and 5 deletions

View File

@ -77,6 +77,14 @@
# options:
# "DESC": "desc"
# "ASC": "asc"
- name: browseadult
type: checkbox
label: Use the BrowseAdult search engine
default: false
- name: info_browseadult
type: info
label: "About the BrowseAdult search engine"
default: "The regular <b>Browse</b> search engine does not return <i>Adult category</i> results.</br>The <b>BrowseAdult</b> search engine can return <i>all category</i> results, but without the <i>imdb tags</i>, and also does not support <i>imdbid</i> searches."
login:
path: login
@ -97,15 +105,13 @@
search:
paths:
- path: browse.php
categorymappings: ["!", 9, 11, 58]
- path: browseadult.php
categorymappings: [9, 11, 58]
- path: "{{ if .Config.browseadult }}browseadult.php{{else}}browse.php{{end}}"
inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBIDShort }}{{else}}{{ .Keywords }}{{end}}"
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}"
# 0 onlyalive 3 rosubbed 4 requested
incldead: 1
# name, descrname, genre, imdb
search_by: "{{ if .Query.IMDBID }}imdb{{else}}name{{end}}"
# by: "{{ .Config.sort }}"
# ord: "{{ .Config.type }}"