diff --git a/src/NzbDrone.Core/Notifications/Plex/Models/PlexSectionItem.cs b/src/NzbDrone.Core/Notifications/Plex/Models/PlexSectionItem.cs index 009baed7b..07ce5dfa2 100644 --- a/src/NzbDrone.Core/Notifications/Plex/Models/PlexSectionItem.cs +++ b/src/NzbDrone.Core/Notifications/Plex/Models/PlexSectionItem.cs @@ -13,7 +13,7 @@ public class PlexSectionItem public class PlexSectionResponse { - public List Items { get; set; } + public List Metadata { get; set; } } public class PlexSectionResponseLegacy diff --git a/src/NzbDrone.Core/Notifications/Plex/PlexServerProxy.cs b/src/NzbDrone.Core/Notifications/Plex/PlexServerProxy.cs index 0386090cf..5ad44f555 100644 --- a/src/NzbDrone.Core/Notifications/Plex/PlexServerProxy.cs +++ b/src/NzbDrone.Core/Notifications/Plex/PlexServerProxy.cs @@ -99,10 +99,13 @@ public string Version(PlexServerSettings settings) if (response.Content.Contains("_children")) { - return Json.Deserialize(response.Content).Version; + return Json.Deserialize(response.Content) + .Version; } - return Json.Deserialize>(response.Content).MediaContainer.Version; + return Json.Deserialize>(response.Content) + .MediaContainer + .Version; } public List Preferences(PlexServerSettings settings) @@ -116,10 +119,13 @@ public List Preferences(PlexServerSettings settings) if (response.Content.Contains("_children")) { - return Json.Deserialize(response.Content).Preferences; + return Json.Deserialize(response.Content) + .Preferences; } - return Json.Deserialize>(response.Content).MediaContainer.Preferences; + return Json.Deserialize>(response.Content) + .MediaContainer + .Preferences; } public int? GetMetadataId(int sectionId, int tvdbId, string language, PlexServerSettings settings) @@ -143,8 +149,9 @@ public List Preferences(PlexServerSettings settings) else { - items = Json.Deserialize(response.Content) - .Items; + items = Json.Deserialize>(response.Content) + .MediaContainer + .Metadata; } if (items == null || items.Empty())