mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
torrentsyndikat: Fix for Issue #2788 Exception (torrentsyndikat): String was not recognized as a valid TimeSpan.: Parse error (Test) (#2795)
This commit is contained in:
@@ -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]);
|
||||
|
Reference in New Issue
Block a user