Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Plugin] Plex Streams

Featured Replies

  • Author

On the Settings page please add 

?dbg=1

to the URL, then navigate to the plex.tv URL that is output on the page, and would it be possible to send be the output of that?

  • Replies 454
  • Views 83.4k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • I am planning a rewrite of this plugin, and will add that to the list of support besides also being able to support other media server platforms

  • This has been added as well as turning on/off the dashboard widget in 2020.05.20b.  If you turn it off you can access it through the widget or under Tools->System Information.

  • It does just work for MANY. Have you tried my suggestion yet? I definitely want to assist in getting this issue resolved for many, but as I stated it is the results coming back from Plex that are th

Posted Images

Here it is :

 

string(90) "http://192.168.2.211:32400/status/sessions?X-Plex-Token=9MyTokenRedacted&_m=1591731373"

Warning: file_get_contents(http://192.168.2.211:32400/status/sessions?X-Plex-Token=9MyTokenRedacted&_m=1591731373): failed to open stream: HTTP request failed! in /usr/local/emhttp/plugins/plexstreams/includes/common.php on line 103
string(61) "https://plex.tv/devices.xml?X-Plex-Token=9MyTokenRedacted"
Change Server: 
SharedPlex.tv (http://192.168.2.211:32400)
 
There are currently no active streams

If I use the URL in the file_get_contents and change it for https, then it return an XML...  My Unraid WebUI is http only, but plex does requires https.

I apologize if this question has been asked and answered. I did a quick scan of thread and may have missed it.

 

Does this plugin only show the count of playing streams? 

 

I am using the Live TV and DVR functionality and currently have two recordings going.  Reported streams is 0.  That is accurate if the plugin only shows if something is playing.

 

EDIT:  I assume this is close to an answer

 

Movies only.  No indication if music is playing, Photos are being viewed through Plex, recording with the DVR is going on, etc. if I am reading into this correctly.  That would be a big ask.

 

It's a good plugin, I just want to make sure I understand what it can and cannot do correctly.

Edited by Hoopster

  • Author
12 minutes ago, Hoopster said:

I apologize if this question has been asked and answered. I did a quick scan of thread and may have missed it.

 

Does this plugin only show the count of playing streams? 

 

I am using the Live TV and DVR functionality and currently have two recordings going.  Reported streams is 0.  That is accurate if the plugin only shows if something is playing.

 

EDIT:  I assume this is close to an answer

 

Movies only.  No indication if music is playing, Photos are being viewed through Plex, recording with the DVR is going on, etc. if I am reading into this correctly.  That would be a big ask.

 

It's a good plugin, I just want to make sure I understand what it can and cannot do correctly.

It does currently support Movies, TV & Audio.  Hadnt thought about Live TV, so since i Have a tuner and utilize this functionality from time time, let me debug this.

  • Author
42 minutes ago, Pducharme said:

Here it is :

 


string(90) "http://192.168.2.211:32400/status/sessions?X-Plex-Token=9MyTokenRedacted&_m=1591731373"

Warning: file_get_contents(http://192.168.2.211:32400/status/sessions?X-Plex-Token=9MyTokenRedacted&_m=1591731373): failed to open stream: HTTP request failed! in /usr/local/emhttp/plugins/plexstreams/includes/common.php on line 103
string(61) "https://plex.tv/devices.xml?X-Plex-Token=9MyTokenRedacted"
Change Server: 
SharedPlex.tv (http://192.168.2.211:32400)
 
There are currently no active streams

If I use the URL in the file_get_contents and change it for https, then it return an XML...  My Unraid WebUI is http only, but plex does requires https.

So http url returns no content, but https returns content?

Just now, dorgan said:

It does currently support Movies, TV & Audio

Cool, thanks for the reply. 

 

I don't use the Plex Live TV function except when traveling.  I use the native HDHomeRun app instead.  However, I do a lot of OTA recording through the Plex DVR. 

 

Showing both Live TV and DVR recording streams would be a great addition if there is an easy way to do that, but, don't break what is working for the sake of that functionality (not that you would ever intentionally break anything) 😀

33 minutes ago, dorgan said:

So http url returns no content, but https returns content?

http://192.168.2.211:32400/status/sessions?X-Plex-Token=9MyTokenRedacted&_m=1591731373 = ERR_EMPTY_RESPONSE in Google Chrome.

https://192.168.2.211:32400/status/sessions?X-Plex-Token=9MyTokenRedacted&_m=1591731373 = SSL Warning, then when i accept, it displays a XML file. 

 

I can see the XML is actually the list of currently playing media with a bunch of details.  When I stop the stream, the XML says MediaContainer Size = 0.

  • Author
19 minutes ago, Pducharme said:

http://192.168.2.211:32400/status/sessions?X-Plex-Token=9MyTokenRedacted&_m=1591731373 = ERR_EMPTY_RESPONSE in Google Chrome.

https://192.168.2.211:32400/status/sessions?X-Plex-Token=9MyTokenRedacted&_m=1591731373 = SSL Warning, then when i accept, it displays a XML file. 

 

I can see the XML is actually the list of currently playing media with a bunch of details.  When I stop the stream, the XML says MediaContainer Size = 0.

Interesting, can you please show me your settings page.  I pull the list of servers from Plex, also besides the screenshot of the Settings page, add ?dbg=1 to that URL as well and then navigate to the plex.tv URL that it outputs, and could you DM me the output of that file??

Settings page of what? your plugin? or Plex server settings? it doesn't output a plex.tv URL, only the one I display here ?  Maybe i'm not understanding where to look :)

  • Author
3 minutes ago, Pducharme said:

Settings page of what? your plugin? or Plex server settings? it doesn't output a plex.tv URL, only the one I display here ?  Maybe i'm not understanding where to look :)

in the Plex Nav click settings, then click Plex Streams under the Network Services section287755446_ScreenShot2020-06-09at5_15_11PM.thumb.png.70c3d565311229e257fdf3e3d95d5d17.png

  • Author
1 hour ago, Hoopster said:

Cool, thanks for the reply. 

 

I don't use the Plex Live TV function except when traveling.  I use the native HDHomeRun app instead.  However, I do a lot of OTA recording through the Plex DVR. 

 

Showing both Live TV and DVR recording streams would be a great addition if there is an easy way to do that, but, don't break what is working for the sake of that functionality (not that you would ever intentionally break anything) 😀

Live Streaming is fix with 2020.06.09b.  I will now look into DVR recordings...

Edited by dorgan

  • Author
8 hours ago, Pducharme said:

http://192.168.2.211:32400/status/sessions?X-Plex-Token=9MyTokenRedacted&_m=1591731373 = ERR_EMPTY_RESPONSE in Google Chrome.

https://192.168.2.211:32400/status/sessions?X-Plex-Token=9MyTokenRedacted&_m=1591731373 = SSL Warning, then when i accept, it displays a XML file. 

 

I can see the XML is actually the list of currently playing media with a bunch of details.  When I stop the stream, the XML says MediaContainer Size = 0.

I pushed out 2020.06.09c which has a setting to force https.  You'll need to select this, hit save and then select a default server from the list and hit save again.  I have been unable to recreate this issue locally, so this is kind of a guess.  Do you know if you have Plex requiring secure connections?

Edited by dorgan

5 hours ago, dorgan said:

I pushed out 2020.06.09c which has a setting to force https.  You'll need to select this, hit save and then select a default server from the list and hit save again.  I have been unable to recreate this issue locally, so this is kind of a guess.  Do you know if you have Plex requiring secure connections?

Good news and bad news :)

 

The Good News is that there is no more an error when going on the PLEX_STREAMS tab.  It display "There are currently no active streams". On the Dashboard, it says "0 active stream(s)".

 

The bad news is that it doesn't see the active streams because they were 1 running.  I also compared with Tautulli and it sees the stream just fine in there, so there is still something not working in the plugin.

  • Author
9 hours ago, Pducharme said:

Good news and bad news :)

 

The Good News is that there is no more an error when going on the PLEX_STREAMS tab.  It display "There are currently no active streams". On the Dashboard, it says "0 active stream(s)".

 

The bad news is that it doesn't see the active streams because they were 1 running.  I also compared with Tautulli and it sees the stream just fine in there, so there is still something not working in the plugin.

Can you send me a screenshot of your Tautulli plex settings??

9 minutes ago, dorgan said:

Can you send me a screenshot of your Tautulli plex settings??

Sent in a PM.

  • Author
1 hour ago, Pducharme said:

Sent in a PM.

OK was able to track this down and make it work the way that Tautulli works. Version 2020.06.10 should be other there now.  Once installed,  go to plex stream settings if Use SSL Connection is not set to "On" set it hit save, then select a server and hit save again.  I'll eventually circle back to this to not require the second save...

12 minutes ago, dorgan said:

OK was able to track this down and make it work the way that Tautulli works. Version 2020.06.10 should be other there now.  Once installed,  go to plex stream settings if Use SSL Connection is not set to "On" set it hit save, then select a server and hit save again.  I'll eventually circle back to this to not require the second save...

It works ! :) thanks !

Hi there and thanks for a great plugin. 

Now I'm sorry if this has been covered before but I believe this plugin can hang the whole UnRAID WebUI if the Plex docker container is paused for too long, around 1 hrs or so. I just recently paused my Plex docker while using the UnBalance plugin to consolidate some media folders, after letting the plex container sit in a "paused" state for about an hour, my UnRAID Web UI was completely unreachable.

 

Extract from syslog, this was spammed repeatedly until I ssh'ed into the server and unpaused the plex docker, then everything unlocked and started working again. I can't see any other connection between the webUI and the plex container than this plugin that I recently installed. This is not a major problem as I'll just turn off the plex container instead. Just thought I'd give you a heads up. It is also entirely possible that I am wrong about this, if so I apologize.

Jun 11 19:41:44 Sauron nginx: 2020/06/11 19:41:44 [error] 11020#11020: *516793 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.1.200, server: , request: "GET /plugins/plexstreams/ajax.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "192.168.1.250", referrer: "http://192.168.1.250/Dashboard"

 

  • Author
34 minutes ago, bunkermagnus said:

Hi there and thanks for a great plugin. 

Now I'm sorry if this has been covered before but I believe this plugin can hang the whole UnRAID WebUI if the Plex docker container is paused for too long, around 1 hrs or so. I just recently paused my Plex docker while using the UnBalance plugin to consolidate some media folders, after letting the plex container sit in a "paused" state for about an hour, my UnRAID Web UI was completely unreachable.

 

Extract from syslog, this was spammed repeatedly until I ssh'ed into the server and unpaused the plex docker, then everything unlocked and started working again. I can't see any other connection between the webUI and the plex container than this plugin that I recently installed. This is not a major problem as I'll just turn off the plex container instead. Just thought I'd give you a heads up. It is also entirely possible that I am wrong about this, if so I apologize.


Jun 11 19:41:44 Sauron nginx: 2020/06/11 19:41:44 [error] 11020#11020: *516793 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.1.200, server: , request: "GET /plugins/plexstreams/ajax.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "192.168.1.250", referrer: "http://192.168.1.250/Dashboard"

 

So a couple of things, are you running the most recent version?  Does it still happen?  I did adjust some timeout.  Second the ajax.php file is called every 5 seconds when you are on the dashboard so technically the longer you sit on the dashboard the more hits you'll see.  Unfortunately I recently moved to having my plex install run on a different dedicated machine, but let me see what happens when i shut down the plex server.

  • Author
1 minute ago, dorgan said:

So a couple of things, are you running the most recent version?  Does it still happen?  I did adjust some timeout.  Second the ajax.php file is called every 5 seconds when you are on the dashboard so technically the longer you sit on the dashboard the more hits you'll see.  Unfortunately I recently moved to having my plex install run on a different dedicated machine, but let me see what happens when i shut down the plex server.

@bunkermagnus did a quick stop of plexmediaserver on the dedicated server and unraid still operates as expected.  Let me know if you experience the problem with the latest version.

1 minute ago, dorgan said:

So a couple of things, are you running the most recent version?  Does it still happen?  I did adjust some timeout.  Second the ajax.php file is called every 5 seconds when you are on the dashboard so technically the longer you sit on the dashboard the more hits you'll see.  Unfortunately I recently moved to having my plex install run on a different dedicated machine, but let me see what happens when i shut down the plex server.

 

Well the lockup happened a couple of hours ago with the version that was new yesterday when I installed it. I notice you published a new version just recently but I haven't tried it again, as I said, it's no biggie but I suppose it could cause problems for someone who don't know about this. I just realized this on chance while searching for "Crashed webui interface" on google, someone mentioned that pausing certain Docker containers could cause this so I quickly had to learn the CLI commands for listing and unpausing dockers. :)

Just to be clear, it happened when Plex container was paused, not stopped, I'm guessing a paused container confuses the TCP/IP stack in this case.

 

  • Author
1 minute ago, bunkermagnus said:

 

Well the lockup happened a couple of hours ago with the version that was new yesterday when I installed it. I notice you published a new version just recently but I haven't tried it again, as I said, it's no biggie but I suppose it could cause problems for someone who don't know about this. I just realized this on chance while searching for "Crashed webui interface" on google, someone mentioned that pausing certain Docker containers could cause this so I quickly had to learn the CLI commands for listing and unpausing dockers. :)

Just to be clear, it happened when Plex container was paused, not stopped, I'm guessing a paused container confuses the TCP/IP stack in this case.

 

Maybe, honestly i never thought about pausing a docker container, i think that just introduces too much risk

4 minutes ago, dorgan said:

Maybe, honestly i never thought about pausing a docker container, i think that just introduces too much risk

You're probably right, it's a fringe situation problem. :)

Feature request: Could you add all/selectable servers to the Display Dashboard Widget instead of just the one?

Amazing work so far.

Thank you...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.