2017-04-28 22:05:35 +00:00
|
|
|
using System;
|
|
|
|
using System.Linq;
|
2020-01-03 12:49:24 +00:00
|
|
|
using NzbDrone.Core.Qualities;
|
2017-04-28 22:05:35 +00:00
|
|
|
|
|
|
|
namespace NzbDrone.Core.Parser.Model
|
|
|
|
{
|
|
|
|
public class ParsedTrackInfo
|
|
|
|
{
|
2022-11-22 01:51:00 +00:00
|
|
|
// public int TrackNumber { get; set; }
|
2017-07-03 18:39:06 +00:00
|
|
|
public string Title { get; set; }
|
2019-02-16 14:49:24 +00:00
|
|
|
public string CleanTitle { get; set; }
|
2017-04-28 22:05:35 +00:00
|
|
|
public string ArtistTitle { get; set; }
|
|
|
|
public string AlbumTitle { get; set; }
|
2017-05-11 18:43:05 +00:00
|
|
|
public ArtistTitleInfo ArtistTitleInfo { get; set; }
|
2017-09-13 03:28:45 +00:00
|
|
|
public string ArtistMBId { get; set; }
|
|
|
|
public string AlbumMBId { get; set; }
|
2018-03-15 02:01:51 +00:00
|
|
|
public string ReleaseMBId { get; set; }
|
2019-02-16 14:49:24 +00:00
|
|
|
public string RecordingMBId { get; set; }
|
2017-09-13 03:28:45 +00:00
|
|
|
public string TrackMBId { get; set; }
|
2017-11-16 02:24:33 +00:00
|
|
|
public int DiscNumber { get; set; }
|
2019-02-16 14:49:24 +00:00
|
|
|
public int DiscCount { get; set; }
|
|
|
|
public IsoCountry Country { get; set; }
|
|
|
|
public uint Year { get; set; }
|
|
|
|
public string Label { get; set; }
|
|
|
|
public string CatalogNumber { get; set; }
|
|
|
|
public string Disambiguation { get; set; }
|
|
|
|
public TimeSpan Duration { get; set; }
|
2017-04-28 22:05:35 +00:00
|
|
|
public QualityModel Quality { get; set; }
|
2019-02-16 14:49:24 +00:00
|
|
|
public MediaInfoModel MediaInfo { get; set; }
|
2017-05-11 18:43:05 +00:00
|
|
|
public int[] TrackNumbers { get; set; }
|
2017-04-28 22:05:35 +00:00
|
|
|
public string ReleaseGroup { get; set; }
|
|
|
|
public string ReleaseHash { get; set; }
|
|
|
|
|
|
|
|
public ParsedTrackInfo()
|
|
|
|
{
|
2023-04-12 02:31:27 +00:00
|
|
|
TrackNumbers = Array.Empty<int>();
|
2017-04-28 22:05:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
{
|
2017-09-13 03:28:45 +00:00
|
|
|
string trackString = "[Unknown Track]";
|
2017-04-28 22:05:35 +00:00
|
|
|
|
2017-05-11 18:43:05 +00:00
|
|
|
if (TrackNumbers != null && TrackNumbers.Any())
|
2017-04-28 22:05:35 +00:00
|
|
|
{
|
2018-02-16 04:03:44 +00:00
|
|
|
trackString = string.Format("{0}", string.Join("-", TrackNumbers.Select(c => c.ToString("00"))));
|
2017-04-28 22:05:35 +00:00
|
|
|
}
|
|
|
|
|
2018-02-16 04:03:44 +00:00
|
|
|
return string.Format("{0} - {1} - {2}:{3} {4}: {5}", ArtistTitle, AlbumTitle, DiscNumber, trackString, Title, Quality);
|
2017-04-28 22:05:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|