From 313a2fd7845fec1cb853094436a4592841a3b60d Mon Sep 17 00:00:00 2001 From: Lucas Salinas Date: Sat, 12 Jun 2021 23:31:49 -0700 Subject: [PATCH] Update definitions for gay-torrents.net & gay-torrents.org (#11896) --- .../Definitions/gay-torrents.yml | 45 +++++++++++++++++++ .../Definitions/gay-torrentsorg.yml | 27 ++++++++++- 2 files changed, 70 insertions(+), 2 deletions(-) diff --git a/src/Jackett.Common/Definitions/gay-torrents.yml b/src/Jackett.Common/Definitions/gay-torrents.yml index f91388097..cf6d7dc2f 100644 --- a/src/Jackett.Common/Definitions/gay-torrents.yml +++ b/src/Jackett.Common/Definitions/gay-torrents.yml @@ -8,6 +8,34 @@ encoding: UTF-8 links: - https://www.gay-torrents.net/ +settings: + - name: username + type: text + label: Username + - 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 + default: 0 + options: + 0: created + 1: title + 4: size + 5: seeders + - name: order + type: select + label: Order requested from site + default: 0 + options: + 0: desc + 1: asc + caps: categorymappings: - {id: porn, cat: XXX, desc: "Porn"} @@ -80,9 +108,26 @@ login: search: paths: - path: "{{ if .Keywords }}search.php{{ else }}torrentslist.php{{ end }}" + inputs: + page: 1 + - path: "{{ if .Keywords }}search.php{{ else }}torrentslist.php{{ end }}" + inputs: + page: 2 + - path: "{{ if .Keywords }}search.php{{ else }}torrentslist.php{{ end }}" + inputs: + page: 3 + - path: "{{ if .Keywords }}search.php{{ else }}torrentslist.php{{ end }}" + inputs: + page: 4 + - path: "{{ if .Keywords }}search.php{{ else }}torrentslist.php{{ end }}" + inputs: + page: 5 inputs: $raw: "{{ range .Categories }}type={{.}}&{{end}}" textsearch: "{{ .Keywords }}" + sort: "{{ .Config.sort }}" + order: "{{ .Config.order }}" + freeleech: "{{ if .Config.freeleech }}1{{ else }}0{{ end }}" keywordsfilters: - name: re_replace args: ["(\\w+)", " +$1"] # prepend + to each word diff --git a/src/Jackett.Common/Definitions/gay-torrentsorg.yml b/src/Jackett.Common/Definitions/gay-torrentsorg.yml index 9acc1e403..76a7b1fa5 100644 --- a/src/Jackett.Common/Definitions/gay-torrentsorg.yml +++ b/src/Jackett.Common/Definitions/gay-torrentsorg.yml @@ -24,6 +24,26 @@ settings: type: info label: "Search results" default: "You can increase the number of search results in your profile.
Default is 15." + - name: freeleech + type: checkbox + label: Search 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: order + type: select + label: Order requested from site + default: desc + options: + desc: desc + asc: asc caps: categorymappings: @@ -62,6 +82,7 @@ caps: - {id: 41, cat: Movies, desc: "Non-Porn"} - {id: 41, cat: TV, desc: "Non-Porn"} - {id: 41, cat: Other, desc: "Non-Porn"} + - {id: 71, cat: XXX, desc: "Fan Sites"} modes: search: [q] @@ -87,8 +108,10 @@ search: inputs: $raw: "{{ range .Categories }}category[]={{.}}&{{end}}" search: "{{ .Keywords }}" - # 0 both, 1 active, 2 dead - active: 0 + # 0 all, 1 active, 2 dead, 3 free, 4 50%free, 5 25%free, 6 packs + active: "{{ if .Config.freeleech }}3{{ else }}0{{ end }}" + order: "{{ .Config.sort }}" + by: "{{ .Config.order }}" rows: selector: div.torrent