diff --git a/NzbDrone.Web/Controllers/AddSeriesController.cs b/NzbDrone.Web/Controllers/AddSeriesController.cs index 6d85dc521..0a9eb764b 100644 --- a/NzbDrone.Web/Controllers/AddSeriesController.cs +++ b/NzbDrone.Web/Controllers/AddSeriesController.cs @@ -181,7 +181,8 @@ namespace NzbDrone.Web.Controllers DisplayedTitle = r.FirstAired.Year > 1900 && !r.SeriesName.EndsWith("(" + r.FirstAired.Year + ")") ?string.Format("{0} ({1})", r.SeriesName, r.FirstAired.Year) :r.SeriesName, - Banner = r.Banner.BannerPath + Banner = r.Banner.BannerPath, + Url = String.Format("http://www.thetvdb.com/?tab=series&id={0}", r.Id) }).ToList(); return Json(tvDbResults, JsonRequestBehavior.AllowGet); diff --git a/NzbDrone.Web/Models/TvDbSearchResultModel.cs b/NzbDrone.Web/Models/TvDbSearchResultModel.cs index 159964958..03308bf1e 100644 --- a/NzbDrone.Web/Models/TvDbSearchResultModel.cs +++ b/NzbDrone.Web/Models/TvDbSearchResultModel.cs @@ -8,5 +8,6 @@ namespace NzbDrone.Web.Models public string Title { get; set; } public string Banner { get; set; } public string DisplayedTitle { get; set; } + public string Url { get; set; } } } \ No newline at end of file diff --git a/NzbDrone.Web/Scripts/NzbDrone/AutoComplete.js b/NzbDrone.Web/Scripts/NzbDrone/AutoComplete.js index 1fccb51f1..23cd012d5 100644 --- a/NzbDrone.Web/Scripts/NzbDrone/AutoComplete.js +++ b/NzbDrone.Web/Scripts/NzbDrone/AutoComplete.js @@ -66,6 +66,7 @@ function bindSeriesAutoComplete(selector) { return $("
") .data("item.autocomplete", item) .append("" + item.DisplayedTitle + "") + .append("