2018-06-02 01:59:54 +00:00
|
|
|
using System;
|
2017-06-13 02:02:17 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
2018-06-02 01:59:54 +00:00
|
|
|
using NzbDrone.Core.Download.Clients;
|
2017-06-13 02:02:17 +00:00
|
|
|
using NzbDrone.Core.Music;
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Parser.Model
|
|
|
|
{
|
|
|
|
public class RemoteAlbum
|
|
|
|
{
|
|
|
|
public ReleaseInfo Release { get; set; }
|
2017-08-14 02:58:42 +00:00
|
|
|
public ParsedAlbumInfo ParsedAlbumInfo { get; set; }
|
2017-06-13 02:02:17 +00:00
|
|
|
public Artist Artist { get; set; }
|
|
|
|
public List<Album> Albums { get; set; }
|
|
|
|
public bool DownloadAllowed { get; set; }
|
2018-06-02 01:59:54 +00:00
|
|
|
public TorrentSeedConfiguration SeedConfiguration { get; set; }
|
2019-02-23 22:39:11 +00:00
|
|
|
public int PreferredWordScore { get; set; }
|
|
|
|
|
|
|
|
public RemoteAlbum()
|
|
|
|
{
|
|
|
|
Albums = new List<Album>();
|
|
|
|
}
|
2017-06-13 02:02:17 +00:00
|
|
|
|
|
|
|
public bool IsRecentAlbum()
|
|
|
|
{
|
|
|
|
return Albums.Any(e => e.ReleaseDate >= DateTime.UtcNow.Date.AddDays(-14));
|
|
|
|
}
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
{
|
|
|
|
return Release.Title;
|
|
|
|
}
|
|
|
|
}
|
2018-06-02 01:59:54 +00:00
|
|
|
}
|