From 1395ec95d8bfda04c8a38cf0e9c7d3142499e777 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Thu, 15 Oct 2020 17:54:07 +1300 Subject: [PATCH] sdkino: add freeleech, date TZ, MR and gold and silver coin detection --- src/Jackett.Common/Definitions/sdkino.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/Jackett.Common/Definitions/sdkino.yml b/src/Jackett.Common/Definitions/sdkino.yml index 0460e474f..95cb63d2a 100644 --- a/src/Jackett.Common/Definitions/sdkino.yml +++ b/src/Jackett.Common/Definitions/sdkino.yml @@ -27,6 +27,10 @@ settings: - name: password type: password label: Password + - name: freeleech + type: checkbox + label: Search freeleech only + default: false - name: sort type: select label: Sort requested from site @@ -70,8 +74,8 @@ search: args: ["(?i)(\\bS0*\\d+E0*\\d+\\b)", ""] inputs: $raw: "{{ range .Categories }}c{{.}}=1&{{end}}" - # 0 active 1 incldead 2 onlydead 3 gold 4 noseeds 5 paid - incldead: 1 + # 0 active, 1 incldead, 2 onlydead, 3 gold, 4 noseeds, 5 paid + incldead: "{{ if .Config.freeleech }}3{{ else }}1{{ end }}" sort: "{{ .Config.sort }}" type: "{{ .Config.type }}" search: "{{ .Keywords }}" @@ -129,8 +133,10 @@ search: date: selector: span:has(i.fa-calendar-o) filters: + - name: append + args: " +03:00" # MSK - name: dateparse - args: "2006.1.2" + args: "2006.1.2 -07:00" files: selector: span:has(i.fa-files-o) size: @@ -142,7 +148,12 @@ search: leechers: selector: span:has(i.fa-download) downloadvolumefactor: - text: 0 + case: + "span:contains(\"Золотой\")": 0 + "span:contains(\"Серебряный\")": 0.5 + "*": 1 uploadvolumefactor: text: 1 + minimumratio: + text: 1.0 # TBDev