PostDownloadScanJob can now be passed a path

This commit is contained in:
Mark McDowall
2012-09-22 23:01:31 -07:00
parent b21bf01bf0
commit cb0f1fe513
3 changed files with 80 additions and 1 deletions

View File

@@ -41,7 +41,13 @@ namespace NzbDrone.Core.Jobs
public virtual void Start(ProgressNotification notification, dynamic options)
{
var dropFolder = _configProvider.SabDropDirectory;
string dropFolder;
if (options != null && !String.IsNullOrWhiteSpace(options.Path))
dropFolder = options.Path;
else
dropFolder = _configProvider.SabDropDirectory;
if (String.IsNullOrWhiteSpace(dropFolder))
{