From 46c185b4f289bbfd004b86b17d05c69fd8389706 Mon Sep 17 00:00:00 2001 From: garfield69 Date: Fri, 17 May 2024 20:42:03 +1200 Subject: [PATCH] animeworld: -> 8.0.0 (#15315) Co-authored-by: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> --- .../Definitions/animeworld-api.yml | 31 +++++++++++-------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/src/Jackett.Common/Definitions/animeworld-api.yml b/src/Jackett.Common/Definitions/animeworld-api.yml index ccb5e649f..6bd686ac1 100644 --- a/src/Jackett.Common/Definitions/animeworld-api.yml +++ b/src/Jackett.Common/Definitions/animeworld-api.yml @@ -40,11 +40,15 @@ settings: - name: info_key type: info label: About your API key - default: "Find or Generate a new API Token by accessing your AnimeWorld account My Security page and clicking on the API Token tab." + default: "Find or Generate a new API Token by accessing your AnimeWorld account My Settings page and clicking on the API Key tab." - name: freeleech type: checkbox label: Search freeleech only default: false + - name: single_file_release_use_filename + type: checkbox + label: Use filename as title for single file releases + default: true - name: sort type: select label: Sort requested from site @@ -110,8 +114,15 @@ search: fields: category: selector: category_id - title: + title_optional: 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: selector: details_link download: @@ -133,17 +144,11 @@ search: selector: meta.genres filters: - name: re_replace - args: ["(?i)^None$", ""] - - name: re_replace - args: ["(?i)(Cinema TV)", "Cinema_TV"] - - name: re_replace - args: ["(?i)(Ficção científica)", "Ficção_científica"] + args: ["(?i)(Science Fiction)", "Science_Fiction"] - name: replace args: [" & ", "_&_"] description: text: "{{ .Result.genre }}" - files: - selector: num_file seeders: selector: seeders leechers: @@ -171,12 +176,12 @@ search: 100%: 0 # freeleech "*": 0 # catch errors uploadvolumefactor: - # api returns 0=false, 1=true + # api returns False, True selector: double_upload case: - 0: 1 # normal - 1: 2 # double + False: 1 # normal + True: 2 # double minimumseedtime: # 7 day (as seconds = 7 x 24 x 60 x 60) text: 604800 -# json UNIT3D 6.5.0 +# json UNIT3D 8.0.0