Remove Series MediaFile Commands

This commit is contained in:
Qstick 2017-09-28 23:19:27 -04:00
parent ed3b47d76a
commit 04766bb786
5 changed files with 6 additions and 50 deletions

View File

@ -1,16 +0,0 @@
using System.Collections.Generic;
using NzbDrone.Core.Messaging.Commands;
namespace NzbDrone.Core.MediaFiles.Commands
{
public class RenameSeriesCommand : Command
{
public List<int> SeriesIds { get; set; }
public override bool SendUpdatesToClient => true;
public RenameSeriesCommand()
{
}
}
}

View File

@ -1,24 +1,18 @@
using NzbDrone.Core.Messaging.Commands; using NzbDrone.Core.Messaging.Commands;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NzbDrone.Core.MediaFiles.Events namespace NzbDrone.Core.MediaFiles.Commands
{ {
public class RescanArtistCommand : Command public class RescanArtistCommand : Command
{ {
public int? ArtistId { get; set; }
public string ArtistId { get; set; }
public override bool SendUpdatesToClient => true; public override bool SendUpdatesToClient => true;
public RescanArtistCommand() public RescanArtistCommand()
{ {
ArtistId = "";
} }
public RescanArtistCommand(string artistId) public RescanArtistCommand(int artistId)
{ {
ArtistId = artistId; ArtistId = artistId;
} }

View File

@ -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;
}
}
}

View File

@ -194,9 +194,9 @@ namespace NzbDrone.Core.MediaFiles
public void Execute(RescanArtistCommand message) 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); Scan(artist);
} }

View File

@ -746,8 +746,6 @@
<Compile Include="MediaFiles\TrackFileMoveResult.cs" /> <Compile Include="MediaFiles\TrackFileMoveResult.cs" />
<Compile Include="MediaFiles\TrackImport\ImportMode.cs" /> <Compile Include="MediaFiles\TrackImport\ImportMode.cs" />
<Compile Include="MediaFiles\Commands\RenameFilesCommand.cs" /> <Compile Include="MediaFiles\Commands\RenameFilesCommand.cs" />
<Compile Include="MediaFiles\Commands\RenameSeriesCommand.cs" />
<Compile Include="MediaFiles\Commands\RescanSeriesCommand.cs" />
<Compile Include="MediaFiles\DeleteMediaFileReason.cs" /> <Compile Include="MediaFiles\DeleteMediaFileReason.cs" />
<Compile Include="MediaFiles\DiskScanService.cs"> <Compile Include="MediaFiles\DiskScanService.cs">
<SubType>Code</SubType> <SubType>Code</SubType>