1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-10 06:03:09 +00:00

anthelion-api: use the filename if a single file (#14661)

This commit is contained in:
Bogdan 2023-08-27 00:09:15 +03:00 committed by GitHub
parent 4b9857161a
commit 7ba083c354
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,7 +108,7 @@ search:
optional: true
filters:
- name: trim
title:
title_optional:
selector: title
filters:
- name: htmldecode
@ -155,4 +155,11 @@ search:
minimumseedtime:
# 3 day (as seconds = 3 x 24 x 60 x 60)
text: 259200
_filename:
selector: "files[0].name"
filters:
- name: htmldecode
optional: true
title:
text: "{{ if and (eq .Result.files \"1\") (.Result._filename) }}{{ .Result._filename }}{{ else }}{{ .Result.title_optional }}{{ end }}"
# json api