Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
cpabien: season pack support. #9712
optional cat config support for torznab app compatibility
  • Loading branch information
garfield69 committed Oct 21, 2020
1 parent ce378ee commit 48ea2d1
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions src/Jackett.Common/Definitions/cpabien.yml
Expand Up @@ -42,8 +42,10 @@ legacylinks:
- https://wvw.cpasbien-fr.fr/

caps:
categorymappings:
- {id: other, cat: Other, desc: "Movies/TV/Other"}
categories:
1: TV
2: Movies
3: Other

modes:
search: [q]
Expand All @@ -66,10 +68,14 @@ settings:
type: info
label: How to get the User-Agent
default: "<ol><li>From the same place you fetched the cookie,<li>Find <b>'user-agent:'</b> in the <b>Request Headers</b> section<li><b>Select</b> and <b>Copy</b> the whole user-agent string <i>(everything after 'user-agent: ')</i> and <b>Paste</b> here.</ol>"
- name: info_categories
type: info
label: "About categories"
default: "cpasbien does not show <b>Categories</b> in its Search Results.<br />To use this indexer with Sonarr/Radarr set your indexer category to <b>7000</b>."
- name: category-id
type: select
label: The cpabien 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 Down Expand Up @@ -102,18 +108,24 @@ download:

search:
paths:
- path: "{{ if .Keywords }}index.php?do=search&subaction=search{{else}}{{end}}"
- path: "{{ if .Keywords }}index.php?do=search&subaction=search{{ else }}{{ end }}"
method: post
inputs:
story: "{{ if .Keywords }}{{ .Keywords }}{{else}}{{end}}"
story: "{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ end }}"
# does not support imdbid search and does not return imdb link in results.
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: div#gauche > table > tbody > tr:has(a)

fields:
category:
text: other
text: "{{ .Config.category-id }}"
site_date:
selector: a
filters:
Expand Down

0 comments on commit 48ea2d1

Please sign in to comment.