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 id: gay-torrentsorg
name: gay-torrents.org 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 language: en-us
type: private type: private
encoding: UTF-8 encoding: UTF-8
@ -16,18 +16,10 @@ settings:
- name: password - name: password
type: password type: password
label: Password label: Password
- name: active
type: select
label: Status
default: 0
options:
0: "Active and Inactive"
1: Active
2: Inactive
- name: info_categories - name: info_categories
type: info type: info
label: "Hidden categories" 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 - name: info_results
type: info type: info
label: "Search results" label: "Search results"
@ -94,10 +86,13 @@ search:
method: get method: get
inputs: inputs:
$raw: "{{range .Categories}}category[]={{.}}&{{end}}" $raw: "{{range .Categories}}category[]={{.}}&{{end}}"
search: "{{ .Query.Keywords }}" search: "{{ .Keywords }}"
active: "{{ .Config.active }}" # 0 both, 1 active, 2 dead
active: 0
rows: rows:
selector: div.torrent selector: div.torrent
fields: fields:
title: title:
selector: div:nth-child(2) > div:nth-child(1) > a:nth-child(1) 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 "div:nth-child(2) > div:nth-child(3) > a:contains(\"-25%\")": 0.25
"*": 1 "*": 1
uploadvolumefactor: uploadvolumefactor:
case: text: 1
"*": 1
# engine tbd # engine tbd