From f4e99a18e6c03efaaafd6448700fc4d65e77ebc5 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sat, 12 Sep 2020 09:31:19 +1200 Subject: [PATCH] empornium: add freeleech filter #9456 --- src/Jackett.Common/Definitions/empornium.yml | 21 ++++++++++++++++--- .../Definitions/empornium2fa.yml | 13 +++++++++--- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/src/Jackett.Common/Definitions/empornium.yml b/src/Jackett.Common/Definitions/empornium.yml index 09e9d71ab..e268eba3f 100644 --- a/src/Jackett.Common/Definitions/empornium.yml +++ b/src/Jackett.Common/Definitions/empornium.yml @@ -66,6 +66,18 @@ caps: tv-search: [q] movie-search: [q] +settings: + - name: username + type: text + label: Username + - name: password + type: password + label: Password + - name: freeleech + type: checkbox + label: Search freeleech only + default: false + login: path: login method: form @@ -85,11 +97,14 @@ search: - path: torrents.php inputs: $raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}" + searchtext: "" title: "{{ .Keywords }}" order_by: time order_way: desc - action: basic - searchsubmit: 1 + action: advanced + filter_freeleech: "{{ if .Config.freeleech }}1{{ else }}{{ end }}" + filelist: "" + taglist: "" rows: # exclude redbar torrents @@ -147,4 +162,4 @@ search: "*": 1 uploadvolumefactor: text: 1 -# luminance +# Luminance diff --git a/src/Jackett.Common/Definitions/empornium2fa.yml b/src/Jackett.Common/Definitions/empornium2fa.yml index 6c0696714..790b4a1b6 100644 --- a/src/Jackett.Common/Definitions/empornium2fa.yml +++ b/src/Jackett.Common/Definitions/empornium2fa.yml @@ -71,7 +71,11 @@ settings: type: info label: How to get the Cookie default: "
  1. Login to this tracker with your browser
  2. Open the DevTools panel by pressing F12
  3. Select the Network tab
  4. Click on the Doc button (Chrome Browser) or HTML button (FireFox)
  5. Refresh the page by pressing F5
  6. Click on the first row entry
  7. Select the Headers tab on the Right panel
  8. Find 'cookie:' in the Request Headers section
  9. Select and Copy the whole cookie string (everything after 'cookie: ') and Paste here.
" - + label: Password + - name: freeleech + type: checkbox + label: Search freeleech only + default: false login: method: cookie @@ -86,11 +90,14 @@ search: - path: torrents.php inputs: $raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}" + searchtext: "" title: "{{ .Keywords }}" order_by: time order_way: desc - action: basic - searchsubmit: 1 + action: advanced + filter_freeleech: "{{ if .Config.freeleech }}1{{ else }}{{ end }}" + filelist: "" + taglist: "" rows: # exclude redbar torrents