1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-01 12:46:23 +00:00

torrentleech-pl, cinemamovies: optionally drop Polish title prefix. resolves #8615

This commit is contained in:
Garfield69 2020-05-14 21:56:31 +12:00
parent a055c2b7fb
commit 267af572e3
2 changed files with 24 additions and 2 deletions

View file

@ -44,6 +44,10 @@ settings:
type: info
label: How to get the Cookie
default: "<ol><li>Login to this tracker with your browser<li>Open the <b>DevTools</b> panel by pressing <b>F12</b><li>Select the <b>Network</b> tab<li>Click on the <b>Doc</b> button<li>Refresh the page by pressing <b>F5</b><li>Select the <b>Headers</b> tab<li>Find <b>'cookie:'</b> in the <b>Request Headers</b> section<li><b>Select</b> and <b>Copy</b> the whole cookie string <i>(everything after 'cookie: ')</i> and <b>Paste</b> here.</ol>"
- 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

View file

@ -51,6 +51,10 @@ settings:
type: info
label: How to get the Cookie
default: "<ol><li>Login to this tracker with your browser<li>Open the <b>DevTools</b> panel by pressing <b>F12</b><li>Select the <b>Network</b> tab<li>Click on the <b>Doc</b> button<li>Refresh the page by pressing <b>F5</b><li>Select the <b>Headers</b> tab<li>Find <b>'cookie:'</b> in the <b>Request Headers</b> section<li><b>Select</b> and <b>Copy</b> the whole cookie string <i>(everything after 'cookie: ')</i> and <b>Paste</b> here.</ol>"
- 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