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
filters:
- name: append
args: " +00:00"
args: " +00:00" # auto adjusted by site account profile
- name: dateparse
args: "Jan 02 2006, 15:04 -07:00"
size:

View File

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

View File

@ -455,7 +455,7 @@ search:
# http://korsar.info/search.php?keywords=deux+moi&sr=topics&sf=titleonly&tracker_search=torrent
- path: search.php
inputs:
keywords: "{{ if .Keywords }}{{ .Keywords }}{{else}}{{ .Today.Year }}{{end}}"
keywords: "{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}"
sr: topics
sf: titleonly
tracker_search: torrent

View File

@ -91,14 +91,14 @@ search:
paths:
- path: browse.php
inputs:
# does not support multi categories so defaulting to ALL
do: search
# does not support multi categories so defaulting to ALL
category: 0
# yes incldead, no activeonly
include_dead_torrents: yes
keywords: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}"
keywords: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
# t_name, t_description, t_both, t_uploader, t_genre
search_type: "{{ if .Query.IMDBID }}t_genre{{else}}t_name{{end}}"
search_type: "{{ if .Query.IMDBID }}t_genre{{ else }}t_name{{ end }}"
sort: "{{ .Config.sort }}"
order: "{{ .Config.type }}"
# does not return imdb link in results

View File

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

View File

@ -65,51 +65,53 @@ search:
- path: browse.php
inputs:
$raw: "{{range .Categories}}c{{.}}=1&{{end}}"
search: "{{ .Query.Keywords }}"
incldead: "1"
search: "{{ .Keywords }}"
incldead: 1
rows:
selector: table> tbody > tr:has(a[href^="details?"])
filters:
- name: andmatch
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:
selector: a[href^="browse.php?cat="]
attribute: href
filters:
- name: querystring
args: cat
seeders:
selector: td:nth-child(8)
leechers:
selector: td:nth-child(9)
grabs:
selector: td:nth-child(7)
title:
selector: a[href^="details?"]
details:
selector: a[href^="details?"]
attribute: href
download:
selector: a[href^="download.php?id="]
attribute: href
description:
optional: true
selector: td:nth-child(2) > span
files:
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:
selector: td:nth-child(5)
filters:
- name: append
args: " +01:00"
args: " +02:00" # EET
- name: dateparse
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

View File

@ -322,7 +322,7 @@ search:
inputs:
pages: 2
inputs:
$raw: "category={{ if .Categories }}{{ range .Categories }}{{.}};{{end}}{{else}}0{{end}}&"
$raw: "category={{ if .Categories }}{{ range .Categories }}{{.}};{{end}}{{ else }}0{{ end }}&"
search: "{{ .Keywords }}"
page: torrents
active: 1