From 2abe0c7019044bb9e2c5c3365c23be3e5946aa28 Mon Sep 17 00:00:00 2001 From: Arial-Z Date: Mon, 26 Feb 2024 23:14:57 +0100 Subject: [PATCH] Fix json download folder --- functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.sh b/functions.sh index 51a420e..e74dce3 100644 --- a/functions.sh +++ b/functions.sh @@ -76,7 +76,7 @@ function get-anilist-infos () { curl -s 'https://graphql.anilist.co/' \ -X POST \ -H 'content-type: application/json' \ - --data '{ "query": "{ Media(type: ANIME, id: '"$anilist_id"') { relations { edges { relationType node { id type format title { romaji } status } } } title { romaji(stylised: false) english(stylised: false) native(stylised: false) } averageScore genres tags { name rank } studios { edges { node { name isAnimationStudio } } } startDate { year month } season seasonYear coverImage { extraLarge } status idMal} }" }' > "anilist-$anilist_id.json" -D "anilist-limit-rate.txt" + --data '{ "query": "{ Media(type: ANIME, id: '"$anilist_id"') { relations { edges { relationType node { id type format title { romaji } status } } } title { romaji(stylised: false) english(stylised: false) native(stylised: false) } averageScore genres tags { name rank } studios { edges { node { name isAnimationStudio } } } startDate { year month } season seasonYear coverImage { extraLarge } status idMal} }" }' > "$SCRIPT_FOLDER/config/data/anilist-$anilist_id.json" -D "$SCRIPT_FOLDER/config/tmp/anilist-limit-rate.txt" rate_limit=0 rate_limit=$(grep -oP '(?<=x-ratelimit-remaining: )[0-9]+' "$SCRIPT_FOLDER/config/tmp/anilist-limit-rate.txt") ((wait_time++))