2013-07-15 23:53:06 +00:00
|
|
|
using System;
|
2013-04-15 01:41:39 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using NzbDrone.Core.Tv;
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Parser.Model
|
|
|
|
{
|
|
|
|
public class LocalEpisode
|
|
|
|
{
|
2013-09-14 00:41:14 +00:00
|
|
|
public String Path { get; set; }
|
2013-07-15 23:53:06 +00:00
|
|
|
public Int64 Size { get; set; }
|
2013-07-08 03:17:07 +00:00
|
|
|
public ParsedEpisodeInfo ParsedEpisodeInfo { get; set; }
|
2013-07-06 21:47:49 +00:00
|
|
|
public Series Series { get; set; }
|
2013-04-15 01:41:39 +00:00
|
|
|
public List<Episode> Episodes { get; set; }
|
|
|
|
public QualityModel Quality { get; set; }
|
2013-09-14 00:41:14 +00:00
|
|
|
public Boolean ExistingFile { get; set; }
|
2013-07-15 23:53:06 +00:00
|
|
|
|
|
|
|
public int SeasonNumber
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return Episodes.Select(c => c.SeasonNumber).Distinct().Single();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-07-13 08:11:04 +00:00
|
|
|
public override string ToString()
|
|
|
|
{
|
|
|
|
return Path;
|
|
|
|
}
|
2013-04-15 01:41:39 +00:00
|
|
|
}
|
|
|
|
}
|