zetorrents: season pack support. #9712

optional cat config support for torznab app compatibility
This commit is contained in:
Garfield69 2020-10-21 17:00:02 +13:00
parent e8dcaa2c4e
commit 4a30195db3
1 changed files with 19 additions and 6 deletions

View File

@ -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: