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 @@ public IList ParseResponse(IndexerResponse indexerResponse) 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 @@ public class MyAnonamouseTorrent 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 @@ public class MyAnonamouseTorrent 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; }