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:
parent
4b9857161a
commit
7ba083c354
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue