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 17, 2020
1 parent 0c56474 commit 2fca6bf
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/Jackett.Common/Definitions/btschool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ search:
- path: torrents.php
inputs:
$raw: "{{ range .Categories }}cat{{.}}=1&{{end}}"
search: "{{if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
# 0 incldead, 1 active, 2 justdead
incldead: 0
# promotion: 0 all, 1 normal, 2 free, 3 2x, 4 2xfree, 5 50%, 6 2x 50%, 7 30%
Expand Down
2 changes: 1 addition & 1 deletion src/Jackett.Common/Definitions/ethor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ search:
- name: re_replace
args: ["(?i)[\\.\\s\\[\\-]VFQ[\\.\\s\\]\\-]", ".{{ .Config.multilanguage }}."]
title:
text: "{{if .Config.multilang }}{{ .Result._title_multilang }}{{ else }}{{ .Result._title_normalized }}{{ end }}"
text: "{{ if .Config.multilang }}{{ .Result._title_multilang }}{{ else }}{{ .Result._title_normalized }}{{ end }}"
category:
selector: a[href^="/browse.php?cat="]
attribute: href
Expand Down
2 changes: 1 addition & 1 deletion src/Jackett.Common/Definitions/gay-torrents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ login:

search:
paths:
- path: "{{if .Query.Keywords}}search.php{{ else }}torrentslist.php{{ end }}"
- path: "{{ if .Keywords }}search.php{{ else }}torrentslist.php{{ end }}"
inputs:
$raw: "{{ range .Categories }}type={{.}}&{{end}}"
textsearch: "{{ .Keywords }}"
Expand Down
2 changes: 1 addition & 1 deletion src/Jackett.Common/Definitions/hdsky.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ search:
- path: torrents.php
inputs:
$raw: "{{ range .Categories }}cat{{.}}=1&{{end}}"
search: "{{if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}" # for dashboard imdbid
# 0=incldead, 1=active, 2=dead
incldead: 0
# show promotions 0=all, 1=normal, 2=free, 3=2x, 4=2xfree, 5=50%, 6=2x50%, 7=30%
Expand Down
2 changes: 1 addition & 1 deletion src/Jackett.Common/Definitions/idope.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ search:
- name: append
args: ".torrent"
download:
text: "{{if .Config.itorrents-links}}{{ .Result.download-itorrents }}{{ else }}{{ end }}"
text: "{{ if .Config.itorrents-links }}{{ .Result.download-itorrents }}{{ else }}{{ end }}"
infohash:
selector: div.resultdivbotton div.hideinfohash
date:
Expand Down
2 changes: 1 addition & 1 deletion src/Jackett.Common/Definitions/netlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ search:
- path: browse.php
inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{if .Query.Artist}}{{ .Query.Artist }}{{ else }}{{ .Keywords }}{{ end }}"
search: "{{ if .Query.Artist }}{{ .Query.Artist }}{{ else }}{{ .Keywords }}{{ end }}"
# 0 active, 1 incldead, 2 onlydead
incldead: 1

Expand Down
6 changes: 3 additions & 3 deletions src/Jackett.Common/Definitions/torlock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ settings:

search:
paths:
- path: "{{if .Keywords}}/all/torrents/{{ .Keywords }}.html?sort={{ .Config.sort }}&order={{ .Config.type }}{{ else }}/fresh.html{{ end }}"
- path: "{{ if .Keywords }}/all/torrents/{{ .Keywords }}.html?sort={{ .Config.sort }}&order={{ .Config.type }}{{ else }}/fresh.html{{ end }}"
keywordsfilters:
- name: tolower
- name: re_replace
Expand Down Expand Up @@ -90,7 +90,7 @@ search:
span.tv9: IMAGES
span.tv10: EBOOKS
span.tv12: AUDIOBOOK
"*": "OTHER" # some torrents have invalid categories
"*": OTHER # some torrents have invalid categories
title:
selector: td:nth-child(1) > div > a
details:
Expand Down Expand Up @@ -136,4 +136,4 @@ search:
text: 0
uploadvolumefactor:
text: 1
# Engine n/a
# engine n/a
4 changes: 2 additions & 2 deletions src/Jackett.Common/Definitions/torrentz2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ settings:

search:
paths:
- path: "{{if .Config.filter-verified }}verified{{ else }}search{{ end }}{{ re_replace .Config.sort \"_\" \"\" }}"
- path: "{{ if .Config.filter-verified }}verified{{ else }}search{{ end }}{{ re_replace .Config.sort \"_\" \"\" }}"
inputs:
f: "{{ if .Keywords }}title: {{ .Keywords }}{{ else }}{{ end }}"
safe: "{{ if .Config.filter-safe }}1{{ else }}0{{ end }}"
Expand All @@ -131,7 +131,7 @@ search:
- name: append
args: ".torrent"
download:
text: "{{if .Config.itorrents-links}}{{ .Result.download-itorrents }}{{ else }}{{ end }}"
text: "{{ if .Config.itorrents-links }}{{ .Result.download-itorrents }}{{ else }}{{ end }}"
infohash:
selector: dt a
attribute: href
Expand Down
2 changes: 1 addition & 1 deletion src/Jackett.Common/Definitions/trancetraffic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ search:
paths:
- path: browse.php
inputs:
search: "{{if .Query.Artist}}{{ .Query.Artist }}{{ else }}{{ .Keywords }}{{ end }}"
search: "{{ if .Query.Artist }}{{ .Query.Artist }}{{ else }}{{ .Keywords }}{{ end }}"

rows:
selector: table.mainouter table > tbody > tr:has(a[href^="details.php?id="])
Expand Down
2 changes: 1 addition & 1 deletion src/Jackett.Common/Definitions/tribalmixes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ search:
paths:
- path: browse.php
inputs:
search: "{{if .Query.Artist}}{{ .Query.Artist }}{{ else }}{{ .Keywords }}{{ end }}"
search: "{{ if .Query.Artist }}{{ .Query.Artist }}{{ else }}{{ .Keywords }}{{ end }}"
sort: "{{ re_replace .Config.sort \"_\" \"\" }}"
type: "{{ .Config.type }}"

Expand Down
2 changes: 1 addition & 1 deletion src/Jackett.Common/Definitions/xwtclassics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ search:
selector: a[href^="download2.php"]
attribute: href
download:
text: "{{if .Config.seedbox}}{{ .Result.download2 }}{{ else }}{{ .Result.download1 }}{{ end }}"
text: "{{ if .Config.seedbox }}{{ .Result.download2 }}{{ else }}{{ .Result.download1 }}{{ end }}"
details:
selector: a[href^="details.php?id="]
attribute: href
Expand Down

0 comments on commit 2fca6bf

Please sign in to comment.