Skip to content

Funscript not loaded from stash if only the Path changes #238

Description

@Zalunda

Describe the issue
When playing back-a-back two video from the same Source (i.e. scene) but with a different Path (i.e. stream path), the funscript is not loaded from stash for the 2nd video.

Expected behavior
Notice the ?fileId=344 and ?fileId=343 in the Path field, more explanation below

	MultiFunPlayer.UI.Controls.ViewModels.ScriptViewModel|Received MediaPathChangedMessage [Source: "http://192.168.2.101:9999/scene/1772", Name: "stream", Path: "http://192.168.2.101:9999/scene/1772/stream?fileId=344", Type: "Url"]
	MultiFunPlayer.Script.Repository.ScriptRepositoryManager|Trying to match scripts to media [Name: "stream", Source: "http://192.168.2.101:9999/scene/1772"]
	...
	MultiFunPlayer.UI.Controls.ViewModels.ScriptViewModel|Received MediaPathChangedMessage [Source: "http://192.168.2.101:9999/scene/1772", Name: "stream", Path: "http://192.168.2.101:9999/scene/1772/stream?fileId=343", Type: "Url"]
	** I should see a "Trying to match scripts to media" here but I don't, so the 2nd video play using the 1st video funscript.

First, this issue occur only in a version of stash-vr that I'm working on (https://github.com/Zalunda/stash-vr/tree/develop, docker-compose.yml)

What I'm doing is that, when a scene have multiple files associated to it (ex. JAV scene), I create multiple "tiles", one for each files and add a label extracted from the 'non-common" part of the file name (ex. "A", "B", "C").

Since stash only support streaming the primary file (and it's associated funscript and subtitle), when the user click on a tile associated to a file that's not the primary file, I start by changing the primary file in stash, then I start the stream. In theory, the stream URL could be identical for every file of a scene but I added a field fileId=344 so that the URL is unique for each file. It's ignored by stash but it allow Heresphere, for example, to have specific "settings" for every files of the scene (ex. last played time). And would allows MFP to know that it's not really the same video even if the scene URL is identical.

Right now, to sidestep the problem, I have to play "Scene X part A" then "any other scene for 1 second" then "Scene X part B" to make sure that the funscript for part B is loaded in MFP when playing that part.

Activity

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

Metadata

Metadata

Assignees

Labels

issueApplication has unwanted/unexpected behaviour

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions