Skip to content

Commit

Permalink
Update definitions for gay-torrents.net & gay-torrents.org (#11896)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeSal88 committed Jun 13, 2021
1 parent 7a28412 commit 313a2fd
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 2 deletions.
45 changes: 45 additions & 0 deletions src/Jackett.Common/Definitions/gay-torrents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down Expand Up @@ -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
Expand Down
27 changes: 25 additions & 2 deletions src/Jackett.Common/Definitions/gay-torrentsorg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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]
Expand All @@ -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
Expand Down

0 comments on commit 313a2fd

Please sign in to comment.