mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Add support for parsing "now" time strings (#748)
This commit is contained in:
@@ -121,6 +121,11 @@ namespace Jackett.Utils
|
|||||||
str = ParseUtil.NormalizeSpace(str);
|
str = ParseUtil.NormalizeSpace(str);
|
||||||
Match match;
|
Match match;
|
||||||
|
|
||||||
|
if(str.ToLower().Contains("now"))
|
||||||
|
{
|
||||||
|
return DateTime.UtcNow;
|
||||||
|
}
|
||||||
|
|
||||||
// ... ago
|
// ... ago
|
||||||
match = timeAgoRegexp.Match(str);
|
match = timeAgoRegexp.Match(str);
|
||||||
if (match.Success)
|
if (match.Success)
|
||||||
|
Reference in New Issue
Block a user