From 48ea2d15da002da18a5c8247030bf0b26ecbfb0a Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Wed, 21 Oct 2020 16:58:02 +1300 Subject: [PATCH] cpabien: season pack support. #9712 optional cat config support for torznab app compatibility --- src/Jackett.Common/Definitions/cpabien.yml | 30 +++++++++++++++------- 1 file changed, 21 insertions(+), 9 deletions(-) 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: "
  1. From the same place you fetched the cookie,
  2. Find 'user-agent:' in the Request Headers section
  3. 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: