PostDownloadScanJob can now be passed a path

This commit is contained in:
Mark McDowall 2012-09-22 23:01:31 -07:00
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))
{