diff --git a/src/Jackett.Common/Definitions/cartoonchaos.yml b/src/Jackett.Common/Definitions/cartoonchaos.yml
index 58b93a058..96877fc7d 100644
--- a/src/Jackett.Common/Definitions/cartoonchaos.yml
+++ b/src/Jackett.Common/Definitions/cartoonchaos.yml
@@ -19,6 +19,22 @@
type: info
label: "Search results"
default: "Only the xBtit_Default style is supported with this indexer.
For best results, increase the torrents number in your profile to 100.
Default is 15."
+ - name: sort
+ type: select
+ label: Sort requested from site
+ default: "3"
+ options:
+ "3": "created"
+ "5": "seeders"
+ "4": "size"
+ "2": "title"
+ - name: type
+ type: select
+ label: Order requested from site
+ default: "2"
+ options:
+ "2": "desc"
+ "1": "asc"
caps:
categorymappings:
@@ -63,14 +79,17 @@
- path: index.php
inputs:
page: torrents
- search: "{{if .Query.IMDBID}}{{.Query.IMDBID}}{{else}}{{.Keywords}}{{end}}"
- category: "{{if .Categories}}{{range .Categories}}{{.}};{{end}}{{else}}0{{end}}"
+ 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}}"
+ options: "{{ if .Query.IMDBID }}1{{else}}0{{end}}"
active: 0
+ order: "{{ .Config.sort }}"
+ by: "{{ .Config.type }}"
rows:
selector: table.lista tr td table.lista tr:has(a[href^="index.php?page=torrent-details"])
+
fields:
title:
selector: td a[href^="index.php?page=torrent-details"]
@@ -123,7 +142,7 @@
selector: td:nth-child(8)
downloadvolumefactor:
case:
- img[src="gold/gold.gif"]: "0"
- "*": "1"
+ img[src="gold/gold.gif"]: 0
+ "*": 1
uploadvolumefactor:
- text: "1"
+ text: 1