mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
assorted yml: code tidy
This commit is contained in:
@@ -121,7 +121,7 @@ search:
|
||||
paths:
|
||||
- path: forum/tracker.php
|
||||
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_a: 0
|
||||
prev_vote: 0
|
||||
|
@@ -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
|
||||
|
@@ -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 }}"
|
||||
|
@@ -58,7 +58,7 @@ settings:
|
||||
search:
|
||||
paths:
|
||||
# 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:
|
||||
selector: tr:has(td:has(a.downgif))
|
||||
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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:
|
||||
|
@@ -129,9 +129,9 @@ search:
|
||||
- path: selection.php
|
||||
inputs:
|
||||
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
|
||||
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBIDShort }}{{else}}{{ .Keywords }}{{end}}"
|
||||
# 0 name 1 descr 2 both 3 imdb
|
||||
blah: "{{ if .Query.IMDBID }}3{{else}}0{{end}}"
|
||||
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBIDShort }}{{ else }}{{ .Keywords }}{{ end }}"
|
||||
# 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
|
||||
|
@@ -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 }}"
|
||||
@@ -102,7 +102,7 @@ search:
|
||||
- path: tfiles.php
|
||||
inputs:
|
||||
showsearch: 1
|
||||
$raw: "{{ if .Categories }}{{ range .Categories }}c{{.}}=1&{{end}}{{else}}{{end}}"
|
||||
$raw: "{{ if .Categories }}{{ range .Categories }}c{{.}}=1&{{end}}{{ else }}{{ end }}"
|
||||
search: "{{ .Keywords }}"
|
||||
orderby: "{{ .Config.sort }}"
|
||||
sort: "{{ .Config.type }}"
|
||||
@@ -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
|
||||
|
@@ -108,10 +108,10 @@ search:
|
||||
paths:
|
||||
- path: selection.php
|
||||
inputs:
|
||||
$raw: "{{ if .Categories }}{{ range .Categories }}scat[]={{.}}&{{end}}{{else}}{{end}}"
|
||||
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}"
|
||||
$raw: "{{ if .Categories }}{{ range .Categories }}scat[]={{.}}&{{end}}{{ else }}{{ end }}"
|
||||
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
|
||||
# 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 }}"
|
||||
sort: "{{ .Config.type }}"
|
||||
|
||||
|
Reference in New Issue
Block a user