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

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

View File

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

View File

@@ -117,9 +117,8 @@ search:
args: ["Ноя", "Nov"]
- name: replace
args: ["Дек", "Dec"]
# Moscow +3 UTC
- name: append
args: " 00:00:00 +03:00"
args: " 00:00:00 +03:00" # MSK
- name: dateparse
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

View File

@@ -21,11 +21,11 @@ login:
method: form
form: form[id^="loginform_"]
inputs:
referer: "/"
referer: /
loginfield: username
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
cookietime: "2592000"
cookietime: 2592000
error:
- selector: div#messagetext:contains("登录失败") p
test:
@@ -66,7 +66,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:
@@ -75,7 +75,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:
@@ -93,6 +93,6 @@ search:
"*": 1
uploadvolumefactor:
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
# Discuz! X3.4

View File

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

@@ -130,7 +130,7 @@ search:
inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{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 }}"
orderby: "{{ .Config.sort }}"
sort: "{{ .Config.type }}"
@@ -209,7 +209,7 @@ search:
optional: true
filters:
- name: append
args: " +01:00"
args: " +01:00" # CET
- name: replace
args: ["um ", ""]
- name: dateparse

View File

@@ -90,7 +90,7 @@ login:
method: form
form: form
inputs:
take: "yes"
take: yes
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
secure_code: "{{ .Config.secure_code }}"
@@ -112,26 +112,26 @@ search:
selector: tr:has(a[href^="details.php?id="])
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:
selector: a[href^="tfiles.php?cat="]
attribute: href
filters:
- name: querystring
args: cat
title:
selector: a[href^="details.php?id="]
details:
selector: a[href^="details.php?id="]
attribute: href
download:
selector: a[href^="download.php?torrent="]
attribute: href
poster:
selector: a[href^="details.php?id="][onmouseover]
attribute: onmouseover
filters:
- name: regexp
args: "<img src=(.*) width="
grabs:
selector: tr > th > span:nth-child(5)
filters:
@@ -162,7 +162,7 @@ search:
- name: regexp
args: "(\\d{2}\\.\\d{2}\\.\\d{4}\\s\\d{2}:\\d{2}:\\d{2})"
- name: append
args: " +01:00"
args: " +01:00" # CET
- name: replace
args: ["\xA0", " "]
- name: replace