Skip to content

Commit

Permalink
assorted yml: code tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
garfield69 committed Nov 16, 2020
1 parent 8996cb6 commit 1e63493
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 32 deletions.
2 changes: 1 addition & 1 deletion src/Jackett.Common/Definitions/rainbowtracker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Jackett.Common/Definitions/redstartorrent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -122,4 +122,4 @@ search:
"*": 1
uploadvolumefactor:
text: 1
# engine tbc
# engine tbd
2 changes: 1 addition & 1 deletion src/Jackett.Common/Definitions/rptorrents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
5 changes: 2 additions & 3 deletions src/Jackett.Common/Definitions/rutor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions src/Jackett.Common/Definitions/snowpt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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
4 changes: 2 additions & 2 deletions src/Jackett.Common/Definitions/soulvoice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions src/Jackett.Common/Definitions/speedmasterhd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

Expand Down Expand Up @@ -209,7 +209,7 @@ search:
optional: true
filters:
- name: append
args: " +01:00"
args: " +01:00" # CET
- name: replace
args: ["um ", ""]
- name: dateparse
Expand Down
22 changes: 11 additions & 11 deletions src/Jackett.Common/Definitions/speedtorrentreloaded.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand All @@ -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 }}"
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/Jackett.Common/Definitions/spiritofrevolution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

Expand Down

0 comments on commit 1e63493

Please sign in to comment.