animeworld: -> 8.0.0 (#15315)

Co-authored-by: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com>
This commit is contained in:
garfield69 2024-05-17 20:42:03 +12:00 committed by GitHub
parent c9bb1ec689
commit 46c185b4f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 18 additions and 13 deletions

View File

@ -40,11 +40,15 @@ settings:
- name: info_key - name: info_key
type: info type: info
label: About your API key label: About your API key
default: "Find or Generate a new API Token by accessing your <a href=\"https://animeworld.cx/\" target=\"_blank\">AnimeWorld</a> account <i>My Security</i> page and clicking on the <b>API Token</b> tab." default: "Find or Generate a new API Token by accessing your <a href=\"https://animeworld.cx/\" target=\"_blank\">AnimeWorld</a> account <i>My Settings</i> page and clicking on the <b>API Key</b> tab."
- name: freeleech - name: freeleech
type: checkbox type: checkbox
label: Search freeleech only label: Search freeleech only
default: false default: false
- name: single_file_release_use_filename
type: checkbox
label: Use filename as title for single file releases
default: true
- name: sort - name: sort
type: select type: select
label: Sort requested from site label: Sort requested from site
@ -110,8 +114,15 @@ search:
fields: fields:
category: category:
selector: category_id selector: category_id
title: title_optional:
selector: name selector: name
title_filename:
selector: "files[0].name"
optional: true
files:
selector: num_file
title:
text: "{{ if and (.Config.single_file_release_use_filename) (eq .Result.files \"1\") (.Result.title_filename) }}{{ .Result.title_filename }}{{ else }}{{ .Result.title_optional }}{{ end }}"
details: details:
selector: details_link selector: details_link
download: download:
@ -133,17 +144,11 @@ search:
selector: meta.genres selector: meta.genres
filters: filters:
- name: re_replace - name: re_replace
args: ["(?i)^None$", ""] args: ["(?i)(Science Fiction)", "Science_Fiction"]
- name: re_replace
args: ["(?i)(Cinema TV)", "Cinema_TV"]
- name: re_replace
args: ["(?i)(Ficção científica)", "Ficção_científica"]
- name: replace - name: replace
args: [" & ", "_&_"] args: [" & ", "_&_"]
description: description:
text: "{{ .Result.genre }}" text: "{{ .Result.genre }}"
files:
selector: num_file
seeders: seeders:
selector: seeders selector: seeders
leechers: leechers:
@ -171,12 +176,12 @@ search:
100%: 0 # freeleech 100%: 0 # freeleech
"*": 0 # catch errors "*": 0 # catch errors
uploadvolumefactor: uploadvolumefactor:
# api returns 0=false, 1=true # api returns False, True
selector: double_upload selector: double_upload
case: case:
0: 1 # normal False: 1 # normal
1: 2 # double True: 2 # double
minimumseedtime: minimumseedtime:
# 7 day (as seconds = 7 x 24 x 60 x 60) # 7 day (as seconds = 7 x 24 x 60 x 60)
text: 604800 text: 604800
# json UNIT3D 6.5.0 # json UNIT3D 8.0.0