From 34464c85e5fe240213a216ca17a02050ce735120 Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Sat, 18 May 2024 13:23:55 +0100 Subject: [PATCH] cpabien: use windows UA to workaround linux block --- src/Jackett.Common/Definitions/cpabien.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Jackett.Common/Definitions/cpabien.yml b/src/Jackett.Common/Definitions/cpabien.yml index dc7fad764..123dd401f 100644 --- a/src/Jackett.Common/Definitions/cpabien.yml +++ b/src/Jackett.Common/Definitions/cpabien.yml @@ -80,11 +80,16 @@ search: inputs: 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 with S01 to saison 1 #9712 - name: re_replace args: ["(?i)\\b(?:S0?)(\\d{1,3})\\b", "saison $1"] + headers: + # site blocks Linux UAs, so slightly alter the Windows UA here (e.g. Safari/537.36 > Safari/537.35) + User-Agent: ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.35"] + rows: selector: div#gauche > table > tbody > tr:has(a), div#dle-content > a.cover2