assorted yml: code tidy

This commit is contained in:
Garfield69
2020-11-15 16:58:20 +13:00
parent 4685f8fdc1
commit 5363a9f0e9
7 changed files with 40 additions and 39 deletions

View File

@@ -91,7 +91,7 @@ search:
attribute: title attribute: title
filters: filters:
- name: append - name: append
args: " +00:00" args: " +00:00" # auto adjusted by site account profile
- name: dateparse - name: dateparse
args: "Jan 02 2006, 15:04 -07:00" args: "Jan 02 2006, 15:04 -07:00"
size: size:

View File

@@ -144,7 +144,7 @@ search:
optional: true optional: true
filters: filters:
- name: append - name: append
args: " +08:00" args: " +08:00" # CST
- name: dateparse - name: dateparse
args: "2006-01-02 15:04:05 -07:00" args: "2006-01-02 15:04:05 -07:00"
date: date:
@@ -153,7 +153,7 @@ search:
optional: true optional: true
filters: filters:
- name: append - name: append
args: " +08:00" args: " +08:00" # CST
- name: dateparse - name: dateparse
args: "2006-01-0215:04:05 -07:00" args: "2006-01-0215:04:05 -07:00"
size: size:

View File

@@ -91,8 +91,8 @@ search:
paths: paths:
- path: browse.php - path: browse.php
inputs: inputs:
# does not support multi categories so defaulting to ALL
do: search do: search
# does not support multi categories so defaulting to ALL
category: 0 category: 0
# yes incldead, no activeonly # yes incldead, no activeonly
include_dead_torrents: yes include_dead_torrents: yes

View File

@@ -175,8 +175,7 @@ search:
img[src$="/torrent_free.png"]: 0 img[src$="/torrent_free.png"]: 0
"*": 1 "*": 1
uploadvolumefactor: uploadvolumefactor:
case: text: 1
"*": 1
minimumratio: minimumratio:
text: 1.0 text: 1.0
# TSUE 2.2 # TSUE 2.2

View File

@@ -65,51 +65,53 @@ 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: "1" incldead: 1
rows: rows:
selector: table> tbody > tr:has(a[href^="details?"]) selector: table> tbody > tr:has(a[href^="details?"])
filters: filters:
- name: andmatch - name: andmatch
fields: fields:
download:
selector: a[href^="download.php?id="]
attribute: href
title:
selector: a[href^="details?"]
description:
optional: true
selector: td:nth-child(2) > span
details:
selector: a[href^="details?"]
attribute: href
category: category:
selector: a[href^="browse.php?cat="] selector: a[href^="browse.php?cat="]
attribute: href attribute: href
filters: filters:
- name: querystring - name: querystring
args: cat args: cat
seeders: title:
selector: td:nth-child(8) selector: a[href^="details?"]
leechers: details:
selector: td:nth-child(9) selector: a[href^="details?"]
grabs: attribute: href
selector: td:nth-child(7) download:
selector: a[href^="download.php?id="]
attribute: href
description:
optional: true
selector: td:nth-child(2) > span
files: files:
selector: td:nth-child(3) selector: td:nth-child(3)
size:
selector: td:nth-child(6)
downloadvolumefactor:
case:
img[src="//static.linkomanija.net/images/flag_green.gif"]: "0"
"*": "1"
uploadvolumefactor:
case:
"*": "1"
date: date:
selector: td:nth-child(5) selector: td:nth-child(5)
filters: filters:
- name: append - name: append
args: " +01:00" args: " +02:00" # EET
- name: dateparse - name: dateparse
args: "2006-01-0215:04:05 -07:00" args: "2006-01-0215:04:05 -07:00"
size:
selector: td:nth-child(6)
grabs:
selector: td:nth-child(7)
seeders:
selector: td:nth-child(8)
leechers:
selector: td:nth-child(9)
downloadvolumefactor:
case:
img[src="//static.linkomanija.net/images/flag_green.gif"]: 0
"*": 1
uploadvolumefactor:
text: 1
# engine tbd