From d31121fa773ea2ed4cb39d864f9e0a54b3bd9abe Mon Sep 17 00:00:00 2001
From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com>
Date: Wed, 29 Mar 2023 05:45:49 +0100
Subject: [PATCH] hdturk: add filter freeleech. #9456
---
src/Jackett.Common/Definitions/hdturk.yml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/Jackett.Common/Definitions/hdturk.yml b/src/Jackett.Common/Definitions/hdturk.yml
index 0e144bc81..4e0c948fb 100644
--- a/src/Jackett.Common/Definitions/hdturk.yml
+++ b/src/Jackett.Common/Definitions/hdturk.yml
@@ -96,6 +96,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: Filter freeleech only
+ default: false
login:
method: cookie
@@ -132,7 +136,7 @@ search:
# does not return imdb link in results
rows:
- selector: table#sortabletable tbody tr:has(div[id^="port-target-"])
+ selector: "table#sortabletable tbody tr:has(div[id^=\"port-target-\"]){{ if .Config.freeleech }}:has(img[src$=\"/freedownload.gif\"]){{ else }}{{ end }}"
fields:
title: