From 10cb131edc56193e53a83fa3f5fce1ab502a7ca0 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Wed, 3 Aug 2022 19:28:29 +1200 Subject: [PATCH] peeratiko: add genre query and results --- src/Jackett.Common/Definitions/peeratiko.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/Jackett.Common/Definitions/peeratiko.yml b/src/Jackett.Common/Definitions/peeratiko.yml index cc7bf0144..6eb188c1c 100644 --- a/src/Jackett.Common/Definitions/peeratiko.yml +++ b/src/Jackett.Common/Definitions/peeratiko.yml @@ -63,10 +63,10 @@ caps: modes: search: [q] - tv-search: [q, season, ep] - movie-search: [q] - music-search: [q] - book-search: [q] + tv-search: [q, season, ep, genre] + movie-search: [q, genre] + music-search: [q, genre] + book-search: [q, genre] settings: - name: username @@ -123,9 +123,9 @@ search: - path: browse.php inputs: # note: site uses the catsX[]=nn method which cardigann does not support. - search: "{{ .Keywords }}" + search: "{{ if .Query.Genre }}{{ .Query.Genre }} {{ else }}{{ end }}{{ .Keywords }}" # title, descr, filelist, genre, tags, all - searchin: title + searchin: "{{ if .Query.Genre }}all{{ else }}title{{ end }}" # 0 active, 1 incldead, 2 onlydead incldead: 1 only_free: "{{ if .Config.freeleech }}1{{ else }}{{ end }}" @@ -155,6 +155,10 @@ search: download: selector: a[href^="download.php?torrent="] attribute: href + genre: + selector: strong > i + description: + text: "{{ .Result.genre }}" poster: selector: a[href^="details.php?id="] attribute: onmouseover