1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-27 22:57:09 -04:00

Fixed: Renaming Files Command Doesn't Resolve

This commit is contained in:
Qstick
2019-07-25 21:11:12 -04:00
parent fbc2566f70
commit 6705b59b23
4 changed files with 15 additions and 42 deletions
@@ -1,26 +0,0 @@
using NzbDrone.Core.Messaging.Commands;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NzbDrone.Core.MediaFiles.Commands
{
public class RenameMovieFilesCommand : Command
{
public int MovieId { get; set; }
public List<int> Files { get; set; }
public override bool SendUpdatesToClient => true;
public RenameMovieFilesCommand()
{
}
public RenameMovieFilesCommand(int movieId, List<int> files)
{
MovieId = movieId;
Files = files;
}
}
}
@@ -25,7 +25,7 @@ namespace NzbDrone.Core.MediaFiles
}
public class RenameMovieFileService : IRenameMovieFileService,
IExecute<RenameMovieFilesCommand>,
IExecute<RenameFilesCommand>,
IExecute<RenameMovieCommand>,
IExecute<RenameMovieFolderCommand>
{
@@ -181,7 +181,7 @@ namespace NzbDrone.Core.MediaFiles
}
}
public void Execute(RenameMovieFilesCommand message)
public void Execute(RenameFilesCommand message)
{
var movie = _movieService.GetMovie(message.MovieId);
var movieFiles = _mediaFileService.GetMovies(message.Files);