An open API service indexing awesome lists of open source software.

https://github.com/ibebbs/onecog.io.plex

Portable client library for accessing Plex Media Server content library
https://github.com/ibebbs/onecog.io.plex

Last synced: 10 days ago
JSON representation

Portable client library for accessing Plex Media Server content library

Awesome Lists containing this project

README

          

# OneCog.Io.Plex
Portable client library for accessing Plex Media Server content library

[![OneCog.Io.Plex Build Status](https://www.myget.org/BuildSource/Badge/onecog?identifier=d44960cd-ebaa-41cd-9e30-3e0cb3743399)](https://www.myget.org/)

## Usage
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 artists = await server.Music.Artists.All.ToList();```

Retrieve all albums with:

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