hey, i have a question.
I have a plex media server that a friend and my brother have access to. When they watch something on my server, i could see that via the api using /status/sessions/. I will be able to see on which device they’re watching, which series and episode etc etc.
I can see the length of the episode (duration=“1448393”), but how do I translate this into Xminutes?
And is it possible to see how far someone is in the episode? (So I could see that he is 6 minutes into the 24min episode. Is there a way to find that 6?) Plex knows it. Because in the web app at the dashboard, i can see “6.24/24.50 minutes”. But is there a way to get that via the api?
I’m writing a bash script, and in a part of that script, the goal is to check if someone is watching. If they’re not, continue. If someone is, check how long the episode is and how far they are, subtract them to know how many minutes the episode has left, and then sleep for that amount of time.
I hope you can help.
Thanks!