From e3be12857eb5d34644e5e38a962da5319a9cae8b Mon Sep 17 00:00:00 2001 From: handlerdigits <68083157+handlerdigits@users.noreply.github.com> Date: Sun, 12 Jul 2020 19:46:34 -0700 Subject: [PATCH] jpopsuki: use ajax.php for searching and fix search query params (#9131) * jpopsuki: if keywordless search then add Japanese tag Co-authored-by: garfield69 --- src/Jackett.Common/Definitions/jpopsuki.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/Jackett.Common/Definitions/jpopsuki.yml b/src/Jackett.Common/Definitions/jpopsuki.yml index 392689b01..52c5cf5a7 100644 --- a/src/Jackett.Common/Definitions/jpopsuki.yml +++ b/src/Jackett.Common/Definitions/jpopsuki.yml @@ -1,5 +1,3 @@ -# looks like gazelle but ajax.php seems to be disabled: -# https://jpopsuki.eu/ajax.php?action=browse&order_by=time&order_way=desc => Invalid --- id: jpopsuki name: JPopsuki @@ -48,19 +46,16 @@ ratio: search: paths: - - path: torrents.php + - path: ajax.php inputs: - $raw: "{{ range .Categories }}filter_cat[{{.}}]=1&{{end}}" + $raw: "{{ range .Categories }}filter_cat[{{.}}]=1&{{end}}{{ if or .Query.Artist .Keywords }}{{ else }}searchtags=japanese&tags_type=0&{{ end }}" searchstr: "{{ if .Query.Artist }}{{ .Query.Artist }}{{ else }}{{ .Keywords }}{{ end }}" # s1 name, s2 year, s3 added, s4 size, s5 snatched, s6 seeders, s7 leechers order_by: s3 # desc, asc order_way: desc - # basic, advanced - action: basic - # 0 any, 1 all - searchtags: 0 disablegrouping: 1 + section: torrents rows: selector: table#torrent_table > tbody > tr[class^="torrent"]