2022-01-24 05:42:41 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Text.Json.Serialization;
|
2017-08-14 02:58:42 +00:00
|
|
|
using NzbDrone.Core.Qualities;
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Parser.Model
|
|
|
|
{
|
|
|
|
public class ParsedAlbumInfo
|
|
|
|
{
|
2023-05-08 01:55:00 +00:00
|
|
|
public string ReleaseTitle { get; set; }
|
2017-08-14 02:58:42 +00:00
|
|
|
public string AlbumTitle { get; set; }
|
|
|
|
public string ArtistName { get; set; }
|
2023-04-19 23:00:05 +00:00
|
|
|
public string AlbumType { get; set; }
|
2017-08-14 02:58:42 +00:00
|
|
|
public ArtistTitleInfo ArtistTitleInfo { get; set; }
|
|
|
|
public QualityModel Quality { get; set; }
|
|
|
|
public string ReleaseDate { get; set; }
|
2017-12-12 02:00:45 +00:00
|
|
|
public bool Discography { get; set; }
|
2018-02-10 04:03:12 +00:00
|
|
|
public int DiscographyStart { get; set; }
|
|
|
|
public int DiscographyEnd { get; set; }
|
2017-08-14 02:58:42 +00:00
|
|
|
public string ReleaseGroup { get; set; }
|
|
|
|
public string ReleaseHash { get; set; }
|
2017-11-16 02:24:33 +00:00
|
|
|
public string ReleaseVersion { get; set; }
|
2022-01-24 05:42:41 +00:00
|
|
|
|
|
|
|
[JsonIgnore]
|
|
|
|
public Dictionary<string, object> ExtraInfo { get; set; } = new Dictionary<string, object>();
|
2017-08-14 02:58:42 +00:00
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
{
|
2023-05-23 10:52:39 +00:00
|
|
|
var albumString = "[Unknown Album]";
|
2017-08-14 02:58:42 +00:00
|
|
|
|
2020-01-03 12:49:24 +00:00
|
|
|
if (AlbumTitle != null)
|
2017-08-14 02:58:42 +00:00
|
|
|
{
|
|
|
|
albumString = string.Format("{0}", AlbumTitle);
|
|
|
|
}
|
|
|
|
|
|
|
|
return string.Format("{0} - {1} {2}", ArtistName, albumString, Quality);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|