mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-30 15:37:55 +02:00
Fixed: MaM AuthorInfo Object
This commit is contained in:
@@ -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<string, string> 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; }
|
||||
|
Reference in New Issue
Block a user