Skip to content

Commit

Permalink
turkseed:: add freeleech filter #9456
Browse files Browse the repository at this point in the history
add minimumratio
  • Loading branch information
garfield69 committed Sep 15, 2020
1 parent 83d6cea commit d2efdf7
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/Jackett.Common/Definitions/turkseed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,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 (Chrome Browser) or <b>HTML</b> button (FireFox)<li>Refresh the page by pressing <b>F5</b><li>Click on the first row entry<li>Select the <b>Headers</b> tab on the Right panel<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: freeleech
type: checkbox
label: Filter freeleech only
default: false
- name: sort
type: select
label: Sort requested from site
Expand Down Expand Up @@ -91,17 +95,17 @@ search:
- path: browse.php
inputs:
do: search
keywords: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}"
# t_name T_description t_both t_uploader t_genre
search_type: "{{ if .Query.IMDBID }}t_genre{{else}}t_name{{end}}"
keywords: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
# t_name, t_description, t_both, t_uploader, t_genre
search_type: "{{ if .Query.IMDBID }}t_genre{{ else }}t_name{{ end }}"
category: "{{ if .Categories }}{{ range .Categories }}{{.}};{{end}}{{else}}0{{end}}"
include_dead_torrents: yes
sort: "{{ .Config.sort }}"
order: "{{ .Config.type }}"
# does not return imdb link in results

rows:
selector: table.sortable tr:has(a[href*="/download.php?id="])
selector: "table.sortable tr:has(a[href*=\"/download.php?id=\"]){{ if .Config.freeleech }}:has(img[src$=\"/freedownload.gif\"]){{ else }}{{ end }}"

fields:
category:
Expand Down Expand Up @@ -150,4 +154,6 @@ search:
case:
img[src$="/x2.gif"]: 2
"*": 1
minimumratio:
text: 0.6
# TS Special Edition v.7.5

0 comments on commit d2efdf7

Please sign in to comment.