Skip to content

BulkImageScrape: enable force_api_key - #766

Merged
DogmaDragon merged 2 commits into
stashapp:mainfrom
punamust:BulkImageScrape-force_api_key
Aug 31, 2026
Merged

BulkImageScrape: enable force_api_key#766
DogmaDragon merged 2 commits into
stashapp:mainfrom
punamust:BulkImageScrape-force_api_key

Conversation

@punamust

@punamust punamust commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

During long bulk image scraping tasks the session cookie can time out. This leads to tons of authentication errors and the plugin stops somewhere half-way in the middle.

I expected this to be unnecessary because stashapi is supposed to use the ApiKey, but Stash itself actually never passes it: stg-annon/stashapi#34.
Enabling force_api_key makes stashapi look up the ApiKey using the session cookie and continue using that (if it's generated).

I haven't tested yet if this actually works. I should find out soon. It seems to work.

@DogmaDragon DogmaDragon added the type:plugin Plugins label Aug 29, 2026
@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/bulk-image-scrape/1339/13

@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.

Needs to bump the version in the .yml file.

@DogmaDragon
DogmaDragon force-pushed the BulkImageScrape-force_api_key branch from c61640c to a225a56 Compare August 31, 2026 17:00
@punamust
punamust requested a review from DogmaDragon August 31, 2026 19:40
@DogmaDragon
DogmaDragon merged commit 4db934c into stashapp:main Aug 31, 2026
1 check passed
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