assorted yml: code tidy

This commit is contained in:
Garfield69
2020-11-18 10:28:31 +13:00
parent 0c5647466a
commit 2fca6bf98d
11 changed files with 14 additions and 14 deletions

View File

@@ -58,7 +58,7 @@ search:
- path: torrents.php - path: torrents.php
inputs: inputs:
$raw: "{{ range .Categories }}cat{{.}}=1&{{end}}" $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 # 0 incldead, 1 active, 2 justdead
incldead: 0 incldead: 0
# promotion: 0 all, 1 normal, 2 free, 3 2x, 4 2xfree, 5 50%, 6 2x 50%, 7 30% # promotion: 0 all, 1 normal, 2 free, 3 2x, 4 2xfree, 5 50%, 6 2x 50%, 7 30%

View File

@@ -127,7 +127,7 @@ search:
- name: re_replace - name: re_replace
args: ["(?i)[\\.\\s\\[\\-]VFQ[\\.\\s\\]\\-]", ".{{ .Config.multilanguage }}."] args: ["(?i)[\\.\\s\\[\\-]VFQ[\\.\\s\\]\\-]", ".{{ .Config.multilanguage }}."]
title: 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: category:
selector: a[href^="/browse.php?cat="] selector: a[href^="/browse.php?cat="]
attribute: href attribute: href

View File

@@ -79,7 +79,7 @@ login:
search: search:
paths: paths:
- path: "{{if .Query.Keywords}}search.php{{ else }}torrentslist.php{{ end }}" - path: "{{ if .Keywords }}search.php{{ else }}torrentslist.php{{ end }}"
inputs: inputs:
$raw: "{{ range .Categories }}type={{.}}&{{end}}" $raw: "{{ range .Categories }}type={{.}}&{{end}}"
textsearch: "{{ .Keywords }}" textsearch: "{{ .Keywords }}"

View File

@@ -59,7 +59,7 @@ search:
- path: torrents.php - path: torrents.php
inputs: inputs:
$raw: "{{ range .Categories }}cat{{.}}=1&{{end}}" $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 # 0=incldead, 1=active, 2=dead
incldead: 0 incldead: 0
# show promotions 0=all, 1=normal, 2=free, 3=2x, 4=2xfree, 5=50%, 6=2x50%, 7=30% # show promotions 0=all, 1=normal, 2=free, 3=2x, 4=2xfree, 5=50%, 6=2x50%, 7=30%

View File

@@ -100,7 +100,7 @@ search:
- name: append - name: append
args: ".torrent" args: ".torrent"
download: download:
text: "{{if .Config.itorrents-links}}{{ .Result.download-itorrents }}{{ else }}{{ end }}" text: "{{ if .Config.itorrents-links }}{{ .Result.download-itorrents }}{{ else }}{{ end }}"
infohash: infohash:
selector: div.resultdivbotton div.hideinfohash selector: div.resultdivbotton div.hideinfohash
date: date:

View File

@@ -60,7 +60,7 @@ search:
- path: browse.php - path: browse.php
inputs: inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}" $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 # 0 active, 1 incldead, 2 onlydead
incldead: 1 incldead: 1

View File

@@ -62,7 +62,7 @@ settings:
search: search:
paths: 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: keywordsfilters:
- name: tolower - name: tolower
- name: re_replace - name: re_replace
@@ -90,7 +90,7 @@ search:
span.tv9: IMAGES span.tv9: IMAGES
span.tv10: EBOOKS span.tv10: EBOOKS
span.tv12: AUDIOBOOK span.tv12: AUDIOBOOK
"*": "OTHER" # some torrents have invalid categories "*": OTHER # some torrents have invalid categories
title: title:
selector: td:nth-child(1) > div > a selector: td:nth-child(1) > div > a
details: details:
@@ -136,4 +136,4 @@ search:
text: 0 text: 0
uploadvolumefactor: uploadvolumefactor:
text: 1 text: 1
# Engine n/a # engine n/a

View File

@@ -104,7 +104,7 @@ settings:
search: search:
paths: 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: inputs:
f: "{{ if .Keywords }}title: {{ .Keywords }}{{ else }}{{ end }}" f: "{{ if .Keywords }}title: {{ .Keywords }}{{ else }}{{ end }}"
safe: "{{ if .Config.filter-safe }}1{{ else }}0{{ end }}" safe: "{{ if .Config.filter-safe }}1{{ else }}0{{ end }}"
@@ -131,7 +131,7 @@ search:
- name: append - name: append
args: ".torrent" args: ".torrent"
download: download:
text: "{{if .Config.itorrents-links}}{{ .Result.download-itorrents }}{{ else }}{{ end }}" text: "{{ if .Config.itorrents-links }}{{ .Result.download-itorrents }}{{ else }}{{ end }}"
infohash: infohash:
selector: dt a selector: dt a
attribute: href attribute: href

View File

@@ -31,7 +31,7 @@ search:
paths: paths:
- path: browse.php - path: browse.php
inputs: inputs:
search: "{{if .Query.Artist}}{{ .Query.Artist }}{{ else }}{{ .Keywords }}{{ end }}" search: "{{ if .Query.Artist }}{{ .Query.Artist }}{{ else }}{{ .Keywords }}{{ end }}"
rows: rows:
selector: table.mainouter table > tbody > tr:has(a[href^="details.php?id="]) selector: table.mainouter table > tbody > tr:has(a[href^="details.php?id="])

View File

@@ -77,7 +77,7 @@ search:
paths: paths:
- path: browse.php - path: browse.php
inputs: inputs:
search: "{{if .Query.Artist}}{{ .Query.Artist }}{{ else }}{{ .Keywords }}{{ end }}" search: "{{ if .Query.Artist }}{{ .Query.Artist }}{{ else }}{{ .Keywords }}{{ end }}"
sort: "{{ re_replace .Config.sort \"_\" \"\" }}" sort: "{{ re_replace .Config.sort \"_\" \"\" }}"
type: "{{ .Config.type }}" type: "{{ .Config.type }}"

View File

@@ -108,7 +108,7 @@ search:
selector: a[href^="download2.php"] selector: a[href^="download2.php"]
attribute: href attribute: href
download: download:
text: "{{if .Config.seedbox}}{{ .Result.download2 }}{{ else }}{{ .Result.download1 }}{{ end }}" text: "{{ if .Config.seedbox }}{{ .Result.download2 }}{{ else }}{{ .Result.download1 }}{{ end }}"
details: details:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
attribute: href attribute: href