Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
assorted yml: clean up $raw
  • Loading branch information
garfield69 committed Mar 20, 2023
1 parent 7d27cde commit 42636b0
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/Jackett.Common/Definitions/linkomanija.yml
Expand Up @@ -80,9 +80,10 @@ search:
paths:
- path: browse.php
inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}{{ if .Config.freeleech }}freeleech=1&{{ else }}{{ end }}"
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ .Keywords }}"
incldead: 1
freeleech: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
searchindesc: "{{ .Config.searchindesc }}"

keywordsfilters:
Expand Down
3 changes: 2 additions & 1 deletion src/Jackett.Common/Definitions/madsrevolution.yml
Expand Up @@ -121,7 +121,8 @@ search:
paths:
- path: torrents.php
inputs:
$raw: "{{ range .Categories }}filter_cat[{{.}}]=1&{{end}}{{ if .Config.freeleech }}action=uploadonly&{{ else }}{{ end }}"
$raw: "{{ range .Categories }}filter_cat[{{.}}]=1&{{end}}"
action: "{{ if .Config.freeleech }}uploadonly{{ else }}{{ end }}"
searchstr: "{{ .Keywords }}"
searchtags: "{{ if .Query.Genre }}{{ .Query.Genre }}{{ else }}{{ end }}"
# 0 any, 1 all
Expand Down
3 changes: 2 additions & 1 deletion src/Jackett.Common/Definitions/sugoimusic.yml
Expand Up @@ -88,8 +88,9 @@ search:
- path: torrents.php
inputs:
# freetorrent: 0 normal, 1 freeleech, 2 neutral leech, 3 either
$raw: "{{ range .Categories }}filter_cat[{{.}}]=1&{{end}}{{ if .Config.freeleech }}freetorrent=1&{{ else }}{{ end }}"
$raw: "{{ range .Categories }}filter_cat[{{.}}]=1&{{end}}"
searchstr: "{{ .Keywords }}"
freetorrent: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
# we can only grab the first release if group_results=1
group_results: 0
action: advanced
Expand Down
3 changes: 2 additions & 1 deletion src/Jackett.Common/Definitions/torrenting.yml
Expand Up @@ -65,9 +65,10 @@ search:
# https://torrenting.com/t?1=&5=&free=on&q=climax&qf=ti
- path: t
inputs:
$raw: "{{ range .Categories }}{{.}}=&{{end}}{{ if .Config.freeleech }}free=on&{{ else }}{{ end }}"
$raw: "{{ range .Categories }}{{.}}=&{{end}}"
q: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
qf: "{{ if .Query.IMDBID }}adv{{ else }}ti{{ end }}"
free: "{{ if .Config.freeleech }}on{{ else }}{{ end }}"

rows:
selector: table#torrentsTable > tbody > tr:has(td.torrentNameInfo)
Expand Down
2 changes: 1 addition & 1 deletion src/Jackett.Common/Definitions/trancetraffic.yml
Expand Up @@ -48,7 +48,7 @@ search:
- path: browse.php
inputs:
search: "{{ if .Query.Artist }}{{ .Query.Artist }}{{ else }}{{ .Keywords }}{{ end }}"
$raw: "{{ if .Config.freeleech }}&includeFL=on{{ else }}{{ end }}"
includeFL: "{{ if .Config.freeleech }}on{{ else }}{{ 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/xthor-api.yml
Expand Up @@ -137,7 +137,7 @@ search:
category: "{{ if .Categories }}{{ range .Categories }}{{.}}+{{end}}{{ else }}{{ end }}"
search: "{{ .Keywords }}"
tmdbid: "{{ .Query.TMDBID }}"
$raw: "{{ if .Config.freeleech }}&freeleech=1{{ else }}{{ end }}"
freeleech: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
response:
type: json
noResultsMessage: '"descr": "no result"'
Expand Down

0 comments on commit 42636b0

Please sign in to comment.