From 97e9f86538aa4f25029a39faebcf83b9df110335 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 11 Jul 2015 13:26:57 -0600 Subject: [PATCH] TorrentShack fix for an unlikely bug --- src/Jackett/Indexers/TorrentShack.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Jackett/Indexers/TorrentShack.cs b/src/Jackett/Indexers/TorrentShack.cs index b3de5973d..d7b88c705 100644 --- a/src/Jackett/Indexers/TorrentShack.cs +++ b/src/Jackett/Indexers/TorrentShack.cs @@ -141,7 +141,9 @@ namespace Jackett.Indexers var dateParts = dateStr.Split(' '); var dateValue = ParseUtil.CoerceInt(dateParts[0]); TimeSpan ts = TimeSpan.Zero; - if (dateStr.Contains("sec")) + if (dateStr.Contains("Just now")) + ts = TimeSpan.Zero; + else if (dateStr.Contains("sec")) ts = TimeSpan.FromSeconds(dateValue); else if (dateStr.Contains("min")) ts = TimeSpan.FromMinutes(dateValue);