diff --git a/NzbDrone.Core/Jobs/JobController.cs b/NzbDrone.Core/Jobs/JobController.cs index 4a43604470..e56d38ca50 100644 --- a/NzbDrone.Core/Jobs/JobController.cs +++ b/NzbDrone.Core/Jobs/JobController.cs @@ -58,7 +58,7 @@ public void EnqueueScheduled() { if (IsProcessing) { - _logger.Trace("Queue is already running. Ignoring scheduler's request."); + _logger.Trace("Queue is already running. Ignoring scheduler request."); return; } diff --git a/NzbDrone.Core/Jobs/JobQueueItem.cs b/NzbDrone.Core/Jobs/JobQueueItem.cs index 25a9cd8ed8..53c274276d 100644 --- a/NzbDrone.Core/Jobs/JobQueueItem.cs +++ b/NzbDrone.Core/Jobs/JobQueueItem.cs @@ -17,7 +17,12 @@ public bool Equals(JobQueueItem other) public override string ToString() { - return string.Format("[{0}({1})]", JobType.Name, Options); + if (Options != null) + { + return string.Format("[{0}({1})]", JobType.Name, Options); + } + + return string.Format("[{0}]", JobType.Name); } public enum JobSourceType diff --git a/NzbDrone.Integration.Test/SeriesIntegrationTest.cs b/NzbDrone.Integration.Test/SeriesIntegrationTest.cs index 5c902517a3..e037fd22b8 100644 --- a/NzbDrone.Integration.Test/SeriesIntegrationTest.cs +++ b/NzbDrone.Integration.Test/SeriesIntegrationTest.cs @@ -1,6 +1,8 @@ -using System.Net; +using System.IO; +using System.Net; using FluentAssertions; using NUnit.Framework; +using NzbDrone.Api.RootFolders; using NzbDrone.Api.Series; using System.Linq; @@ -36,6 +38,10 @@ public void should_be_able_to_add_series() { var series = Series.Lookup("archer").First(); + var rootFolder = RootFolders.Post(new RootFolderResource { Path = Directory.GetCurrentDirectory() }); + + series.RootFolderId = rootFolder.Id; + Series.Post(series); Series.All().Should().HaveCount(1);