mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-09 12:48:36 +02:00
parabellumhd: fix year input
This commit is contained in:
@ -60,8 +60,7 @@ search:
|
||||
view: list
|
||||
order: "{{ .Config.sort }}"
|
||||
search: "{{ .Keywords }}"
|
||||
# if the year is not available in .Query.Year then extract it from .Query.Keywords if found
|
||||
year: "{{ if .Query.Year }}{{ .Query.Year }}{{ else }}{{ re_replace .Query.Keywords \"(.*\\b((19|20)\\d{2})\\b.*)\" \"$2\" }}{{ end }}"
|
||||
year: "{{ .Query.Year }}"
|
||||
keywordsfilters:
|
||||
- name: re_replace # remove year
|
||||
args: ["\\b((19|20)\\d{2})\\b", ""]
|
||||
|
Reference in New Issue
Block a user