Skip to content

stashdb-performer-gallery: fix infinite loop in relink_images when performer has >100 images - #775

Open
adtdev20 wants to merge 1 commit into
stashapp:mainfrom
adtdev20:main
Open

stashdb-performer-gallery: fix infinite loop in relink_images when performer has >100 images#775
adtdev20 wants to merge 1 commit into
stashapp:mainfrom
adtdev20:main

Conversation

@adtdev20

Copy link
Copy Markdown
Contributor

Page number and Item counter were being set to the same variable, so when a performer had more than 100 images, the loop would jump from page 1 to page 100. With page 100 not having any content, it would drop back to 0, and read 0+1, so page 1 again, and just get stuck there indefinitely.

The code in tagImagesFromGalleries correctly handled the count + pagination so that's the template for this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant