mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
cartoonchaos: add config sort option
This commit is contained in:
@@ -19,6 +19,22 @@
|
|||||||
type: info
|
type: info
|
||||||
label: "Search results"
|
label: "Search results"
|
||||||
default: "Only the <b>xBtit_Default</b> style is supported with this indexer.<br />For best results, increase the torrents number in your profile to 100.<br />Default is 15."
|
default: "Only the <b>xBtit_Default</b> style is supported with this indexer.<br />For best results, increase the torrents number in your profile to 100.<br />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:
|
caps:
|
||||||
categorymappings:
|
categorymappings:
|
||||||
@@ -63,14 +79,17 @@
|
|||||||
- path: index.php
|
- path: index.php
|
||||||
inputs:
|
inputs:
|
||||||
page: torrents
|
page: torrents
|
||||||
search: "{{if .Query.IMDBID}}{{.Query.IMDBID}}{{else}}{{.Keywords}}{{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=title, 1=title&descr, 2=descr
|
# 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
|
active: 0
|
||||||
|
order: "{{ .Config.sort }}"
|
||||||
|
by: "{{ .Config.type }}"
|
||||||
|
|
||||||
rows:
|
rows:
|
||||||
selector: table.lista tr td table.lista tr:has(a[href^="index.php?page=torrent-details"])
|
selector: table.lista tr td table.lista tr:has(a[href^="index.php?page=torrent-details"])
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
title:
|
title:
|
||||||
selector: td a[href^="index.php?page=torrent-details"]
|
selector: td a[href^="index.php?page=torrent-details"]
|
||||||
@@ -123,7 +142,7 @@
|
|||||||
selector: td:nth-child(8)
|
selector: td:nth-child(8)
|
||||||
downloadvolumefactor:
|
downloadvolumefactor:
|
||||||
case:
|
case:
|
||||||
img[src="gold/gold.gif"]: "0"
|
img[src="gold/gold.gif"]: 0
|
||||||
"*": "1"
|
"*": 1
|
||||||
uploadvolumefactor:
|
uploadvolumefactor:
|
||||||
text: "1"
|
text: 1
|
||||||
|
Reference in New Issue
Block a user