Fixed: Handling torrents with relative path in rTorrent

pull/6668/head
Stevie Robinson 2 months ago committed by GitHub
parent 588372fd95
commit 35d0e6a6f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -139,12 +139,14 @@ namespace NzbDrone.Core.Download.Clients.RTorrent
// Ignore torrents with an empty path // Ignore torrents with an empty path
if (torrent.Path.IsNullOrWhiteSpace()) if (torrent.Path.IsNullOrWhiteSpace())
{ {
_logger.Warn("Torrent '{0}' has an empty download path and will not be processed. Adjust this to an absolute path in rTorrent", torrent.Name);
continue; continue;
} }
if (torrent.Path.StartsWith(".")) if (torrent.Path.StartsWith("."))
{ {
throw new DownloadClientException("Download paths must be absolute. Please specify variable \"directory\" in rTorrent."); _logger.Warn("Torrent '{0}' has a download path starting with '.' and will not be processed. Adjust this to an absolute path in rTorrent", torrent.Name);
continue;
} }
var item = new DownloadClientItem(); var item = new DownloadClientItem();

Loading…
Cancel
Save