jensenkd / plex-api

.NET Core SDK for Plex Media Server
MIT License
87 stars 27 forks source link

Add a method to find the servers that are online #13

Closed seertenedos closed 3 years ago

seertenedos commented 4 years ago

It would be great if there was a plexApi.GetServers(user.AuthenticationToken) method or something that used it result that filtered the list to just servers currently online.

jfranpino commented 3 years ago

I think the same, it would be great

jensenkd commented 3 years ago

Does anyone know of a flag that exists to show the server is online or not. I'm not seeing anything, and we most likely have to attempt to connect.

jensenkd commented 3 years ago

This is fixed in 2.0.

account.ServerSummaries() will return ServerSummary objects that show all servers tied to account regardless of active status.

account.Servers() will only pull active servers.