From dabbd5f90e8f570bc245588f3164b84357386a90 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Mon, 20 May 2013 13:30:23 -0700 Subject: [PATCH] fixed mediacover images not being returned. autocomplete now shows 20 results instead of 8 --- NzbDrone.Api/Frontend/StaticResourceMapper.cs | 6 ++++++ UI/Mixins/AutoComplete.js | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/NzbDrone.Api/Frontend/StaticResourceMapper.cs b/NzbDrone.Api/Frontend/StaticResourceMapper.cs index d269d643c..885be79d1 100644 --- a/NzbDrone.Api/Frontend/StaticResourceMapper.cs +++ b/NzbDrone.Api/Frontend/StaticResourceMapper.cs @@ -1,3 +1,4 @@ +using System; using System.IO; using System.Linq; using NzbDrone.Common; @@ -30,6 +31,11 @@ public bool CanHandle(string resourceUrl) return false; } + if (resourceUrl.StartsWith("/mediacover", StringComparison.CurrentCultureIgnoreCase)) + { + return false; + } + return Extensions.Any(resourceUrl.EndsWith); } } diff --git a/UI/Mixins/AutoComplete.js b/UI/Mixins/AutoComplete.js index f678e2135..00f43efe3 100644 --- a/UI/Mixins/AutoComplete.js +++ b/UI/Mixins/AutoComplete.js @@ -15,7 +15,8 @@ define(['app'], function () { } }); }, - minLength: 3 + minLength: 3, + items :20 }); };