diff --git a/src/Jackett.Common/Definitions/btschool.yml b/src/Jackett.Common/Definitions/btschool.yml index 931df99675e0e..7858682ff211a 100644 --- a/src/Jackett.Common/Definitions/btschool.yml +++ b/src/Jackett.Common/Definitions/btschool.yml @@ -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% diff --git a/src/Jackett.Common/Definitions/ethor.yml b/src/Jackett.Common/Definitions/ethor.yml index 3aa26eb531833..b9022e0772e38 100644 --- a/src/Jackett.Common/Definitions/ethor.yml +++ b/src/Jackett.Common/Definitions/ethor.yml @@ -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 diff --git a/src/Jackett.Common/Definitions/gay-torrents.yml b/src/Jackett.Common/Definitions/gay-torrents.yml index c79a24653b24f..f913880976821 100644 --- a/src/Jackett.Common/Definitions/gay-torrents.yml +++ b/src/Jackett.Common/Definitions/gay-torrents.yml @@ -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 }}" diff --git a/src/Jackett.Common/Definitions/hdsky.yml b/src/Jackett.Common/Definitions/hdsky.yml index fec8d78f49d0c..60478c0643329 100644 --- a/src/Jackett.Common/Definitions/hdsky.yml +++ b/src/Jackett.Common/Definitions/hdsky.yml @@ -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% diff --git a/src/Jackett.Common/Definitions/idope.yml b/src/Jackett.Common/Definitions/idope.yml index 71eacea569533..bed3382aa0f25 100644 --- a/src/Jackett.Common/Definitions/idope.yml +++ b/src/Jackett.Common/Definitions/idope.yml @@ -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: diff --git a/src/Jackett.Common/Definitions/netlab.yml b/src/Jackett.Common/Definitions/netlab.yml index fcee7fd176eaf..f19263410a8dc 100644 --- a/src/Jackett.Common/Definitions/netlab.yml +++ b/src/Jackett.Common/Definitions/netlab.yml @@ -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 diff --git a/src/Jackett.Common/Definitions/torlock.yml b/src/Jackett.Common/Definitions/torlock.yml index a128cbd46bd9b..4d5792655d3ae 100644 --- a/src/Jackett.Common/Definitions/torlock.yml +++ b/src/Jackett.Common/Definitions/torlock.yml @@ -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 diff --git a/src/Jackett.Common/Definitions/torrentz2.yml b/src/Jackett.Common/Definitions/torrentz2.yml index 07c81f8664894..fbd55defdda43 100644 --- a/src/Jackett.Common/Definitions/torrentz2.yml +++ b/src/Jackett.Common/Definitions/torrentz2.yml @@ -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 diff --git a/src/Jackett.Common/Definitions/trancetraffic.yml b/src/Jackett.Common/Definitions/trancetraffic.yml index b461e85fc7c9b..810b3724b2a31 100644 --- a/src/Jackett.Common/Definitions/trancetraffic.yml +++ b/src/Jackett.Common/Definitions/trancetraffic.yml @@ -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="]) diff --git a/src/Jackett.Common/Definitions/tribalmixes.yml b/src/Jackett.Common/Definitions/tribalmixes.yml index e2fddd791c00b..e411ad954d5de 100644 --- a/src/Jackett.Common/Definitions/tribalmixes.yml +++ b/src/Jackett.Common/Definitions/tribalmixes.yml @@ -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 }}" diff --git a/src/Jackett.Common/Definitions/xwtclassics.yml b/src/Jackett.Common/Definitions/xwtclassics.yml index 58a4d2f98f7e3..2006538b99310 100644 --- a/src/Jackett.Common/Definitions/xwtclassics.yml +++ b/src/Jackett.Common/Definitions/xwtclassics.yml @@ -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