Skip to content

Commit

Permalink
Fixed: Handling torrents with relative path in rTorrent
Browse files Browse the repository at this point in the history
(cherry picked from commit 35d0e6a6f806c68756450a7d199600d7fb49d6c5)
  • Loading branch information
stevietv authored and mynameisbogdan committed Mar 28, 2024
1 parent f890a8c commit a8648fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/NzbDrone.Core/Download/Clients/rTorrent/RTorrent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,14 @@ public override IEnumerable<DownloadClientItem> GetItems()
// 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();
Expand Down

0 comments on commit a8648fd

Please sign in to comment.