philpw99 / Stash_Helper

This is a little helper program for the excellent StashApp in Windows.
MIT License
64 stars 3 forks source link

error decoding results #14

Closed githubxnoob closed 1 year ago

githubxnoob commented 2 years ago

i opened a video on stash browser but when i click play current scene or alt+p i get

error decoding results.

error getting result:

the potplayer path is current. same with vlc

philpw99 commented 2 years ago

What browser do you use ? And the URL of the video, is it like "http://127.0.0.1/scenes/123" or something else ?

philpw99 commented 2 years ago

Stash 17 has a fundamental change: The "path" in each scene no longer exist. Instead it uses a "files" collection, which means it will no be compatible with all previous implements, I guess lots of plug-ins which handle files will break.

Personally I like this implement, because from now on each scene can have multiple files with different resolutions or codecs. The fix is also relatively easy. I think I will even give you a choice of which file to play, if there are more than one file for that scene.

philpw99 commented 2 years ago

OK, 2.4.1 is out, which is compatible with Stash v17 and above. https://github.com/philpw99/Stash_Helper/releases/tag/v2.4.1

githubxnoob commented 2 years ago

i tried the new version. this time either i get no error when pressing alt+p/ right click and select that "play current scene" button.

or i get the same error i got before.

i tried it on both chrome and brave browser. i tried uninstalling stash helper and doing a fresh install of this new update.( although it somehow knows the configuration)

anyways its not working for me. i am sorry. stash v0.17.2

philpw99 commented 2 years ago

Thank you for trying it out. I got no problem to use alt-p or "play current scene" button with PotPlayer. I tested with both Edge and Chrome. The video files play just fine. Stash version is 17.2 So I am wondering if you are using "Remote" or "Local" mode. What's the URL you use, is it "localhost" or "127.0.0.1" or something?

githubxnoob commented 2 years ago

I'm using remote mode. The url is something like 192.168.x.xxx

philpw99 commented 2 years ago

I just tested remote mode with Chrome. No problems either. Also the changes in Stash v17 wouldn't affect the remote mode of Stash Helper, only the local mode was affected and needed to change. Maybe you can try just copy the steam link from a scene in Stash, then open this URL in PotPlayer, and see what happens? Because basically Stash helper is doing things like this with PotPlayer: PotPlayerMini64.exe "http://192.168.x.xxx:9999/scene/1234/stream"

githubxnoob commented 2 years ago

I just tested remote mode with Chrome. No problems either. Also the changes in Stash v17 wouldn't affect the remote mode of Stash Helper, only the local mode was affected and needed to change. Maybe you can try just copy the steam link from a scene in Stash, then open this URL in PotPlayer, and see what happens? Because basically Stash helper is doing things like this with PotPlayer: PotPlayerMini64.exe "http://192.168.x.xxx:9999/scene/1234/stream"

turns out it didnt play because http://192.168.x.xxx:9999/scene/1234/stream is not enough. since i have password enabled in stashapp webapp. the url needed apikey. otherwise it wouldnt work.

http://192.168.x.xxx:9999/scene/4817/stream?apikey=

this above url works in all players.

the api key can be found here http://192.168.x.xx:9999/settings?tab=security

philpw99 commented 2 years ago

I see. Thank you so much for telling me about it! I will fix this in the next version.

philpw99 commented 1 year ago

New version is out. It has much better support for password protected Stash: https://github.com/philpw99/Stash_Helper/releases/tag/v2.4.2

githubxnoob commented 1 year ago

thanks for the update. this fixed it.