mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
No more dupes and house cleaner added
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using NLog;
|
||||
@@ -19,7 +18,6 @@ namespace NzbDrone.Core.MediaFiles
|
||||
List<string> FilterExistingFiles(List<string> files, int seriesId);
|
||||
EpisodeFile Get(int id);
|
||||
List<EpisodeFile> Get(IEnumerable<int> ids);
|
||||
EpisodeFile FindByPath(string path, bool includeExtension = true);
|
||||
}
|
||||
|
||||
public class MediaFileService : IMediaFileService, IHandleAsync<SeriesDeletedEvent>
|
||||
@@ -83,11 +81,6 @@ namespace NzbDrone.Core.MediaFiles
|
||||
return _mediaFileRepository.Get(ids).ToList();
|
||||
}
|
||||
|
||||
public EpisodeFile FindByPath(string path, bool includeExtension = true)
|
||||
{
|
||||
return _mediaFileRepository.FindFileByPath(path, includeExtension);
|
||||
}
|
||||
|
||||
public void HandleAsync(SeriesDeletedEvent message)
|
||||
{
|
||||
var files = GetFilesBySeries(message.Series.Id);
|
||||
|
Reference in New Issue
Block a user