diff --git a/NzbDrone.Web/Controllers/DirectoryController.cs b/NzbDrone.Web/Controllers/DirectoryController.cs index c3dbc51401..b4c7111712 100644 --- a/NzbDrone.Web/Controllers/DirectoryController.cs +++ b/NzbDrone.Web/Controllers/DirectoryController.cs @@ -1,4 +1,5 @@ -using System.Collections.Generic; +using System; +using System.Collections.Generic; using System.Web.Mvc; using NzbDrone.Common; @@ -48,8 +49,9 @@ public JsonResult GetDirectories(string term) dirs = _diskProvider.GetDirectories(term.Substring(0, index + 1)); } } - catch + catch (Exception ex) { + return Json(new List(), JsonRequestBehavior.AllowGet); //Swallow the exceptions so proper JSON is returned to the client (Empty results) } diff --git a/NzbDrone.Web/Controllers/SeriesController.cs b/NzbDrone.Web/Controllers/SeriesController.cs index 4a461565aa..dfa2a3d6f6 100644 --- a/NzbDrone.Web/Controllers/SeriesController.cs +++ b/NzbDrone.Web/Controllers/SeriesController.cs @@ -213,13 +213,5 @@ private List GetEpisodeModels(IList episodesInDb) return episodes; } - - private string GetSeasonString(int seasonNumber) - { - if (seasonNumber == 0) - return "Specials"; - - return String.Format("Season #{0}", seasonNumber); - } } } \ No newline at end of file