Fixed: Error getting seed config for rtorrent

This commit is contained in:
ta264
2021-12-15 21:40:52 +00:00
parent d1f1052d7d
commit 5827644300
2 changed files with 2 additions and 2 deletions

View File

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

View File

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