Skip to content

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

Open
adtdev20 wants to merge 2 commits 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 2 commits 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.

@discourse-stashapp

Copy link
Copy Markdown

This pull request has been mentioned on Stash Forum. There might be relevant details there:

https://discourse.stashapp.cc/t/stashdb-performer-gallery/1411/17

@DogmaDragon DogmaDragon added the type:plugin Plugins label Sep 10, 2026

@DogmaDragon DogmaDragon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to bump the version in the .yml file.

@adtdev20

Copy link
Copy Markdown
Contributor Author

Need to bump the version in the .yml file.

Done!

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants