stashapp / stash

An organizer for your porn, written in Go. Documentation: https://docs.stashapp.cc
https://stashapp.cc/
GNU Affero General Public License v3.0
8.8k stars 778 forks source link

[Feature] Open scene with preferred video player. #2159

Open ghost opened 2 years ago

ghost commented 2 years ago

For viewing scenes in unsupported formats, it would be useful to have an option to play a scene in the preferred video player. Maybe by right clicking over a scene there could be a dropdown with that option. And inside the scene also in the dropdown where the scan and generate options are.

philpw99 commented 2 years ago

Maybe you will give Stash_Helper a try? It does what you are asking here. https://github.com/philpw99/Stash_Helper/releases

masterofobzene commented 2 years ago

Maybe you will give Stash_Helper a try? It does what you are asking here. https://github.com/philpw99/Stash_Helper/releases

To the OP: Doesn't work. Don't waste your time.
Stash will never do that. Said by the devs. They are too busy on adding the tastes and personal bio of the performers to the databases. Playing the files you collected is "trivial" here.

philpw99 commented 2 years ago

It works. This obzene guy is quite famous here.

WithoutPants commented 2 years ago

To the OP: Doesn't work. Don't waste your time. Stash will never do that. Said by the devs. They are too busy on adding the tastes and personal bio of the performers to the databases. Playing the files you collected is "trivial" here.

You don't speak on behalf of the devs.

For viewing scenes in unsupported formats, it would be useful to have an option to play a scene in the preferred video player. Maybe by right clicking over a scene there could be a dropdown with that option. And inside the scene also in the dropdown where the scan and generate options are.

There are technical barriers to doing this, but it is not impossible. Because the UI is web-based, we have to work around the technical limitations of browser software. On Android, we have a button that allows firing off VLC to play the file. On Apple devices, we have a similar mechanism. For other platforms it's not so easy.

One method (which I haven't gotten around to implementing yet), is to allow the configuration of a protocol prefix. This would then expose a link button with a URL with the configured protocol prefix. This allows a user to add a protocol handler on Windows to handle said prefix. For example, one might configure a vlc:// prefix that fires off VLC when clicked on. It's a workaround at best, but it's one of the few methods that would work within the constraints of the web browser.

Another alternative is to add a function on the back-end to fire up a player (this might be suited for a plugin, once the plugin system allows it). This however would only work if the backend happens to be on the same machine as the browser. It wouldn't work from another machine.

kermieisinthehouse commented 2 years ago

This is how part of the deovr implementation works, it's just a link with a special protocol handler. It can probably be generalized, and we can put a checklist of known prefixes of media players in the settings

masterofobzene commented 2 years ago

To the OP: Doesn't work. Don't waste your time. Stash will never do that. Said by the devs. They are too busy on adding the tastes and personal bio of the performers to the databases. Playing the files you collected is "trivial" here.

You don't speak on behalf of the devs.

For viewing scenes in unsupported formats, it would be useful to have an option to play a scene in the preferred video player. Maybe by right clicking over a scene there could be a dropdown with that option. And inside the scene also in the dropdown where the scan and generate options are.

There are technical barriers to doing this, but it is not impossible. Because the UI is web-based, we have to work around the technical limitations of browser software. On Android, we have a button that allows firing off VLC to play the file. On Apple devices, we have a similar mechanism. For other platforms it's not so easy.

One method (which I haven't gotten around to implementing yet), is to allow the configuration of a protocol prefix. This would then expose a link button with a URL with the configured protocol prefix. This allows a user to add a protocol handler on Windows to handle said prefix. For example, one might configure a vlc:// prefix that fires off VLC when clicked on. It's a workaround at best, but it's one of the few methods that would work within the constraints of the web browser.

Another alternative is to add a function on the back-end to fire up a player (this might be suited for a plugin, once the plugin system allows it). This however would only work if the backend happens to be on the same machine as the browser. It wouldn't work from another machine.

huh.... what happened? I thought you were busy adding studio logos to a barely watchable but cool collection. https://github.com/stashapp/stash/issues/2019

Next step, create a playlist using stash content and send it to the player... gosh... If I were developing something like this, that would be the fundamental stone and if that were not possible, then there would be no project at all. =S

masterofobzene commented 2 years ago

It works. This obzene guy is quite famous here.

Doesn't, gives errors and closes. Not worth the troubleshooting, sorry.

philpw99 commented 2 years ago

I know there are bugs and problems with the recent SH releases. This is due to the complexity to translate URL to GraphQL.

"Play Current Scene" feature always works. Don't know why it doesn't work in your case. And you didn't bother to give out the error message.

I made quite a few changes yesterday, related to playlist, scrape manager and gallery. It should work better, especially the playlist feature you requested. Also check out the new "Play current Gallery/Images" feature. Also the one you asked. The new version is v2.2.5, don't use the previous ones.

best2000 commented 5 months ago

Try this chrome extension https://chromewebstore.google.com/detail/external-application-laun/bifmfjgpgndemajpeeoiopbeilbaifdo just set it to run command. ex. "potplayer.exe [HREF]" I set my shortcut to be right click at vid then select "open in potplayer"