mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
hdonly: remove trailing ÷ on single file release titles. resolves #15369
This commit is contained in:
@@ -262,16 +262,16 @@ search:
|
|||||||
args: .
|
args: .
|
||||||
- name: append
|
- name: append
|
||||||
args: "{{ if .Result._release_group }}-{{ .Result._release_group }}{{ else }}{{ end }}"
|
args: "{{ if .Result._release_group }}-{{ .Result._release_group }}{{ else }}{{ end }}"
|
||||||
_filename:
|
title_filename:
|
||||||
selector: "fileName"
|
selector: "fileName"
|
||||||
optional: true
|
optional: true
|
||||||
filters:
|
filters:
|
||||||
- name: replace
|
- name: re_replace
|
||||||
args: [".mkv", ""]
|
args: ["\\s÷$", ""]
|
||||||
- name: append
|
- name: append
|
||||||
args: " {{ if and (.Config.add_hybrid_features_to_filename) (eq .Result._hdr \"True\") }}[HDR]{{ else }}{{ end }}{{ if and (.Config.add_hybrid_features_to_filename) (eq .Result._hdr10plus \"True\") }}[HDR10+]{{ else }}{{ end }}{{ if and (.Config.add_hybrid_features_to_filename) (eq .Result._dovi \"True\") }}[DoVi]{{ else }}{{ end }}"
|
args: " {{ if and (.Config.add_hybrid_features_to_filename) (eq .Result._hdr \"True\") }}[HDR]{{ else }}{{ end }}{{ if and (.Config.add_hybrid_features_to_filename) (eq .Result._hdr10plus \"True\") }}[HDR10+]{{ else }}{{ end }}{{ if and (.Config.add_hybrid_features_to_filename) (eq .Result._dovi \"True\") }}[DoVi]{{ else }}{{ end }}"
|
||||||
title_phase1:
|
title_phase1:
|
||||||
text: "{{ if and (eq .Result.files \"1\") (.Result._filename) }}{{ .Result._filename }}{{ else }}{{ .Result.title_optional }}{{ end }}"
|
text: "{{ if and (eq .Result.files \"1\") (.Result.title_filename) }}{{ .Result.title_filename }}{{ else }}{{ .Result.title_optional }}{{ end }}"
|
||||||
title_vostfr:
|
title_vostfr:
|
||||||
text: "{{ .Result.title_phase1 }}"
|
text: "{{ .Result.title_phase1 }}"
|
||||||
filters:
|
filters:
|
||||||
@@ -287,7 +287,10 @@ search:
|
|||||||
title:
|
title:
|
||||||
text: "{{ if .Config.multilang }}{{ .Result.title_multilang }}{{ else }}{{ .Result.title_phase2 }}{{ end }}"
|
text: "{{ if .Config.multilang }}{{ .Result.title_multilang }}{{ else }}{{ .Result.title_phase2 }}{{ end }}"
|
||||||
description:
|
description:
|
||||||
text: "{{ .Result._filename }}"
|
text: "{{ .Result.title_filename }}"
|
||||||
|
filters:
|
||||||
|
- name: re_replace
|
||||||
|
args: ["\\s÷$", ""]
|
||||||
_free:
|
_free:
|
||||||
selector: isFreeleech
|
selector: isFreeleech
|
||||||
downloadvolumefactor:
|
downloadvolumefactor:
|
||||||
|
Reference in New Issue
Block a user