1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-03 05:36:44 +00:00

Updated Definition format (markdown)

garfield69 2020-01-26 21:25:05 +13:00
parent a0eaca944b
commit 458834b690

@ -271,7 +271,7 @@ Example of a complex search block explaining all available options:
followredirect: false
categorymappings: ["!", 901, 902] # optional list of tracker categories
# If specified the path will be only used if at
# least on category from the list is included in
# least one category from the list is included in
# the search categories list.
# A "!" as first entry negates the matching
# logic (include the path in any other than
@ -280,30 +280,24 @@ Example of a complex search block explaining all available options:
# [OPTIONAL] list of (extra) arguments which should be added for this path
inputs:
scene: 0
# [OPTIONAL] boolean option to disable input inheritance from
# the search level inputs list.
# If set to true the "inputs" from the search level list will
# be used as the base for the path specific inputs
# [OPTIONAL] boolean option to disable input inheritance from the search level inputs list.
# If set to true the "inputs" from the search level list will be used as the base for the path specific inputs
# Default is true
inheritinputs: true
- path: torrents.php
categorymappings: ["!", 901, 902] # don't use this path if we're only searching
# for porn
categorymappings: ["!", 901, 902] # don't use this path if we're only searching for porn
inputs:
scene: 1
- path: xxx.php
categorymappings: [901, 902] # only use it if we're searching for porn
# list of HTTP arguments which are used by all paths
inputs:
$raw: "{{ range .Categories }}category[]={{.}}&{{end}}" # Generate the category[]
# arguments list
# The $raw input is special,
# the result will be included
# in the HTTP arguments list
# without further escaping
# (only variables are escaped).
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}" # If
# an IMDB ID has been specified use it. Otherwise use the search keywords.
# Generate the category[] arguments list
# The $raw input is special, the result will be included in the HTTP arguments list
# without further escaping (only variables are escaped).
$raw: "{{ range .Categories }}category[]={{.}}&{{end}}"
# If an IMDB ID has been specified use it. Otherwise use the search keywords.
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}"
imdb_search: "{{ if .Query.IMDBID }}yes{{else}}{{end}}"
searchin: title
incldead: 1