Skip to content

Commit 9b57437

Browse files
committed
Hotfix infinite loop in anilist plugin | Version 3.3 [release]
1 parent d458d20 commit 9b57437

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/plugins/anilist/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
do {
7878
console.debug(`metrics/compute/${login}/plugins > anilist > querying api (favorites characters - page ${page})`)
7979
const {data:{data:{User:{favourites:{characters:{nodes, pageInfo:cursor}}}}}} = await imports.axios.post("https://graphql.anilist.co", {variables:{name:user, page}, query:queries.anilist.characters()})
80-
page = cursor.currentPage
80+
page++
8181
next = cursor.hasNextPage
8282
for (const {name:{full:name}, image:{medium:artwork}} of nodes)
8383
characters.push({name, artwork:artwork ? await imports.imgb64(artwork) : "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mOcOnfpfwAGfgLYttYINwAAAABJRU5ErkJggg=="})

0 commit comments

Comments
 (0)