From 98ba41509feb3d9e26383e6e99dd2c3f396c0c66 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Tue, 15 Sep 2020 19:56:15 +1200 Subject: [PATCH] totallykids: add freeleech filter #9456 add minimumratio and minimumseedtime --- .../Definitions/totallykids.yml | 73 +++++++++++-------- 1 file changed, 41 insertions(+), 32 deletions(-) diff --git a/src/Jackett.Common/Definitions/totallykids.yml b/src/Jackett.Common/Definitions/totallykids.yml index 11f060d9e..9b4cf5c6c 100644 --- a/src/Jackett.Common/Definitions/totallykids.yml +++ b/src/Jackett.Common/Definitions/totallykids.yml @@ -8,34 +8,6 @@ encoding: UTF-8 links: - http://www.totallykids.tv/ # site does not support https NET::ERR_CERT_AUTHORITY_INVALID -settings: - - name: username - type: text - label: Username - - name: password - type: password - label: Password - - name: info_results - type: info - label: "Search results" - default: "Only the xBtit_Default style is supported with this indexer.
For best results, increase the torrents number in your profile to 100.
Default is 15." - - name: sort - type: select - label: Sort requested from site - default: "data" - options: - "data": "created" - "seeds": "seeders" - "size": "size" - "filename": "title" - - name: type - type: select - label: Order requested from site - default: "DESC" - options: - "DESC": "desc" - "ASC": "asc" - caps: categorymappings: - {id: 5, cat: Audio, desc: "Music"} @@ -56,6 +28,38 @@ caps: movie-search: [q, imdbid] music-search: [q] +settings: + - name: username + type: text + label: Username + - name: password + type: password + label: Password + - name: info_results + type: info + label: "Search results" + default: "Only the xBtit_Default style is supported with this indexer.
For best results, increase the torrents number in your profile to 100.
Default is 15." + - name: freeleech + type: checkbox + label: Filter freeleech only + default: false + - name: sort + type: select + label: Sort requested from site + default: "data" + options: + "data": "created" + "seeds": "seeders" + "size": "size" + "filename": "title" + - name: type + type: select + label: Order requested from site + default: "DESC" + options: + "DESC": "desc" + "ASC": "asc" + login: path: index.php?page=login method: form @@ -75,17 +79,17 @@ search: - path: index.php inputs: page: torrents - search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}" + search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}" category: "{{ if .Categories }}{{ range .Categories }}{{.}};{{end}}{{else}}0{{end}}" # 0=title, 1=title&descr, 2=descr - options: "{{ if .Query.IMDBID }}2{{else}}0{{end}}" - # 0 all 1 activeonly 2 deadonly + options: "{{ if .Query.IMDBID }}2{{ else }}0{{ end }}" + # 0 all, 1 activeonly, 2 deadonly active: 0 order: "{{ .Config.sort }}" by: "{{ .Config.type }}" rows: - selector: table.lista tr td table.lista tr:has(a[href^="index.php?page=torrent-details"]) + selector: "table.lista tr td table.lista tr:has(a[href^=\"index.php?page=torrent-details\"]){{ if .Config.freeleech }}:has(img[src=\"gold/gold.gif\"]){{ else }}{{ end }}" fields: title: @@ -151,4 +155,9 @@ search: "*": 1 uploadvolumefactor: text: 1 + minimumratio: + text: 1.0 + minimumseedtime: + # 7 days (as seconds = 7 x 24 x 60 x 60) + text: 604800 # xbtit