mirror of
https://github.com/Jackett/Jackett
synced 2025-03-10 14:14:25 +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
|
optional: true
|
||||||
filters:
|
filters:
|
||||||
- name: trim
|
- name: trim
|
||||||
title:
|
title_optional:
|
||||||
selector: title
|
selector: title
|
||||||
filters:
|
filters:
|
||||||
- name: htmldecode
|
- name: htmldecode
|
||||||
|
@ -155,4 +155,11 @@ search:
|
||||||
minimumseedtime:
|
minimumseedtime:
|
||||||
# 3 day (as seconds = 3 x 24 x 60 x 60)
|
# 3 day (as seconds = 3 x 24 x 60 x 60)
|
||||||
text: 259200
|
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
|
# json api
|
||||||
|
|
Loading…
Add table
Reference in a new issue