Update definitions for gay-torrents.net & gay-torrents.org (#11896)

This commit is contained in:
Lucas Salinas 2021-06-12 23:31:49 -07:00 committed by GitHub
parent 7a28412d22
commit 313a2fd784
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 70 additions and 2 deletions

View File

@ -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

View File

@ -24,6 +24,26 @@ settings:
type: info
label: "Search results"
default: "You can increase the number of search results in your profile.<br />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