It is currently April 18th, 2024, 2:56 am

Plugin NowPlayingPlex

Share and get help with Plugins and Addons
mistic100
Posts: 35
Joined: October 12th, 2014, 5:27 pm

Plugin NowPlayingPlex

Post by mistic100 »

Hello everyone.

I just finished the first version of a plugin able to query the current playing music on a Plex server.
It works globally like the NowPlaying measure with a few thing missing (a bunch of `PlayerType` not available and no bangs).

It was only tested locally but should works on a remote server too.

Complete documentation and download here https://github.com/mistic100/Rainmeter-NowPlayingPlex

Example usage :

Code: Select all

[Rainmeter]
Update=1000

[Variables]
PlexToken=XXXXXX
PlexUsername=JohnDoe

[MeasureTitlePlex]
Measure=Plugin
Plugin=NowPlayingPlex
PlexToken=#PlexToken#
PlexUsername=#PlexUsername#
PlayerType=Title

[MeasureArtistPlex]
Measure=Plugin
Plugin=NowPlayingPlex
PlayerName=MeasureTitlePlex
PlayerType=Artist

[MeasureAlbumPlex]
Measure=Plugin
Plugin=NowPlayingPlex
PlayerName=MeasureTitlePlex
PlayerType=Album

[MeasureDurationPlex]
Measure=Plugin
Plugin=NowPlayingPlex
PlayerName=MeasureTitlePlex
PlayerType=Duration
Substitute="00:00":""
mistic100
Posts: 35
Joined: October 12th, 2014, 5:27 pm

Re: Plugin NowPlayingPlex

Post by mistic100 »

After getting some sleep I realized the current playback is indeed available.

So version 1.0.1 introduces the `Position` and `Progress` player types.
chasepeeler
Posts: 1
Joined: October 14th, 2022, 3:21 pm

Re: Plugin NowPlayingPlex

Post by chasepeeler »

Does this only show the music that is playing, or will it show other media as well? Does it show everything playing? I'd love a skin where I can see everything currently being played without having to go to the plex dashboard or load up tautulli.
mistic100
Posts: 35
Joined: October 12th, 2014, 5:27 pm

Re: Plugin NowPlayingPlex

Post by mistic100 »

chasepeeler wrote: October 14th, 2022, 3:24 pm Does this only show the music that is playing, or will it show other media as well? Does it show everything playing? I'd love a skin where I can see everything currently being played without having to go to the plex dashboard or load up tautulli.
It only returns the first media of type "Track" (music) https://github.com/mistic100/Rainmeter-NowPlayingPlex/blob/main/PluginNowPlayingPlex.cs#L183-L184

Changes could be made to return all playing media but I don't really know how this would be implemented... A single measure returns a line-break separated list ? Use multiple child measures with an "Index" property ?

Please open an issue on Github if you have a usage example, I will see if I can implement it.