diff --git a/src/NzbDrone.Core/Notifications/Plex/Models/PlexSection.cs b/src/NzbDrone.Core/Notifications/Plex/Models/PlexSection.cs index 87b5e9faa..71aab1988 100644 --- a/src/NzbDrone.Core/Notifications/Plex/Models/PlexSection.cs +++ b/src/NzbDrone.Core/Notifications/Plex/Models/PlexSection.cs @@ -17,12 +17,13 @@ namespace NzbDrone.Core.Notifications.Plex.Models public string Type { get; set; } public string Language { get; set; } - public PlexSectionLocation Location { get; set; } + [JsonProperty("Location")] + public List Locations { get; set; } } public class PlexSectionsContainer { - [JsonProperty("Metadata")] + [JsonProperty("Directory")] public List Sections { get; set; } } diff --git a/src/NzbDrone.Core/Notifications/Plex/Models/PlexSectionItem.cs b/src/NzbDrone.Core/Notifications/Plex/Models/PlexSectionItem.cs index 07ce5dfa2..1531d677d 100644 --- a/src/NzbDrone.Core/Notifications/Plex/Models/PlexSectionItem.cs +++ b/src/NzbDrone.Core/Notifications/Plex/Models/PlexSectionItem.cs @@ -13,7 +13,8 @@ namespace NzbDrone.Core.Notifications.Plex.Models public class PlexSectionResponse { - public List Metadata { get; set; } + [JsonProperty("Metadata")] + public List Items { get; set; } } public class PlexSectionResponseLegacy diff --git a/src/NzbDrone.Core/Notifications/Plex/PlexServerProxy.cs b/src/NzbDrone.Core/Notifications/Plex/PlexServerProxy.cs index 5ad44f555..14098231f 100644 --- a/src/NzbDrone.Core/Notifications/Plex/PlexServerProxy.cs +++ b/src/NzbDrone.Core/Notifications/Plex/PlexServerProxy.cs @@ -53,7 +53,7 @@ namespace NzbDrone.Core.Notifications.Plex { Id = s.Id, Language = s.Language, - Location = s.Locations.FirstOrDefault(), + Locations = s.Locations, Type = s.Type }) .ToList(); @@ -151,7 +151,7 @@ namespace NzbDrone.Core.Notifications.Plex { items = Json.Deserialize>(response.Content) .MediaContainer - .Metadata; + .Items; } if (items == null || items.Empty())