mirror of
https://github.com/Jackett/Jackett
synced 2025-02-12 17:44:42 +00:00
cpasbienclone: add config sort option
site does not provide categories, defaulting to Other.
This commit is contained in:
parent
ac9417caea
commit
8e017e7398
1 changed files with 23 additions and 12 deletions
|
@ -15,20 +15,27 @@
|
|||
|
||||
caps:
|
||||
categorymappings:
|
||||
- {id: films, cat: Movies, desc: "Movies"}
|
||||
- {id: series, cat: TV, desc: "TV"}
|
||||
- {id: musique, cat: Audio, desc: "Music"}
|
||||
- {id: ebook, cat: Books, desc: "Ebook"}
|
||||
- {id: logiciels, cat: PC, desc: "Software"}
|
||||
- {id: jeux-pc, cat: PC/Games, desc: "PC Games"}
|
||||
- {id: jeux-consoles, cat: Console, desc: "Console Games"}
|
||||
- {id: 1, cat: Other, desc: "Other"}
|
||||
|
||||
modes:
|
||||
search: [q]
|
||||
tv-search: [q, season, ep]
|
||||
movie-search: [q]
|
||||
|
||||
settings: []
|
||||
settings:
|
||||
- name: sort
|
||||
type: select
|
||||
label: Sort requested from site (Only works for searches with Keywords)
|
||||
default: "?trie-date-d"
|
||||
options:
|
||||
"?trie-date-d": "created desc"
|
||||
"?trie-date-a": "created asc"
|
||||
"?trie-seeds-d": "seeders desc"
|
||||
"?trie-seeds-a": "seeders asc"
|
||||
"?trie-poid-d": "size desc"
|
||||
"?trie-poid-a": "size asc"
|
||||
"?trie-nom-d": "title desc"
|
||||
"?trie-nom-a": "title asc"
|
||||
|
||||
download:
|
||||
selector: a[href^="magnet:"]
|
||||
|
@ -36,10 +43,14 @@
|
|||
|
||||
search:
|
||||
paths:
|
||||
- path: "{{if .Keywords}}recherche/{{.Keywords}}{{else}}{{end}}"
|
||||
- path: "{{ if .Keywords }}recherche/{{ .Keywords }}{{ .Config.sort }}{{else}}{{end}}"
|
||||
|
||||
rows:
|
||||
selector: table.table-corps > tbody > tr:has(a)
|
||||
|
||||
fields:
|
||||
category:
|
||||
text: 1
|
||||
site_date:
|
||||
selector: a
|
||||
filters:
|
||||
|
@ -92,7 +103,7 @@
|
|||
- name: re_replace
|
||||
args: [ "(\\d+)\\.\\d", "$1 MB"]
|
||||
date:
|
||||
text: "now"
|
||||
text: now
|
||||
seeders:
|
||||
text: 0
|
||||
seeders:
|
||||
|
@ -104,6 +115,6 @@
|
|||
selector: div.down
|
||||
optional: true
|
||||
downloadvolumefactor:
|
||||
text: "0"
|
||||
text: 0
|
||||
uploadvolumefactor:
|
||||
text: "1"
|
||||
text: 1
|
||||
|
|
Loading…
Reference in a new issue