1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-26 17:59:14 +00:00

Deleting a series will now delete the coresponding seasons.

This commit is contained in:
Mark McDowall 2012-02-22 13:43:41 -08:00
parent f50d515dde
commit a12dcfd501

View file

@ -173,6 +173,9 @@ public virtual void DeleteSeries(int seriesId)
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);