diff --git a/src/Jackett.Common/Definitions/cpasbienclone.yml b/src/Jackett.Common/Definitions/cpasbienclone.yml index e281481cd..f9c50c1df 100644 --- a/src/Jackett.Common/Definitions/cpasbienclone.yml +++ b/src/Jackett.Common/Definitions/cpasbienclone.yml @@ -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