From 22a5f46276185274506815fc957c89912c22f40c Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Mon, 16 Mar 2020 17:58:39 +1300 Subject: [PATCH] totallykids: add imdb search. #4859 --- src/Jackett.Common/Definitions/cartoonchaos.yml | 6 ++++-- src/Jackett.Common/Definitions/totallykids.yml | 12 ++++++------ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/Jackett.Common/Definitions/cartoonchaos.yml b/src/Jackett.Common/Definitions/cartoonchaos.yml index 116ff86d1..0ebb9624d 100644 --- a/src/Jackett.Common/Definitions/cartoonchaos.yml +++ b/src/Jackett.Common/Definitions/cartoonchaos.yml @@ -59,6 +59,7 @@ search: [q, imdbid] tv-search: [q, season, ep, imdbid] movie-search: [q, imdbid] + music-search: [q] login: path: index.php?page=login @@ -81,8 +82,9 @@ page: torrents search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}" category: "{{ if .Categories }}{{ range .Categories }}{{.}};{{end}}{{else}}0{{end}}" - # options: 0=title, 1=title&descr, 2=descr - options: "{{ if .Query.IMDBID }}1{{else}}0{{end}}" + # 0=title, 1=title&descr, 2=descr + options: "{{ if .Query.IMDBID }}2{{else}}0{{end}}" + # 0 all 1 activeonly 2 deadonly active: 0 order: "{{ .Config.sort }}" by: "{{ .Config.type }}" diff --git a/src/Jackett.Common/Definitions/totallykids.yml b/src/Jackett.Common/Definitions/totallykids.yml index 684d6c4ab..41db5f55b 100644 --- a/src/Jackett.Common/Definitions/totallykids.yml +++ b/src/Jackett.Common/Definitions/totallykids.yml @@ -50,9 +50,9 @@ - {id: 24, cat: TV, desc: "Teens"} modes: - search: [q] - tv-search: [q, season, ep] - movie-search: [q] + search: [q, imdbid] + tv-search: [q, season, ep, imdbid] + movie-search: [q, imdbid] music-search: [q] login: @@ -74,10 +74,10 @@ - path: index.php inputs: 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}}" - # 0 filename 1 file&descr 2 descr - options: 0 + # 0=title, 1=title&descr, 2=descr + options: "{{ if .Query.IMDBID }}2{{else}}0{{end}}" # 0 all 1 activeonly 2 deadonly active: 0 order: "{{ .Config.sort }}"