mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-12-27 08:44:34 +01:00
@@ -644,7 +644,16 @@ namespace NzbDrone.Core.Parser
|
||||
airmonth = tempDay;
|
||||
}
|
||||
|
||||
var airDate = new DateTime(airYear, airmonth, airday);
|
||||
DateTime airDate;
|
||||
|
||||
try
|
||||
{
|
||||
airDate = new DateTime(airYear, airmonth, airday);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw new InvalidDateException("Invalid date found: {0}-{1}-{2}", airYear, airmonth, airday);
|
||||
}
|
||||
|
||||
//Check if episode is in the future (most likely a parse error)
|
||||
if (airDate > DateTime.Now.AddDays(1).Date || airDate < new DateTime(1970, 1, 1))
|
||||
|
||||
Reference in New Issue
Block a user