diff --git a/src/Jackett.Common/Definitions/cinemamovies.yml b/src/Jackett.Common/Definitions/cinemamovies.yml
index 9ebe182e6..fc5b46a52 100644
--- a/src/Jackett.Common/Definitions/cinemamovies.yml
+++ b/src/Jackett.Common/Definitions/cinemamovies.yml
@@ -44,6 +44,10 @@ settings:
type: info
label: How to get the Cookie
default: "
- Login to this tracker with your browser
- Open the DevTools panel by pressing F12
- Select the Network tab
- Click on the Doc button
- Refresh the page by pressing F5
- Select the Headers tab
- Find 'cookie:' in the Request Headers section
- Select and Copy the whole cookie string (everything after 'cookie: ') and Paste here.
"
+ - name: drop_polish_prefix
+ type: checkbox
+ label: Drop the Polish title prefix
+ default: false
- name: sort
type: select
label: Sort requested from site
@@ -94,8 +98,15 @@ search:
filters:
- name: querystring
args: cat
- title:
+ title_raw:
selector: a[href^="details.php?id="]
+ title_stripped:
+ selector: a[href^="details.php?id="]
+ filters:
+ - name: re_replace
+ args: ["^(.* / )(.*)$", "$2"]
+ title:
+ text: "{{ if .Config.drop_polish_prefix }}{{ .Result.title_stripped }}{{ else }}{{ .Result.title_raw }}{{ end }}"
details:
selector: a[href^="details.php?id="]
attribute: href
diff --git a/src/Jackett.Common/Definitions/torrentleech-pl.yml b/src/Jackett.Common/Definitions/torrentleech-pl.yml
index edc868040..4f3e230a9 100644
--- a/src/Jackett.Common/Definitions/torrentleech-pl.yml
+++ b/src/Jackett.Common/Definitions/torrentleech-pl.yml
@@ -51,6 +51,10 @@ settings:
type: info
label: How to get the Cookie
default: "- Login to this tracker with your browser
- Open the DevTools panel by pressing F12
- Select the Network tab
- Click on the Doc button
- Refresh the page by pressing F5
- Select the Headers tab
- Find 'cookie:' in the Request Headers section
- Select and Copy the whole cookie string (everything after 'cookie: ') and Paste here.
"
+ - name: drop_polish_prefix
+ type: checkbox
+ label: Drop the Polish title prefix
+ default: false
# - name: sort
# type: select
# label: Sort requested from site
@@ -111,8 +115,15 @@ search:
filters:
- name: querystring
args: cat
- title:
+ title_raw:
selector: a[href^="details.php?id="]
+ title_stripped:
+ selector: a[href^="details.php?id="]
+ filters:
+ - name: re_replace
+ args: ["^(.* / )(.*)$", "$2"]
+ title:
+ text: "{{ if .Config.drop_polish_prefix }}{{ .Result.title_stripped }}{{ else }}{{ .Result.title_raw }}{{ end }}"
details:
selector: a[href^="details.php?id="]
attribute: href