Fixed: Error message when adding a Plex server without a TV library

This commit is contained in:
Mark McDowall 2017-06-04 21:10:56 -07:00
parent 6dcb7768a9
commit 416e9abca5
No known key found for this signature in database
GPG Key ID: D4CEFA9A718052E0
1 changed files with 10 additions and 0 deletions

View File

@ -11,6 +11,11 @@ namespace NzbDrone.Core.Notifications.Plex.Models
public class PlexSection
{
public PlexSection()
{
Locations = new List<PlexSectionLocation>();
}
[JsonProperty("key")]
public int Id { get; set; }
@ -23,6 +28,11 @@ namespace NzbDrone.Core.Notifications.Plex.Models
public class PlexSectionsContainer
{
public PlexSectionsContainer()
{
Sections = new List<PlexSection>();
}
[JsonProperty("Directory")]
public List<PlexSection> Sections { get; set; }
}