[Plugin] Plex Streams


Recommended Posts

  • 2 weeks later...
On 6/17/2023 at 11:03 AM, Zonediver said:

Request:

24h format for the End-Time.

 

The plugin shows the time at 12h format - but nobody uses that in Europe.

My server is set to 24h format, but plexstream? How can i change this?

 

grafik.png.51239b42923014b4dad0664bf3a796a4.png

Updated plugin out today that respects the time display settings (2023.06.28a)

Link to comment

OK i've identified the issue.  @bonienl is there a way to get the global $display variable populated for a PHP page that is not a .page file?  Seems that for just standard PHp files, the global $display is not populated and thats how I am checking what the settings are, or is there another way I should be checking for the settings?

Link to comment

You need to read the Dynamix variables. This is done as given in the code below

 

$docroot = $docroot ?? $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
require_once "$docroot/webGui/include/Wrappers.php";
extract(parse_plugin_cfg('dynamix',true));

 

After this the variable $display is available as a global variable.

 

Link to comment
28 minutes ago, bonienl said:

You need to read the Dynamix variables. This is done as given in the code below

 

$docroot = $docroot ?? $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
require_once "$docroot/webGui/include/Wrappers.php";
extract(parse_plugin_cfg('dynamix',true));

 

After this the variable $display is available as a global variable.

 

Thanks, it may be useful in future releases to actually provide functions to retrieve these settings.

Link to comment
2 hours ago, Zonediver said:

Well... i think, there is an other problem...

I saw this several times today...

It seems the plugin did not delete played streams...

Two active streams but four shown 😉

 

grafik.png.54c7eeb4a259b5c05391cdeedf8dc147.png

 

Can you please show me your settings page, be sure to blue out your Plex API key.

Link to comment
On 7/1/2023 at 10:38 AM, Zonediver said:

So - here we go

A "new" thing:

Its only working (now), when i put in a custom server IP - but ok - works.

But i am not sure if this resolves the issue with the "old Streams" as well.

 

Screenshot 2023-07-01 163643.jpg

 

Is the list of servers not populating for you?  If not you may need to get a new plex token, as the plex token should be getting used to pull the list of servers on your account.

Link to comment
6 hours ago, dorgan said:

 

Is the list of servers not populating for you?  If not you may need to get a new plex token, as the plex token should be getting used to pull the list of servers on your account.

 

Yep i did this already and now its working again.

Regarding the old streams, it seems, its a Cache issue of FireFox.

When i do a reload of the page, the old streams are gone 👍

Link to comment
On 7/2/2023 at 11:46 PM, Zonediver said:

 

Yep i did this already and now its working again.

Regarding the old streams, it seems, its a Cache issue of FireFox.

When i do a reload of the page, the old streams are gone 👍

I'll try looking at this in firefox, but if you encounter this again before refreshing can you see if there are any errors in the developer console for firefox??

Link to comment
4 hours ago, dorgan said:

I'll try looking at this in firefox, but if you encounter this again before refreshing can you see if there are any errors in the developer console for firefox??

 

FYI: Chrome is doing the same...

If the Dashboard is open and a user is opening a new plex-stream - the old stream remains and a new one aproches. But maybe also a cache issue...

Link to comment
  • 3 weeks later...
On 7/7/2023 at 12:01 PM, dorgan said:

I'll try looking at this in firefox, but if you encounter this again before refreshing can you see if there are any errors in the developer console for firefox??

 

Weird error - if I use Chrome, which is already signed into Plex, it does not fetch a token correctly.

 

I used a new Browser - edge, did a fresh login and it retrieved a working token.

Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.