From 59a0315883f7f9fed3e2847cb81bc4825290c83e Mon Sep 17 00:00:00 2001
From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com>
Date: Thu, 30 Mar 2023 05:13:34 +0100
Subject: [PATCH] torrentleech-pl: add freeleech search. #9456
---
src/Jackett.Common/Definitions/torrentleech-pl.yml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/Jackett.Common/Definitions/torrentleech-pl.yml b/src/Jackett.Common/Definitions/torrentleech-pl.yml
index 15d8cb951..d1f71c8f0 100644
--- a/src/Jackett.Common/Definitions/torrentleech-pl.yml
+++ b/src/Jackett.Common/Definitions/torrentleech-pl.yml
@@ -53,6 +53,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 (Chrome Browser) or HTML button (FireFox)
- Refresh the page by pressing F5
- Click on the first row entry
- Select the Headers tab on the Right panel
- Find 'cookie:' in the Request Headers section
- Select and Copy the whole cookie string (everything after 'cookie: ') and Paste here.
"
+ - name: freeleech
+ type: checkbox
+ label: Search freeleech only
+ default: false
- name: drop_polish_prefix
type: checkbox
label: Drop the Polish title prefix
@@ -74,7 +78,7 @@ search:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
# 0 onlyactive, 1 all, 2 onlydead, 3 free
- incldead: 1
+ incldead: "{{ if .Config.freeleech }}3{{ else }}1{{ end }}"
# 0 title, 1 descr, 2 both
titlesearch: "{{ if .Query.IMDBID }}1{{ else }}0{{ end }}"
# 0 all, 1 polish, 2 not polish