cartoonchaos: enable imdbid support. for #4859

This commit is contained in:
Garfield69
2019-03-13 20:07:31 +13:00
parent 9d3eac2594
commit 77e9db411e

View File

@@ -40,9 +40,9 @@
- {id: 45, cat: TV/Documentary, desc: "Documentaries"} - {id: 45, cat: TV/Documentary, desc: "Documentaries"}
modes: modes:
search: [q] search: [q, imdbid]
tv-search: [q, season, ep] tv-search: [q, season, ep, imdbid]
movie-search: [q] movie-search: [q, imdbid]
login: login:
path: index.php?page=login path: index.php?page=login
@@ -63,9 +63,10 @@
- path: index.php - path: index.php
inputs: inputs:
page: torrents page: torrents
search: "{{ if .Keywords }}{{ .Keywords }}{{else}}{{end}}" search: "{{if .Query.IMDBID}}{{.Query.IMDBID}}{{else}}{{.Keywords}}{{end}}"
category: "{{if .Categories}}{{range .Categories}}{{.}};{{end}}{{else}}0{{end}}" category: "{{if .Categories}}{{range .Categories}}{{.}};{{end}}{{else}}0{{end}}"
options: 0 # options: 0=title, 1=title&descr, 2=descr
options: "{{if .Query.IMDBID}}1{{else}}0{{end}}"
active: 0 active: 0
rows: rows: