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:
@@ -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%
|
||||
|
@@ -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
|
||||
|
@@ -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 }}"
|
||||
|
@@ -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%
|
||||
|
@@ -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:
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
@@ -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:
|
||||
@@ -136,4 +136,4 @@ search:
|
||||
text: 0
|
||||
uploadvolumefactor:
|
||||
text: 1
|
||||
# Engine n/a
|
||||
# engine n/a
|
||||
|
@@ -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 }}"
|
||||
@@ -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
|
||||
|
@@ -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="])
|
||||
|
@@ -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 }}"
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user