mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-13 00:10:58 +02:00
Fixed: MaM AuthorInfo Object
This commit is contained in:
parent
9d2d308b95
commit
71e132f9a4
1 changed files with 3 additions and 15 deletions
|
|
@ -293,15 +293,9 @@ public IList<ReleaseInfo> 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<string, string> 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; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue