mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
Fixed broken test.
Removed useless code in ParseEpisodeInfo. Added negative test case for ParseSeasonInfo.
This commit is contained in:
parent
60dc716e5e
commit
6131653da5
2 changed files with 20 additions and 24 deletions
|
@ -106,22 +106,15 @@ namespace NzbDrone.Core
|
|||
else
|
||||
{
|
||||
//Try to Parse as a daily show
|
||||
if (airyear > 0)
|
||||
var airmonth = Convert.ToInt32(match[0].Groups["airmonth"].Value);
|
||||
var airday = Convert.ToInt32(match[0].Groups["airday"].Value);
|
||||
|
||||
parsedEpisode = new EpisodeParseResult
|
||||
{
|
||||
var airmonth = Convert.ToInt32(match[0].Groups["airmonth"].Value);
|
||||
var airday = Convert.ToInt32(match[0].Groups["airday"].Value);
|
||||
|
||||
parsedEpisode = new EpisodeParseResult
|
||||
{
|
||||
CleanTitle = seriesName,
|
||||
AirDate = new DateTime(airyear, airmonth, airday),
|
||||
Language = ParseLanguage(simpleTitle)
|
||||
};
|
||||
}
|
||||
|
||||
//Something went wrong with this one... return null
|
||||
else
|
||||
return null;
|
||||
CleanTitle = seriesName,
|
||||
AirDate = new DateTime(airyear, airmonth, airday),
|
||||
Language = ParseLanguage(simpleTitle)
|
||||
};
|
||||
}
|
||||
|
||||
parsedEpisode.Quality = ParseQuality(title);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue