mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
Fixed broken mapping tests
This commit is contained in:
parent
92cb702b9c
commit
bb65e83012
@ -14,9 +14,24 @@ public class ParsedEpisodeInfo
|
|||||||
public int[] AbsoluteEpisodeNumbers { get; set; }
|
public int[] AbsoluteEpisodeNumbers { get; set; }
|
||||||
public String AirDate { get; set; }
|
public String AirDate { get; set; }
|
||||||
public Language Language { get; set; }
|
public Language Language { get; set; }
|
||||||
|
|
||||||
public bool FullSeason { get; set; }
|
public bool FullSeason { get; set; }
|
||||||
|
|
||||||
|
public ParsedEpisodeInfo()
|
||||||
|
{
|
||||||
|
EpisodeNumbers = new int[0];
|
||||||
|
AbsoluteEpisodeNumbers = new int[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool IsDaily()
|
||||||
|
{
|
||||||
|
return !String.IsNullOrWhiteSpace(AirDate);
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool IsAbsoluteNumbering()
|
||||||
|
{
|
||||||
|
return AbsoluteEpisodeNumbers.Any();
|
||||||
|
}
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
string episodeString = "[Unknown Episode]";
|
string episodeString = "[Unknown Episode]";
|
||||||
@ -36,15 +51,5 @@ public override string ToString()
|
|||||||
|
|
||||||
return string.Format("{0} - {1} {2}", SeriesTitle, episodeString, Quality);
|
return string.Format("{0} - {1} {2}", SeriesTitle, episodeString, Quality);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool IsDaily()
|
|
||||||
{
|
|
||||||
return !String.IsNullOrWhiteSpace(AirDate);
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsAbsoluteNumbering()
|
|
||||||
{
|
|
||||||
return AbsoluteEpisodeNumbers.Any();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user