mirror of
https://github.com/Jackett/Jackett
synced 2025-02-23 06:40:57 +00: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:
parent
9071b1fe29
commit
dc8d1698f0
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue