assorted yml: code tidy

This commit is contained in:
Garfield69
2020-11-17 09:41:45 +13:00
parent 8996cb6b5d
commit 1e63493f7f
9 changed files with 31 additions and 32 deletions

View File

@@ -121,7 +121,7 @@ search:
paths: paths:
- path: forum/tracker.php - path: forum/tracker.php
inputs: inputs:
$raw: "{{ if .Categories }}{{ range .Categories }}f[]={{.}}&{{end}}{{else}}f[]=-1{{end}}" $raw: "{{ if .Categories }}{{ range .Categories }}f[]={{.}}&{{end}}{{ else }}f[]=-1{{ end }}"
prev_allw: 1 prev_allw: 1
prev_a: 0 prev_a: 0
prev_vote: 0 prev_vote: 0

View File

@@ -96,7 +96,7 @@ search:
selector: td:nth-child(5) selector: td:nth-child(5)
filters: filters:
- name: append - name: append
args: " +00:00" args: " +00:00" # auto adjusted by site account profile
- name: dateparse - name: dateparse
args: "2006-01-0215:04:05 -07:00" args: "2006-01-0215:04:05 -07:00"
grabs: grabs:
@@ -122,4 +122,4 @@ search:
"*": 1 "*": 1
uploadvolumefactor: uploadvolumefactor:
text: 1 text: 1
# engine tbc # engine tbd

View File

@@ -102,7 +102,7 @@ search:
freeleech: "{{ if .Config.freeleech }}2{{ else }}0{{ end }}" freeleech: "{{ if .Config.freeleech }}2{{ else }}0{{ end }}"
# 0 both, 1 localonly, 2 extonly # 0 both, 1 localonly, 2 extonly
inclexternal: 0 inclexternal: 0
# 0 al,l 1 English, 2 etc... # 0 all, 1 English, 2 etc...
lang: 0 lang: 0
sort: "{{ .Config.sort }}" sort: "{{ .Config.sort }}"
order: "{{ .Config.type }}" order: "{{ .Config.type }}"

View File

@@ -58,7 +58,7 @@ settings:
search: search:
paths: paths:
# http://rutor.info/search/0/0/100/0/gotham%2004x01 # http://rutor.info/search/0/0/100/0/gotham%2004x01
- path: "{{ if .Keywords }}search/0/0/100/{{ .Config.sort }}/{{ .Keywords }}/{{else}}top/{{end}}" - path: "{{ if .Keywords }}search/0/0/100/{{ .Config.sort }}/{{ .Keywords }}/{{ else }}top/{{ end }}"
rows: rows:
selector: tr:has(td:has(a.downgif)) selector: tr:has(td:has(a.downgif))
@@ -117,9 +117,8 @@ search:
args: ["Ноя", "Nov"] args: ["Ноя", "Nov"]
- name: replace - name: replace
args: ["Дек", "Dec"] args: ["Дек", "Dec"]
# Moscow +3 UTC
- name: append - name: append
args: " 00:00:00 +03:00" args: " 00:00:00 +03:00" # MSK
- name: dateparse - name: dateparse
args: "02 Jan 06 15:04:05 -07:00" args: "02 Jan 06 15:04:05 -07:00"
# some results don't have comments which throws off td count. So we go fishing for the following fields # some results don't have comments which throws off td count. So we go fishing for the following fields

View File

@@ -21,11 +21,11 @@ login:
method: form method: form
form: form[id^="loginform_"] form: form[id^="loginform_"]
inputs: inputs:
referer: "/" referer: /
loginfield: username loginfield: username
username: "{{ .Config.username }}" username: "{{ .Config.username }}"
password: "{{ .Config.password }}" password: "{{ .Config.password }}"
cookietime: "2592000" cookietime: 2592000
error: error:
- selector: div#messagetext:contains("登录失败") p - selector: div#messagetext:contains("登录失败") p
test: test:
@@ -66,7 +66,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:
@@ -75,7 +75,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:
@@ -93,6 +93,6 @@ search:
"*": 1 "*": 1
uploadvolumefactor: uploadvolumefactor:
case: case:
# img.sp_0: 2 # do not know what a flag of 2xSFC means, but I dont thing this is a 2xupload # img.sp_0: 2 # do not know what a flag of 2xSFC means, but I dont think this is a 2xupload
"*": 1 "*": 1
# Discuz! X3.4 # Discuz! X3.4

View File

@@ -115,7 +115,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:
@@ -124,7 +124,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

@@ -129,9 +129,9 @@ search:
- path: selection.php - path: selection.php
inputs: inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}" $raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBIDShort }}{{else}}{{ .Keywords }}{{end}}" search: "{{ if .Query.IMDBID }}{{ .Query.IMDBIDShort }}{{ else }}{{ .Keywords }}{{ end }}"
# 0 name 1 descr 2 both 3 imdb # 0 name, 1 descr, 2 both, 3 imdb
blah: "{{ if .Query.IMDBID }}3{{else}}0{{end}}" blah: "{{ if .Query.IMDBID }}3{{ else }}0{{ end }}"
orderby: "{{ .Config.sort }}" orderby: "{{ .Config.sort }}"
sort: "{{ .Config.type }}" sort: "{{ .Config.type }}"
@@ -209,7 +209,7 @@ search:
optional: true optional: true
filters: filters:
- name: append - name: append
args: " +01:00" args: " +01:00" # CET
- name: replace - name: replace
args: ["um ", ""] args: ["um ", ""]
- name: dateparse - name: dateparse

View File

@@ -90,7 +90,7 @@ login:
method: form method: form
form: form form: form
inputs: inputs:
take: "yes" take: yes
username: "{{ .Config.username }}" username: "{{ .Config.username }}"
password: "{{ .Config.password }}" password: "{{ .Config.password }}"
secure_code: "{{ .Config.secure_code }}" secure_code: "{{ .Config.secure_code }}"
@@ -102,7 +102,7 @@ search:
- path: tfiles.php - path: tfiles.php
inputs: inputs:
showsearch: 1 showsearch: 1
$raw: "{{ if .Categories }}{{ range .Categories }}c{{.}}=1&{{end}}{{else}}{{end}}" $raw: "{{ if .Categories }}{{ range .Categories }}c{{.}}=1&{{end}}{{ else }}{{ end }}"
search: "{{ .Keywords }}" search: "{{ .Keywords }}"
orderby: "{{ .Config.sort }}" orderby: "{{ .Config.sort }}"
sort: "{{ .Config.type }}" sort: "{{ .Config.type }}"
@@ -112,26 +112,26 @@ search:
selector: tr:has(a[href^="details.php?id="]) selector: tr:has(a[href^="details.php?id="])
fields: fields:
title:
selector: a[href^="details.php?id="]
poster:
selector: a[href^="details.php?id="][onmouseover]
attribute: onmouseover
filters:
- name: regexp
args: "<img src=(.*) width="
category: category:
selector: a[href^="tfiles.php?cat="] selector: a[href^="tfiles.php?cat="]
attribute: href attribute: href
filters: filters:
- name: querystring - name: querystring
args: cat args: cat
title:
selector: a[href^="details.php?id="]
details: details:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
attribute: href attribute: href
download: download:
selector: a[href^="download.php?torrent="] selector: a[href^="download.php?torrent="]
attribute: href attribute: href
poster:
selector: a[href^="details.php?id="][onmouseover]
attribute: onmouseover
filters:
- name: regexp
args: "<img src=(.*) width="
grabs: grabs:
selector: tr > th > span:nth-child(5) selector: tr > th > span:nth-child(5)
filters: filters:
@@ -162,7 +162,7 @@ search:
- name: regexp - name: regexp
args: "(\\d{2}\\.\\d{2}\\.\\d{4}\\s\\d{2}:\\d{2}:\\d{2})" args: "(\\d{2}\\.\\d{2}\\.\\d{4}\\s\\d{2}:\\d{2}:\\d{2})"
- name: append - name: append
args: " +01:00" args: " +01:00" # CET
- name: replace - name: replace
args: ["\xA0", " "] args: ["\xA0", " "]
- name: replace - name: replace

View File

@@ -108,10 +108,10 @@ search:
paths: paths:
- path: selection.php - path: selection.php
inputs: inputs:
$raw: "{{ if .Categories }}{{ range .Categories }}scat[]={{.}}&{{end}}{{else}}{{end}}" $raw: "{{ if .Categories }}{{ range .Categories }}scat[]={{.}}&{{end}}{{ else }}{{ end }}"
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}" search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
# 0 name, 1 descr, 2 both, 3 imdb # 0 name, 1 descr, 2 both, 3 imdb
blah: "{{ if .Query.IMDBID }}3{{else}}0{{end}}" blah: "{{ if .Query.IMDBID }}3{{ else }}0{{ end }}"
orderby: "{{ .Config.sort }}" orderby: "{{ .Config.sort }}"
sort: "{{ .Config.type }}" sort: "{{ .Config.type }}"