mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-26 20:11:49 +02:00
Almost everything working except importing episode thumbs
This commit is contained in:
@@ -19,6 +19,7 @@ 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>
|
||||
@@ -82,6 +83,11 @@ 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