Jump to content

Script: On playbackstart, stop paused sessions on other devices


ginjaninja
 Share

Recommended Posts

ginjaninja

Purpose/Reason

 

what the script does

onplaystart, all other paused sessions on the server for the said mediaitem on all other devices for the user are stopped.

(prevents paused sessions muddying the playbackposition later on)

 

installation:

install powershell 7+ (Windows, Linux etc)

configure onplaystart event on ScripterX to call script with parameters

image.png.5c5385531164f07edd65635eb038e126.png

create apikey and add to config file.

 

ClearPaused v0.0.0.2.zip

 

Edited by ginjaninja
  • Like 1
Link to comment
Share on other sites

  • 1 year later...
ginjaninja
5 hours ago, Banquero said:

Hola, me gustaria utilizar este plugin en mi synology. Como puedo hacerlo? @ginjaninja

i am not familiar with Synology, and i dont speak Spanish so this may get complicated 🙂

1st challenge is can you install Powershell and Scripter X Emby plugin on Synology?

https://github.com/PowerShell/powershell/releases

 

Link to comment
Share on other sites

fillidill

This is really cool and have given me a reason to check ScripterX out. Thanks for sharing!

Link to comment
Share on other sites

ginjaninja

With the renewed interest. I have moved the code over to use the "/emby/Sessions/" + $_.id + "/Playing/Stop" endpoint which seems to be more compatible with web clients.

updated to v0.0.0.2

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...