gay-torrentsorg: code tidy

drop config option 'active',  include all torrents.
This commit is contained in:
Garfield69 2020-10-27 09:48:38 +13:00
parent 3f46ea8074
commit dd8000036d
1 changed files with 8 additions and 14 deletions

View File

@ -1,7 +1,7 @@
---
id: gay-torrentsorg
name: gay-torrents.org
description: "Gay-Torrents.org is a Private Torrent Tracker for GAY XXX"
description: "Gay-Torrents.org is a Private Torrent Tracker for GAY 3X"
language: en-us
type: private
encoding: UTF-8
@ -16,18 +16,10 @@ settings:
- name: password
type: password
label: Password
- name: active
type: select
label: Status
default: 0
options:
0: "Active and Inactive"
1: Active
2: Inactive
- name: info_categories
type: info
label: "Hidden categories"
default: "Results for categories hidden in profile will not be visible."
default: "Results for categories hidden in account profile will not be visible."
- name: info_results
type: info
label: "Search results"
@ -94,10 +86,13 @@ search:
method: get
inputs:
$raw: "{{range .Categories}}category[]={{.}}&{{end}}"
search: "{{ .Query.Keywords }}"
active: "{{ .Config.active }}"
search: "{{ .Keywords }}"
# 0 both, 1 active, 2 dead
active: 0
rows:
selector: div.torrent
fields:
title:
selector: div:nth-child(2) > div:nth-child(1) > a:nth-child(1)
@ -149,6 +144,5 @@ search:
"div:nth-child(2) > div:nth-child(3) > a:contains(\"-25%\")": 0.25
"*": 1
uploadvolumefactor:
case:
"*": 1
text: 1
# engine tbd