diff --git a/src/Jackett.Common/Definitions/cpabien.yml b/src/Jackett.Common/Definitions/cpabien.yml
index 1e2895946..e71eee0fc 100644
--- a/src/Jackett.Common/Definitions/cpabien.yml
+++ b/src/Jackett.Common/Definitions/cpabien.yml
@@ -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]
@@ -66,10 +68,14 @@ settings:
type: info
label: How to get the User-Agent
default: "
- From the same place you fetched the cookie,
- Find 'user-agent:' in the Request Headers section
- Select and Copy the whole user-agent string (everything after 'user-agent: ') and Paste here.
"
- - name: info_categories
- type: info
- label: "About categories"
- default: "cpasbien does not show Categories in its Search Results.
To use this indexer with Sonarr/Radarr set your indexer category to 7000."
+ - 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
@@ -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: