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
12 hours ago, Nomad347 said:

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

Amazing work so far.

Thank you...

Yeah, now that I have it pulling devices the right way and not slowing down loading of the dashboard and streams page, let me see about displaying streams from any combination of servers.

 

Keep the feedback and suggests coming!

  • Replies 454
  • Views 83.3k
  • 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

  • Author

Big update, plugin now supports multiple servers and displaying all of them at the same time.

after the last update i cant add a plex token anymore.

when using the get plex token button and login in i get the following error in console

plex.js:16 Uncaught TypeError: Cannot read property 'split' of undefined
    at getServers (plex.js:16)
    at Object.success (plex.js:206)
    at i (dynamix.js?v=1583697979:4)
    at Object.fireWith [as resolveWith] (dynamix.js?v=1583697979:4)
    at z (dynamix.js?v=1583697979:4)
    at XMLHttpRequest.<anonymous> (dynamix.js?v=1583697979:4)

 

ps: before the update i could add the token but the plugin would never load the server.

  • Author
43 minutes ago, mangavalk said:

after the last update i cant add a plex token anymore.

when using the get plex token button and login in i get the following error in console


plex.js:16 Uncaught TypeError: Cannot read property 'split' of undefined
    at getServers (plex.js:16)
    at Object.success (plex.js:206)
    at i (dynamix.js?v=1583697979:4)
    at Object.fireWith [as resolveWith] (dynamix.js?v=1583697979:4)
    at z (dynamix.js?v=1583697979:4)
    at XMLHttpRequest.<anonymous> (dynamix.js?v=1583697979:4)

 

ps: before the update i could add the token but the plugin would never load the server.

Ok I will look into this today

  • Author
2 hours ago, mangavalk said:

after the last update i cant add a plex token anymore.

when using the get plex token button and login in i get the following error in console


plex.js:16 Uncaught TypeError: Cannot read property 'split' of undefined
    at getServers (plex.js:16)
    at Object.success (plex.js:206)
    at i (dynamix.js?v=1583697979:4)
    at Object.fireWith [as resolveWith] (dynamix.js?v=1583697979:4)
    at z (dynamix.js?v=1583697979:4)
    at XMLHttpRequest.<anonymous> (dynamix.js?v=1583697979:4)

 

ps: before the update i could add the token but the plugin would never load the server.

This is now fixed by version 2020.06.20

Edited by dorgan

21 minutes ago, dorgan said:

This is now fixed by version 2020.06.20

 

Thank you, however there is an issue that appeared after the 06.19 version for me that is still persistent, the dashboard widget is stuck in "Retrievening stream data..." If I click on the stream icon in the widget it show the correct data but the widget simply refuses to update. Tried different browsers, Edge and Chrome with the same result.

  • Author
8 minutes ago, bunkermagnus said:

 

Thank you, however there is an issue that appeared after the 06.19 version for me that is still persistent, the dashboard widget is stuck in "Retrievening stream data..." If I click on the stream icon in the widget it show the correct data but the widget simply refuses to update. Tried different browsers, Edge and Chrome with the same result.

I will look into this as well.  Have to run some errands, but will take a look later today.

One more issue, the one from before.

 

plex.js:24 Uncaught TypeError: Cannot read property 'uri' of null
    at plex.js:24
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (plex.js:23)
    at i (dynamix.js?v=1583697979:4)
    at Object.fireWith [as resolveWith] (dynamix.js?v=1583697979:4)
    at z (dynamix.js?v=1583697979:4)
    at XMLHttpRequest.<anonymous> (dynamix.js?v=1583697979:4)

I looked into the code, there is a proton object inside the server list. so that makes the script break.

  • Author
25 minutes ago, mangavalk said:

One more issue, the one from before.

 


plex.js:24 Uncaught TypeError: Cannot read property 'uri' of null
    at plex.js:24
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (plex.js:23)
    at i (dynamix.js?v=1583697979:4)
    at Object.fireWith [as resolveWith] (dynamix.js?v=1583697979:4)
    at z (dynamix.js?v=1583697979:4)
    at XMLHttpRequest.<anonymous> (dynamix.js?v=1583697979:4)

I looked into the code, there is a proton object inside the server list. so that makes the script break.

What screen are you on when seeing this error?  Dashboard, settings or streams?

24 minutes ago, dorgan said:

What screen are you on when seeing this error?  Dashboard, settings or streams?

settings

function getServers(containerSelector, selected) {
    var url = '/plugins/plexstreams/getServers.php?useSsl=' + $('input[name="FORCE_PLEX_HTTPS"]:checked').val();
    var $host = $(containerSelector);
    $host.hide();
    $('.lds-dual-ring').show();
    selected = selected.split(',');
    $host.html('');
    $.get(url).done(function(data) {
        serverList = data.serverList;
        for (var id in serverList) {
            if (serverList.hasOwnProperty(id)) {
                var server = serverList[id];
                serverList[id].Connections.forEach(function(connection) {
		    if(connection != null)
                        $host.append('<input type="checkbox" onchange="updateServerList(\'HOST\')" name="hostbox" id="' + connection.uri + '" data-id="' + id + '"' + (selected.indexOf(connection.uri) > -1 ? ' checked="checked"' : '' ) + ' value="' + connection.uri + '"/> <label for="' + connection.uri + '"> ' + server.Name + ' (' +  connection.address + ':' + connection.port + ')' + (connection.local === '0' ? ' - Remote' : '') + '</label><br/>');
                });
            }
        }
        $host.show();
        $('.lds-dual-ring').hide();
    });
}

Added this change in plex.js fixes it :)

  • Author
2 hours ago, mangavalk said:

One more issue, the one from before.

 


plex.js:24 Uncaught TypeError: Cannot read property 'uri' of null
    at plex.js:24
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (plex.js:23)
    at i (dynamix.js?v=1583697979:4)
    at Object.fireWith [as resolveWith] (dynamix.js?v=1583697979:4)
    at z (dynamix.js?v=1583697979:4)
    at XMLHttpRequest.<anonymous> (dynamix.js?v=1583697979:4)

I looked into the code, there is a proton object inside the server list. so that makes the script break.

This is now fixed in 2020.06.20a

  • Author
4 hours ago, bunkermagnus said:

 

Thank you, however there is an issue that appeared after the 06.19 version for me that is still persistent, the dashboard widget is stuck in "Retrievening stream data..." If I click on the stream icon in the widget it show the correct data but the widget simply refuses to update. Tried different browsers, Edge and Chrome with the same result.

this is now fixed with 2020.06.20a

sorry to bother but:
 

plugin: downloading: https://raw.githubusercontent.com/dorgan/Unraid-plexstreams/master/archive/plexstreams-2020.06.20a-x86_64-1.txz ... failed (Invalid URL / Server error response)
plugin: wget: https://raw.githubusercontent.com/dorgan/Unraid-plexstreams/master/archive/plexstreams-2020.06.20a-x86_64-1.txz download failure (Invalid URL / Server error response)

 

edit: works now:)

Edited by mangavalk

  • Author
13 minutes ago, mangavalk said:

sorry to bother but:
 


plugin: downloading: https://raw.githubusercontent.com/dorgan/Unraid-plexstreams/master/archive/plexstreams-2020.06.20a-x86_64-1.txz ... failed (Invalid URL / Server error response)
plugin: wget: https://raw.githubusercontent.com/dorgan/Unraid-plexstreams/master/archive/plexstreams-2020.06.20a-x86_64-1.txz download failure (Invalid URL / Server error response)

 

Oooo, oh no, guess it would help if i pushed the packages out there.  Should be working now.

  • Author

Pushed out a new update, so that the streams, the existing streams will get their time played, transcoding and other status updated on the fly.  I will have new streams added to the page in a future release.

Seems to work fine.  

 

Small request:  Can you add the full User Name of the users using the streams ?  Just a big "F" or big "S" for lets say "Frank" or "Susan" is not useful when you also have a "Sylvain" and "Frodo" user... :)

  • Author
21 minutes ago, Pducharme said:

Seems to work fine.  

 

Small request:  Can you add the full User Name of the users using the streams ?  Just a big "F" or big "S" for lets say "Frank" or "Susan" is not useful when you also have a "Sylvain" and "Frodo" user... :)

That letter is the user avatar given by Plex when the user doesnt set their own avatar.  Also if you hover over that icon, it should show the full username.

  • Author

New update this morning.  Streams now fully update old and new on both the dashboard and stream page.

On 6/26/2020 at 9:22 AM, dorgan said:

New update this morning.  Streams now fully update old and new on both the dashboard and stream page.

Thanks @dorgan for the nice Plugin.

 

I stumbled upon this looking for dashboard widgets.

 

I do see an issue on the PLEX_STREAMS tab when I open the details by clicking on playing media name. Image👇

 

image.thumb.png.38f0086136cd7e9c21d2e0591268a21d.png

 

Although below this the media info is still displayed. Not sure what is needed here.

 

Also, using SSL seems a bit slower than otherwise.

 

Also, the dashboard widget text goes outside the bounds. Image 👇

 

image.thumb.png.1c1ada8683cb8ed7563dbd6fa678eb21.png

 

Cheers!

Edited by Shomil Saini
SSL/Dashboard_Text

  • Author
13 minutes ago, Shomil Saini said:

Thanks @dorgan for the nice Plugin.

 

I stumbled upon this looking for dashboard widgets.

 

I do see an issue on the PLEX_STREAMS tab when I open the details by clicking on playing media name. Image👇

 

image.thumb.png.38f0086136cd7e9c21d2e0591268a21d.png

 

Although below this the media info is still displayed. Not sure what is needed here.

 

Also, using SSL seems a bit slower than otherwise.

 

Also, the dashboard widget text goes outside the bounds. Image 👇

 

image.thumb.png.1c1ada8683cb8ed7563dbd6fa678eb21.png

 

Cheers!

Hmmm looks like a couple different bugs.  I'll look into these this week.

  • Author
15 hours ago, Shomil Saini said:

Thanks @dorgan for the nice Plugin.

 

I stumbled upon this looking for dashboard widgets.

 

I do see an issue on the PLEX_STREAMS tab when I open the details by clicking on playing media name. Image👇

 

image.thumb.png.38f0086136cd7e9c21d2e0591268a21d.png

 

Although below this the media info is still displayed. Not sure what is needed here.

 

Also, using SSL seems a bit slower than otherwise.

 

Also, the dashboard widget text goes outside the bounds. Image 👇

 

image.thumb.png.1c1ada8683cb8ed7563dbd6fa678eb21.png

 

Cheers!

Warning issue should now be resolved, with version 2020.06.30b.  Also, so should the dashboard display, but let me know if not and I will down grade to previous version of unraid without translation support

Handy little gem!  I did notice that after a stream is finished and/or user is logged off, on the Dashboard, the section still shows the active user(s) with a playback well exceeding the length of the stream.  IE: A TV show with 43:15 runtime, the user has logged off ages ago, and the dashboard still shows as logged in, playback going on at 2:13:18 for the 45min show...

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.