mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-25 01:06:30 +00:00
Deleting a series will now delete the coresponding seasons.
This commit is contained in:
parent
f50d515dde
commit
a12dcfd501
1 changed files with 3 additions and 0 deletions
|
@ -173,6 +173,9 @@ namespace NzbDrone.Core.Providers
|
|||
Logger.Debug("Deleting EpisodeFiles from DB for Series: {0}", series.Title);
|
||||
_database.Delete<EpisodeFile>("WHERE SeriesId=@0", seriesId);
|
||||
|
||||
Logger.Debug("Deleting Seasons from DB for Series: {0}", series.Title);
|
||||
_database.Delete<Season>("WHERE SeriesId=@0", seriesId);
|
||||
|
||||
Logger.Debug("Deleting Episodes from DB for Series: {0}", series.Title);
|
||||
_database.Delete<Episode>("WHERE SeriesId=@0", seriesId);
|
||||
|
||||
|
|
Loading…
Reference in a new issue