1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-02-07 23:12:44 +00:00
Lidarr/NzbDrone.Core/Model/EpisodeParseResult.cs
Mark McDowall e9ce98caa4 Removed Year from EpisodeParseResult (we never used it anyways).
Episode parsing REGEX will properly handle filenames with S01E01/1x01 naming.
Added REGEX to support seasons with more than 100 episodes (0-99)... Stupid soaps.
Title Normalizing REGEX will keep the year (has to start with 19 or 20 and be exactly 4 digits long)
2011-04-23 01:04:30 -07:00

33 lines
No EOL
905 B
C#

using System;
using System.Collections.Generic;
using NzbDrone.Core.Repository.Quality;
namespace NzbDrone.Core.Model
{
public class EpisodeParseResult
{
internal string CleanTitle { get; set; }
public int SeriesId { get; set; }
internal int SeasonNumber { get; set; }
internal List<int> Episodes { get; set; }
internal string EpisodeTitle { get; set; }
internal DateTime AirDate { get; set; }
public bool Proper { get; set; }
public QualityTypes Quality { get; set; }
public override string ToString()
{
if (Episodes == null)
return string.Format("Series:{0} Air Date:{1}", CleanTitle, AirDate.Date);
return string.Format("Series:{0} Season:{1} Episode:{2}", CleanTitle, SeasonNumber,
String.Join(",", Episodes));
}
}
}