Skip to content

Commit

Permalink
pornbay: multiple updates (#9773) resolves #9749 resolves #9772 for #…
Browse files Browse the repository at this point in the history
…9456

Include Freeleech torrents only in setting
add grid config info
add  missing cats
add tpp info
lint fixup
  • Loading branch information
Deflated-Criossant committed Oct 7, 2020
1 parent c4e321c commit 0b881f7
Showing 1 changed file with 37 additions and 10 deletions.
47 changes: 37 additions & 10 deletions src/Jackett.Common/Definitions/pornbay.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Pornbay is based on Gazelle, but I used the Empornium definition as a base.
---
id: pornbay
name: Pornbay
description: "Pornbay is a Private Torrent Tracker for XXX"
description: "Pornbay is a Private Torrent Tracker for 3X"
language: en-us
type: private
encoding: UTF-8
Expand All @@ -22,6 +21,7 @@ caps:
- {id: 32, cat: XXX, desc: "Classic"}
- {id: 8, cat: XXX, desc: "Clips"}
- {id: 9, cat: XXX, desc: "Creampie"}
- {id: 10, cat: XXX, desc: "DVD-R"}
- {id: 11, cat: XXX, desc: "Feature"}
- {id: 12, cat: XXX, desc: "Fetish"}
- {id: 13, cat: XXX, desc: "Foreign"}
Expand All @@ -36,6 +36,7 @@ caps:
- {id: 22, cat: XXX, desc: "Lesbian"}
- {id: 23, cat: XXX, desc: "Mature"}
- {id: 47, cat: XXX, desc: "Megapack"}
- {id: 49, cat: XXX, desc: "Old+Young"}
- {id: 24, cat: XXX, desc: "Orgy"}
- {id: 25, cat: XXX, desc: "Other"}
- {id: 26, cat: XXX, desc: "Pics"}
Expand All @@ -46,12 +47,33 @@ caps:
- {id: 28, cat: XXX, desc: "Straight"}
- {id: 29, cat: XXX, desc: "Teen"}
- {id: 51, cat: XXX, desc: "VR Porn"}
- {id: 33, cat: XXX, desc: "Transsexual"}

modes:
search: [q]
tv-search: [q]
movie-search: [q]

settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: freeleech
type: checkbox
label: Search freeleech only
default: false
- name: info_grid
type: info
label: GRID view
default: This indexer does not support the GRID view on the torrent search page. Change the <b>GRID</b> setting to <b>OFF</b> on your account profile. If set to <i>ON</i> will cause no results to be returned.
- name: info_tpp
type: info
label: Results Per Page
default: For best results, change the <b>Torrents per page:</b> setting to <b>100</b> on your account profile. The default is <i>25</i>.

login:
path: login.php
method: form
Expand All @@ -70,14 +92,19 @@ search:
- path: torrents.php
inputs:
$raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}"
title: "{{ .Query.Keywords }}"
searchtext: ""
title: "{{ .Keywords }}"
order_by: time
order_way: desc
action: basic
searchsubmit: 1
action: advanced
filter_freeleech: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
filelist: ""
taglist: ""

rows:
# exclude redbar torrents
selector: table#torrent_table > tbody > tr[class^="torrent row"]

fields:
download:
selector: a[href^="torrents.php?action=download&id="]
Expand Down Expand Up @@ -112,7 +139,7 @@ search:
attribute: title
filters:
- name: append
args: " +00:00"
args: " +00:00" # GMT
- name: dateparse
args: "Jan 02 2006, 15:04 -07:00"
size:
Expand All @@ -126,8 +153,8 @@ search:
downloadvolumefactor:
case:
span.icon[title*="Freeleech"]: 0
"img[alt=\"Freeleech\"]": "0"
"*": "1"
img[alt="Freeleech"]: 0
"*": 1
uploadvolumefactor:
case:
"*": "1"
text: 1
# Gazelle

0 comments on commit 0b881f7

Please sign in to comment.