You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
980 B
36 lines
980 B
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using NzbDrone.Common.Extensions;
|
|
using NzbDrone.Core.Datastore;
|
|
|
|
namespace NzbDrone.Core.MovieStats
|
|
{
|
|
public class MovieStatistics : ResultSet
|
|
{
|
|
public int MovieId { get; set; }
|
|
public int MovieFileCount { get; set; }
|
|
public long SizeOnDisk { get; set; }
|
|
public string ReleaseGroupsString { get; set; }
|
|
|
|
public List<string> ReleaseGroups
|
|
{
|
|
get
|
|
{
|
|
var releaseGroups = new List<string>();
|
|
|
|
if (ReleaseGroupsString.IsNotNullOrWhiteSpace())
|
|
{
|
|
releaseGroups = ReleaseGroupsString
|
|
.Split('|')
|
|
.Distinct()
|
|
.Where(rg => rg.IsNotNullOrWhiteSpace())
|
|
.OrderBy(rg => rg)
|
|
.ToList();
|
|
}
|
|
|
|
return releaseGroups;
|
|
}
|
|
}
|
|
}
|
|
}
|