Skip to content

Commit

Permalink
Hotfix infinite loop in anilist plugin | Version 3.3 [release]
Browse files Browse the repository at this point in the history
  • Loading branch information
lowlighter committed Jan 31, 2021
1 parent d458d20 commit 9b57437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/plugins/anilist/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
do {
console.debug(`metrics/compute/${login}/plugins > anilist > querying api (favorites characters - page ${page})`)
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()})
page = cursor.currentPage
page++
next = cursor.hasNextPage
for (const {name:{full:name}, image:{medium:artwork}} of nodes)
characters.push({name, artwork:artwork ? await imports.imgb64(artwork) : "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mOcOnfpfwAGfgLYttYINwAAAABJRU5ErkJggg=="})
Expand Down

0 comments on commit 9b57437

Please sign in to comment.