From 6057bf187d544a5564b2e81703e74c9e3f29ab61 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 11 Sep 2013 18:11:51 -0700 Subject: [PATCH] Adding seasons to series will also unmonitor season 0 --- .../Migration/020_add_year_and_seasons_to_series.cs | 5 +++++ NzbDrone.Host/Owin/OwinHostController.cs | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NzbDrone.Core/Datastore/Migration/020_add_year_and_seasons_to_series.cs b/NzbDrone.Core/Datastore/Migration/020_add_year_and_seasons_to_series.cs index 30323d4d2..0521d3bdb 100644 --- a/NzbDrone.Core/Datastore/Migration/020_add_year_and_seasons_to_series.cs +++ b/NzbDrone.Core/Datastore/Migration/020_add_year_and_seasons_to_series.cs @@ -43,6 +43,11 @@ namespace NzbDrone.Core.Datastore.Migration int seasonNumber = seasonReader.GetInt32(0); bool monitored = seasonReader.GetBoolean(1); + if (seasonNumber == 0) + { + monitored = false; + } + seasons.Add(new { seasonNumber, monitored }); } } diff --git a/NzbDrone.Host/Owin/OwinHostController.cs b/NzbDrone.Host/Owin/OwinHostController.cs index c11c0f99d..b4d8d24ba 100644 --- a/NzbDrone.Host/Owin/OwinHostController.cs +++ b/NzbDrone.Host/Owin/OwinHostController.cs @@ -71,7 +71,6 @@ namespace NzbDrone.Host.Owin } throw ex.InnerException; - } }