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
- Host: GitHub
- URL: https://github.com/ibebbs/onecog.io.plex
- Owner: ibebbs
- License: mit
- Created: 2015-10-26T08:01:59.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-05T08:54:04.000Z (over 10 years ago)
- Last Synced: 2025-05-25T08:41:36.451Z (about 1 year ago)
- Language: C#
- Size: 1.25 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
README
# OneCog.Io.Plex
Portable client library for accessing Plex Media Server content library
[](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.