gaytorrentru: code tidy

drop config option incldead, include all torrents.
This commit is contained in:
Garfield69 2020-10-27 09:49:23 +13:00
parent dd8000036d
commit 2fac1f04fe
1 changed files with 9 additions and 17 deletions

View File

@ -1,10 +1,7 @@
--- ---
# Update by LA5T based on the orignial 'gaytorrentru.yml'
# 29.07.2018 23:02 UTC+2
#
id: gaytorrentru id: gaytorrentru
name: GAYtorrent.ru name: GAYtorrent.ru
description: "GayTorrent.ru is a Private Torrent Tracker for GAY XXX" description: "GayTorrent.ru is a Private Torrent Tracker for GAY 3X"
language: en-us language: en-us
type: private type: private
encoding: UTF-8 encoding: UTF-8
@ -18,18 +15,10 @@ settings:
- name: password - name: password
type: password type: password
label: Password label: Password
- name: incldead
type: select
label: Status
default: 1
options:
0: Active
1: "Active and Inactive"
2: Inactive
- name: info - name: info
type: info type: info
label: "Hidden categories" label: "Hidden categories"
default: "For results in the following categories you must edit your profile.<br />- Straight<br />- Bisexual<br />- Scat" default: "Results for categories hidden in account profile will not be visible."
caps: caps:
categorymappings: categorymappings:
@ -94,10 +83,13 @@ search:
- path: browse.php - path: browse.php
inputs: inputs:
$raw: "{{range .Categories}}c{{.}}=1&{{end}}" $raw: "{{range .Categories}}c{{.}}=1&{{end}}"
search: "{{ .Query.Keywords }}" search: "{{ .Keywords }}"
incldead: "{{ .Config.incldead }}" # 0 active, 1 both, 2 dead
incldead: 1
rows: rows:
selector: table.browse_result > tbody > tr:has(a[href^="details.php?id="]) selector: table.browse_result > tbody > tr:has(a[href^="details.php?id="])
fields: fields:
category: category:
selector: a[href^="browse.php?cat="] selector: a[href^="browse.php?cat="]
@ -140,5 +132,5 @@ search:
"td:nth-child(3) > div > nobr > font[color=\"yellow\"]": 0 "td:nth-child(3) > div > nobr > font[color=\"yellow\"]": 0
"*": 1 "*": 1
uploadvolumefactor: uploadvolumefactor:
case: text: 1
"*": 1 # engine tbd