Portable client library for accessing Plex Media Server content library
Install nuget package from the OneCog package repository:
Install-Package OneCog.Io.Plex -Source https://www.myget.org/F/onecog/api/v2/package
Use the following code to instantiate a server:
OneCog.Io.Plex.IServer server = OneCog.Io.Plex.Server.Create("[Plex Host Name or IP]", [Plex Port]);
Retrieve all artists with:
IList<OneCog.Io.Plex.Music.IArtist> artists = await server.Music.Artists.All.ToList();
Retrieve all albums with:
IList<OneCog.Io.Plex.Music.IAlbum> albumss = await server.Music.Albums.All.ToList();
NOTE: All access to the metadata library is via IObservable instances. This allows for improved asynchronous behaviour, buffering and composition with other observable sources.