mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Delete is setup, just need to add a link to follow through on the delete.
Removes EpisodeFiles, Episodes, Season and then the Series.
This commit is contained in:
parent
dbca3a1974
commit
88ad555e75
11 changed files with 63 additions and 2 deletions
|
@ -112,6 +112,17 @@ namespace NzbDrone.Core.Providers
|
|||
return String.Format(episodeNamePattern, episode.SeriesTitle, episode.EpisodeNumber, episode.SeasonNumber, episode.EpisodeTitle, episode.Quality);
|
||||
}
|
||||
|
||||
public void DeleteFromDb(int fileId)
|
||||
{
|
||||
_repository.Delete<EpisodeFile>(fileId);
|
||||
}
|
||||
|
||||
public void DeleteFromDisk(int fileId, string path)
|
||||
{
|
||||
_diskProvider.DeleteFile(path);
|
||||
_repository.Delete<EpisodeFile>(fileId);
|
||||
}
|
||||
|
||||
private List<string> GetMediaFileList(string path)
|
||||
{
|
||||
Logger.Debug("Scanning '{0}' for episodes", path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue