torrentsyndikat: Fix for Issue #2788 Exception (torrentsyndikat): String was not recognized as a valid TimeSpan.: Parse error (Test) (#2795)

This commit is contained in:
Fippsy 2018-03-25 16:51:53 +02:00 committed by kaso17
parent 9071b1fe29
commit dc8d1698f0
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ 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 dateStr = torrent_details.ChildNodes.ElementAt(torrent_details.ChildNodes.Length - 3).Cq().Text().Replace("von", "").Trim();
DateTime dateGerman;
if (dateStr.StartsWith("Heute "))
dateGerman = DateTime.SpecifyKind(DateTime.UtcNow.Date, DateTimeKind.Unspecified) + TimeSpan.Parse(dateStr.Split(' ')[1]);