mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-29 03:05:49 +00:00
31 lines
No EOL
800 B
C#
31 lines
No EOL
800 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using NzbDrone.Core.Tv;
|
|
using System.Linq;
|
|
|
|
namespace NzbDrone.Core.Parser.Model
|
|
{
|
|
public class LocalEpisode
|
|
{
|
|
public String Path { get; set; }
|
|
public Int64 Size { get; set; }
|
|
public ParsedEpisodeInfo ParsedEpisodeInfo { get; set; }
|
|
public Series Series { get; set; }
|
|
public List<Episode> Episodes { get; set; }
|
|
public QualityModel Quality { get; set; }
|
|
public Boolean ExistingFile { get; set; }
|
|
|
|
public int SeasonNumber
|
|
{
|
|
get
|
|
{
|
|
return Episodes.Select(c => c.SeasonNumber).Distinct().Single();
|
|
}
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return Path;
|
|
}
|
|
}
|
|
} |