Skip to content

Commit

Permalink
zetorrents: season pack support. #9712
Browse files Browse the repository at this point in the history
optional cat config support for torznab app compatibility
  • Loading branch information
garfield69 committed Oct 21, 2020
1 parent e8dcaa2 commit 4a30195
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions src/Jackett.Common/Definitions/zetorrents.yml
Expand Up @@ -14,17 +14,24 @@ legacylinks:

caps:
categories:
1: Other
1: TV
2: Movies
3: Other

modes:
search: [q]
tv-search: [q, season, ep]
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
Expand All @@ -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:
Expand Down

0 comments on commit 4a30195

Please sign in to comment.