From 71e132f9a439d0229539bf7eb6fb090fc08ca685 Mon Sep 17 00:00:00 2001 From: Qstick Date: Tue, 9 Mar 2021 22:35:06 -0500 Subject: [PATCH] Fixed: MaM AuthorInfo Object --- .../Indexers/Definitions/MyAnonamouse.cs | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/MyAnonamouse.cs b/src/NzbDrone.Core/Indexers/Definitions/MyAnonamouse.cs index 56b332916..ab2da7df0 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/MyAnonamouse.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/MyAnonamouse.cs @@ -293,15 +293,9 @@ namespace NzbDrone.Core.Indexers.Definitions var authorInfo = item.AuthorInfo; var author = string.Empty; - if (authorInfo != null) + if (authorInfo != null && authorInfo.Count > 0) { - try - { - author = authorInfo.First + " " + authorInfo.Last; - } - catch (Exception) - { - } + author = authorInfo.First().Value; } if (author != null) @@ -398,7 +392,7 @@ namespace NzbDrone.Core.Indexers.Definitions public string Title { get; set; } [JsonProperty(PropertyName = "author_info")] - public MyAnonamouseAuthorInfo AuthorInfo { get; set; } + public Dictionary AuthorInfo { get; set; } [JsonProperty(PropertyName = "lang_code")] public string LangCode { get; set; } @@ -416,12 +410,6 @@ namespace NzbDrone.Core.Indexers.Definitions public string Size { get; set; } } - public class MyAnonamouseAuthorInfo - { - public string First { get; set; } - public string Last { get; set; } - } - public class MyAnonamouseResponse { public string Error { get; set; }