From 65b008b75aa2463303c7bdc5fc8231e9132ebe5a Mon Sep 17 00:00:00 2001 From: kaso17 Date: Sun, 25 Mar 2018 16:55:39 +0200 Subject: [PATCH] TorrentSyndikat: fix time parsing --- src/Jackett.Common/Indexers/TorrentSyndikat.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Indexers/TorrentSyndikat.cs b/src/Jackett.Common/Indexers/TorrentSyndikat.cs index f3035a9ae..cc1f44091 100644 --- a/src/Jackett.Common/Indexers/TorrentSyndikat.cs +++ b/src/Jackett.Common/Indexers/TorrentSyndikat.cs @@ -196,7 +196,8 @@ namespace Jackett.Common.Indexers release.Guid = release.Comments; var torrent_details = descCol.Cq().Find(".torrent_details").Get(0); - var dateStr = torrent_details.ChildNodes.ElementAt(torrent_details.ChildNodes.Length - 3).Cq().Text().Replace("von", "").Trim(); + var rawDateStr = torrent_details.ChildNodes.ElementAt(torrent_details.ChildNodes.Length - 3).Cq().Text(); + var dateStr = rawDateStr.Trim().Replace("von", "").Trim(); DateTime dateGerman; if (dateStr.StartsWith("Heute ")) dateGerman = DateTime.SpecifyKind(DateTime.UtcNow.Date, DateTimeKind.Unspecified) + TimeSpan.Parse(dateStr.Split(' ')[1]);