|
|
@ -214,16 +214,13 @@ namespace NzbDrone.Core.Parser
|
|
|
|
return dt;
|
|
|
|
return dt;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
// try parsing the str as an unix timestamp
|
|
|
|
// try parsing the str as an unix timestamp
|
|
|
|
var unixTimeStamp = long.Parse(str);
|
|
|
|
if (long.TryParse(str, out var unixTimeStamp))
|
|
|
|
|
|
|
|
{
|
|
|
|
return UnixTimestampToDateTime(unixTimeStamp);
|
|
|
|
return UnixTimestampToDateTime(unixTimeStamp);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (FormatException)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
// it wasn't a timestamp, continue....
|
|
|
|
// it wasn't a timestamp, continue....
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// add missing year
|
|
|
|
// add missing year
|
|
|
|
match = _MissingYearRegexp.Match(str);
|
|
|
|
match = _MissingYearRegexp.Match(str);
|
|
|
|