mirror of
https://github.com/Radarr/Radarr.git
synced 2024-10-05 15:47:20 +02:00
Fixed: Handling torrents with relative path in rTorrent
(cherry picked from commit 35d0e6a6f806c68756450a7d199600d7fb49d6c5)
This commit is contained in:
parent
0c998dac5c
commit
c4aad5800c
@ -139,12 +139,14 @@ public override IEnumerable<DownloadClientItem> GetItems()
|
|||||||
// 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…
Reference in New Issue
Block a user