Why is plex so difficult to work with. half of the responses that I get when searching for information on how to do something with plex doesn’t work. The main thing I’m trying to do currently is get the X-Plex-Token with a program. I need the token to get to the activity. When I do http://192.168.10.198:32400/status/sessions?X-Plex-Token=et7qsTxxsmV4kqxxxxx I get a response but it is always 0
I see that there several tokens. Not sure which token is needed for the different requests to ip:32400
One option is to go to a video and click on the three dots and then get info. I go to the video and there is no get info. But other times there is a get info.
I’m told that if I’m not an administrator I can’t do somethings. I don’t know if I’m an administrator. I installed plex. I’m the only one using it.
another problem is that I wanted to create a recordings folder to temporarily save recorded video so that I can move it to the tv show folder. But I can’t find the recording option in the dvr settings.
These are a few of the problems I’m having trying to setup plex
I want to record on one PC and stream from a nas. I have two TV’s with plex. one pc with the server and a linux box with the server. I can record video. Though I had a problem recording midsummer murders that was two one hour episodes back to back. The first recorded all 60 minutes. The second only recorded 3 minutes. I also had a problem where it did not wake the pc to record. My beyondTV would always turn the computer on.
I think this is enough for now.
To get a token, please see: https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/
And please keep issues to one pr post, so it’s more easy for other to search
Ok. I’m aware of that method of getting the token. But I need the ability to use a script to get the token. When I was using BeyondTV i could tell the system to shut down at 11PM and the script would monitor BeyondTV to see that is was done recording then shutdown. I want to do this with plex. I found that http://192.168.10.xxx:32400/status/sessions?X-Plex-Token=et7qsT5HsmV4kqSxxxx was supposed to return a number greater than 0 is plex was recording. All I get when sending this command is 0. The reason for the script is because the token can change over time. Not sure which token is the X-Plex-Token. regedit has one token view xml has a different token. When I look at devices.xml there are more tokens for each device.
Since you now say Windows you could look in the registry key HKEY_CURRENT_USER\Software\Plex, Inc.\Plex Media Server\PlexOnlineToken
Thanks for the response. I did find that there was a token stored in the registry. But I didn’t know if it was the X-Plex-Token. Because I think it was different than the one found by looking at view xml. Then in the documentation I found that there are about 7 tokens for different reasons.
Each client and each server has its own, dedicated token.
The one from the registry is the server’s.
The one you glean from the address bar of the web app is the web app’s.
How many there are, you can estimate by looking at https://app.plex.tv/desktop/#!/settings/devices/all
If I’m trying to get the status/sessions information what token do I need? Is it different for the desktop vis the web? When I am able to get a token that returns status/sessions info it is always 0. Since there is multiple tokens which one is for the correct status/sessions?
Thanks for the quick response.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.