mirror of
https://github.com/Radarr/Radarr.git
synced 2025-04-24 06:27:08 -04:00
Fixed: Prevent new imports without deleting old movie files
This commit is contained in:
parent
bb5f421e38
commit
03429db877
1 changed files with 25 additions and 0 deletions
|
@ -0,0 +1,25 @@
|
|||
using NzbDrone.Core.Download;
|
||||
using NzbDrone.Core.Movies;
|
||||
using NzbDrone.Core.Parser.Model;
|
||||
|
||||
namespace NzbDrone.Core.MediaFiles.MovieImport.Aggregation.Aggregators
|
||||
{
|
||||
public class AggregateMovie : IAggregateLocalMovie
|
||||
{
|
||||
public int Order => 1;
|
||||
|
||||
private readonly IMovieService _movieService;
|
||||
|
||||
public AggregateMovie(IMovieService movieService)
|
||||
{
|
||||
_movieService = movieService;
|
||||
}
|
||||
|
||||
public LocalMovie Aggregate(LocalMovie localMovie, DownloadClientItem downloadClientItem)
|
||||
{
|
||||
localMovie.Movie = _movieService.GetMovie(localMovie.Movie.Id);
|
||||
|
||||
return localMovie;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue