pornbay: multiple updates (#9773) resolves #9749 resolves #9772 for #9456

Include Freeleech torrents only in setting
add grid config info
add  missing cats
add tpp info
lint fixup
This commit is contained in:
Deflated Croissant 2020-10-08 00:33:16 +05:30 committed by GitHub
parent c4e321cbab
commit 0b881f75e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 37 additions and 10 deletions

View File

@ -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
@ -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"}
@ -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"}
@ -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
@ -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="]
@ -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:
@ -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