Fixed: Error getting seed config for rtorrent

pull/1423/head
ta264 3 years ago
parent d1f1052d7d
commit 5827644300

@ -175,7 +175,7 @@ namespace NzbDrone.Core.Download.Clients.RTorrent
// Check if torrent is finished and if it exceeds cached seedConfig // Check if torrent is finished and if it exceeds cached seedConfig
item.CanMoveFiles = item.CanBeRemoved = item.CanMoveFiles = item.CanBeRemoved =
torrent.IsFinished && torrent.IsFinished && seedConfig != null &&
((torrent.Ratio / 1000.0) >= seedConfig.Ratio || ((torrent.Ratio / 1000.0) >= seedConfig.Ratio ||
(DateTimeOffset.Now - DateTimeOffset.FromUnixTimeSeconds(torrent.FinishedTime)) >= seedConfig.SeedTime); (DateTimeOffset.Now - DateTimeOffset.FromUnixTimeSeconds(torrent.FinishedTime)) >= seedConfig.SeedTime);

@ -71,7 +71,7 @@ namespace NzbDrone.Core.Download
} }
ParsedBookInfo parsedBookInfo = null; ParsedBookInfo parsedBookInfo = null;
if (historyItem.SourceTitle != null) if (historyItem.Release != null)
{ {
parsedBookInfo = Parser.Parser.ParseBookTitle(historyItem.Release.Title); parsedBookInfo = Parser.Parser.ParseBookTitle(historyItem.Release.Title);
} }

Loading…
Cancel
Save