Add support for parsing "now" time strings (#748)

This commit is contained in:
kaso17
2016-11-27 15:39:40 +01:00
committed by GitHub
parent d3161823ad
commit 09a2e8c084

View File

@@ -121,6 +121,11 @@ namespace Jackett.Utils
str = ParseUtil.NormalizeSpace(str);
Match match;
if(str.ToLower().Contains("now"))
{
return DateTime.UtcNow;
}
// ... ago
match = timeAgoRegexp.Match(str);
if (match.Success)