Fixed: Handling torrents with relative path in rTorrent

(cherry picked from commit 35d0e6a6f806c68756450a7d199600d7fb49d6c5)
pull/4704/head
Stevie Robinson 1 month ago committed by servarr
parent e730cf6307
commit ad8fb76e76

@ -134,12 +134,14 @@ namespace NzbDrone.Core.Download.Clients.RTorrent
// Ignore torrents with an empty path
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;
}
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();

Loading…
Cancel
Save