mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
parabellum: fix year extraction
This commit is contained in:
@@ -61,7 +61,7 @@ search:
|
||||
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(.*([1|2][9|0]\\d{2}).*)\\b\" \"$2\" }}{{ end }}"
|
||||
year: "{{ if .Query.Year }}{{ .Query.Year }}{{ else }}{{ re_replace .Query.Keywords \"(.*\\b([1|2][9|0]\\d{2})\\b.*)\" \"$2\" }}{{ end }}"
|
||||
keywordsfilters:
|
||||
- name: re_replace # remove year
|
||||
args: ["\\b(20\\d{2})\\b", ""]
|
||||
|
Reference in New Issue
Block a user