diff --git a/src/Jackett.Common/Definitions/toros.yml b/src/Jackett.Common/Definitions/toros.yml index 50963c7d9..835e5ec9b 100644 --- a/src/Jackett.Common/Definitions/toros.yml +++ b/src/Jackett.Common/Definitions/toros.yml @@ -25,7 +25,23 @@ tv-search: [q, season, ep] movie-search: [q] - settings: [] + settings: + - name: sort + type: select + label: Sort requested from site + default: "added" + options: + "added": "created" + "seeds": "seeders" + "size": "size" + "name": "title" + - name: type + type: select + label: Order requested from site + default: "desc" + options: + "desc": "desc" + "asc": "asc" download: selector: a[href^="magnet:?xt="] @@ -33,11 +49,13 @@ search: paths: # https://www.toros.co/all/torrents/capital-hill.html?v=&smi=&sma=&i=100&sort=added&o=desc - - path: "{{ if .Keywords }}all/torrents/{{ .Keywords }}.html?v=&smi=&sma=&i=100&sort=added&o=desc{{ else }}top100.html{{ end }}" + - path: "{{ if .Keywords }}all/torrents/{{ .Keywords }}.html?v=&smi=&sma=&i=100&sort={{ .Config.sort }}&o={{ .Config.type }}{{ else }}top100.html{{ end }}" + keywordsfilters: - name: re_replace args: ["[\\s]+", "-"] - name: tolower + rows: selector: table.table-responsive tr:has(a[href^="/torrent/"]) filters: