diff --git a/src/Jackett.Common/Definitions/zetorrents.yml b/src/Jackett.Common/Definitions/zetorrents.yml index b608775bf..98f9bc2ea 100644 --- a/src/Jackett.Common/Definitions/zetorrents.yml +++ b/src/Jackett.Common/Definitions/zetorrents.yml @@ -14,7 +14,9 @@ legacylinks: caps: categories: - 1: Other + 1: TV + 2: Movies + 3: Other modes: search: [q] @@ -22,9 +24,14 @@ caps: movie-search: [q] settings: - - name: info - type: info - default: zetorrents does not use categories. In your software Indexer settings, set the category to 7000. + - name: category-id + type: select + label: The zetorrents web site does not provide categories. Select the category you want Jackett to set on all results returned. + default: 3 + options: + 1: TV + 2: Movies + 3: Other - name: multilang type: checkbox label: Replace MULTI by another language in release name @@ -51,14 +58,20 @@ download: search: paths: - - path: "{{ if .Keywords }}recherche/{{ .Keywords }}{{else}}{{end}}" + - path: "{{ if .Keywords }}recherche/{{ .Keywords }}{{ else }}{{ end }}" + keywordsfilters: + # if searching for season packs swith S01 to saison 1 #9712 + - name: re_replace + args: ["(?i)(S0)(\\d{1,2})$", "saison $2"] + - name: re_replace + args: ["(?i)(S)(\\d{1,3})$", "saison $2"] rows: selector: table.table > tbody > tr:has(a[href^="/torrent/"]) fields: category: - text: 1 + text: "{{ .Config.category-id }}" site_date: selector: a[href^="/torrent/"] filters: