mirror of https://github.com/lidarr/Lidarr
Remove Series MediaFile Commands
This commit is contained in:
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 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;
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
if (message.ArtistId.IsNotNullOrWhiteSpace())
|
||||
if (message.ArtistId.HasValue)
|
||||
{
|
||||
var artist = _artistService.FindById(message.ArtistId);
|
||||
var artist = _artistService.GetArtist(message.ArtistId.Value);
|
||||
Scan(artist);
|
||||
}
|
||||
|
||||
|
|
|
@ -746,8 +746,6 @@
|
|||
<Compile Include="MediaFiles\TrackFileMoveResult.cs" />
|
||||
<Compile Include="MediaFiles\TrackImport\ImportMode.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\DiskScanService.cs">
|
||||
<SubType>Code</SubType>
|
||||
|
|
Loading…
Reference in New Issue