diff --git a/src/NzbDrone.Core/MediaFiles/Commands/RenameSeriesCommand.cs b/src/NzbDrone.Core/MediaFiles/Commands/RenameSeriesCommand.cs deleted file mode 100644 index a2bcda88c..000000000 --- a/src/NzbDrone.Core/MediaFiles/Commands/RenameSeriesCommand.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System.Collections.Generic; -using NzbDrone.Core.Messaging.Commands; - -namespace NzbDrone.Core.MediaFiles.Commands -{ - public class RenameSeriesCommand : Command - { - public List SeriesIds { get; set; } - - public override bool SendUpdatesToClient => true; - - public RenameSeriesCommand() - { - } - } -} \ No newline at end of file diff --git a/src/NzbDrone.Core/MediaFiles/Commands/RescanArtistCommand.cs b/src/NzbDrone.Core/MediaFiles/Commands/RescanArtistCommand.cs index 904350d5a..5e17c0cd7 100644 --- a/src/NzbDrone.Core/MediaFiles/Commands/RescanArtistCommand.cs +++ b/src/NzbDrone.Core/MediaFiles/Commands/RescanArtistCommand.cs @@ -1,24 +1,18 @@ -using NzbDrone.Core.Messaging.Commands; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; +using NzbDrone.Core.Messaging.Commands; -namespace NzbDrone.Core.MediaFiles.Events +namespace NzbDrone.Core.MediaFiles.Commands { public class RescanArtistCommand : Command { - - public string ArtistId { get; set; } + public int? ArtistId { get; set; } public override bool SendUpdatesToClient => true; public RescanArtistCommand() { - ArtistId = ""; } - public RescanArtistCommand(string artistId) + public RescanArtistCommand(int artistId) { ArtistId = artistId; } diff --git a/src/NzbDrone.Core/MediaFiles/Commands/RescanSeriesCommand.cs b/src/NzbDrone.Core/MediaFiles/Commands/RescanSeriesCommand.cs deleted file mode 100644 index 6330574ab..000000000 --- a/src/NzbDrone.Core/MediaFiles/Commands/RescanSeriesCommand.cs +++ /dev/null @@ -1,20 +0,0 @@ -using NzbDrone.Core.Messaging.Commands; - -namespace NzbDrone.Core.MediaFiles.Commands -{ - public class RescanSeriesCommand : Command - { - public int? SeriesId { get; set; } - - public override bool SendUpdatesToClient => true; - - public RescanSeriesCommand() - { - } - - public RescanSeriesCommand(int seriesId) - { - SeriesId = seriesId; - } - } -} \ No newline at end of file diff --git a/src/NzbDrone.Core/MediaFiles/DiskScanService.cs b/src/NzbDrone.Core/MediaFiles/DiskScanService.cs index eab090ef3..1ceb26d3a 100644 --- a/src/NzbDrone.Core/MediaFiles/DiskScanService.cs +++ b/src/NzbDrone.Core/MediaFiles/DiskScanService.cs @@ -194,9 +194,9 @@ namespace NzbDrone.Core.MediaFiles public void Execute(RescanArtistCommand message) { - if (message.ArtistId.IsNotNullOrWhiteSpace()) + if (message.ArtistId.HasValue) { - var artist = _artistService.FindById(message.ArtistId); + var artist = _artistService.GetArtist(message.ArtistId.Value); Scan(artist); } diff --git a/src/NzbDrone.Core/NzbDrone.Core.csproj b/src/NzbDrone.Core/NzbDrone.Core.csproj index dad07f20e..05e67387f 100644 --- a/src/NzbDrone.Core/NzbDrone.Core.csproj +++ b/src/NzbDrone.Core/NzbDrone.Core.csproj @@ -746,8 +746,6 @@ - - Code