Find Marker For Tag Images

Find Marker For Tag Images

This plugin matches a random marker to a tag and associates that marker as the tag image

Required for this plugin to work:

  1. The Tag-video plugin found at Tag-video
  2. Marker Previews (video) have been generated.

Recommended:

  • Organize tags: merge duplicate tags (example: Doggy Style, Doggystyle, doggy).

This looks interesting. I tried to run this but got 401 error because I have sign-in/api key turned on. I’ll let you know if I end up patching support in to get it to run.

1 Like

I actually have to revisit this code because it’s not attaching the marker videos url like it used to.
This plugin might have broke with one of the updates.

This plugin is now fixed. I’ve refactored the script. Please run an update.

I was able to get it to run, but I had to manually enter my stash url and api key. Not sure what part of the logic there wasn’t working.
All the tag images seem to come up blank for me though. Not sure what’s up with that.

in the new version that shouldn’t have been necessary. it auto grabs that information now.

I added a log to see what it was autograbbing and it came back with
Base URL: http://0.0.0.0:9999, API Key:

In any case, I’m more concerned with why the tag image/videos aren’t working

It’s all about the API and credentials. I’ll have to do some more research to see if this can work when using API credentials.

I’m able to update the code so that it correctly auto grabs the URL and API key but the tag covers aren’t showing because when it injects the stream URL, it’s not authenticating. When you open the cover image in a new page, it will redirect you to your stash login page.

I’m going to have to take some time to figure out how to get it to work. For now, this plugin will only work on stash environments not using credentials/API

Thank you for letting me know of this. Hopefully I can figure this out sometime in the near future.

Yeah that’s interesting. The request does send the session cookie so I would expect it to authenticate Also, I tried sending the same request even with the API key header and that doesn’t work either.

I did some tinkering with it and I did find though that when you visit that stream url the plugin inserts after directly and login it ultimately loads the stream from a different endpoint like /scene/xxxxx/scene_marker/xxx/stream

If you put that in a video tag like <video src=”/scene/xxxxx/scene_marker/xxx/stream” autoplay></video> then it does play inline on the page.

Not sure how much effort it would take to make that adjustment, but it seems like it has promise.

1 Like

I found this issue/bug report for Stash and I think the best path forward is to wait for this to be fixed before revisiting this plugin.