|
|
@ -3,6 +3,8 @@ using System.IO;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Linq;
|
|
|
|
using NLog;
|
|
|
|
using NLog;
|
|
|
|
using NzbDrone.Common.Disk;
|
|
|
|
using NzbDrone.Common.Disk;
|
|
|
|
|
|
|
|
using NzbDrone.Common.EnsureThat;
|
|
|
|
|
|
|
|
using NzbDrone.Common.EnvironmentInfo;
|
|
|
|
using NzbDrone.Common.Extensions;
|
|
|
|
using NzbDrone.Common.Extensions;
|
|
|
|
using NzbDrone.Core.Configuration;
|
|
|
|
using NzbDrone.Core.Configuration;
|
|
|
|
using NzbDrone.Core.Download.TrackedDownloads;
|
|
|
|
using NzbDrone.Core.Download.TrackedDownloads;
|
|
|
@ -72,6 +74,13 @@ namespace NzbDrone.Core.Download
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ((OsInfo.IsWindows && !downloadItemOutputPath.IsWindowsPath) ||
|
|
|
|
|
|
|
|
(OsInfo.IsNotWindows && !downloadItemOutputPath.IsUnixPath))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
trackedDownload.Warn("[{0}] is not a valid local path. You may need a Remote Path Mapping.", downloadItemOutputPath);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var downloadedEpisodesFolder = new OsPath(_configService.DownloadedEpisodesFolder);
|
|
|
|
var downloadedEpisodesFolder = new OsPath(_configService.DownloadedEpisodesFolder);
|
|
|
|
|
|
|
|
|
|
|
|
if (downloadedEpisodesFolder.Contains(downloadItemOutputPath))
|
|
|
|
if (downloadedEpisodesFolder.Contains(downloadItemOutputPath))
|
|
|
|