Remove Series MediaFile Commands

pull/94/head
Qstick 7 years ago
parent ed3b47d76a
commit 04766bb786

@ -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()
{
}
}
}

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

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

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

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

Loading…
Cancel
Save