aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/UserViewManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-10-16 02:10:55 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-10-16 02:10:55 -0400
commit4ef9f68837d0c2d2b371239d8568edb6473c6072 (patch)
tree8932031cbdc4cf46a7ef6b03a013345fdf3aba21 /Emby.Server.Implementations/Library/UserViewManager.cs
parent6f15141d73aae2fa78511077580fdc2cd895694f (diff)
support delete per library
Diffstat (limited to 'Emby.Server.Implementations/Library/UserViewManager.cs')
-rw-r--r--Emby.Server.Implementations/Library/UserViewManager.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Library/UserViewManager.cs b/Emby.Server.Implementations/Library/UserViewManager.cs
index ddab3caa5..dd478dee0 100644
--- a/Emby.Server.Implementations/Library/UserViewManager.cs
+++ b/Emby.Server.Implementations/Library/UserViewManager.cs
@@ -95,7 +95,9 @@ namespace Emby.Server.Implementations.Library
if (parents.Count > 0)
{
- var localizationKey = viewType.Replace("Tv", string.Empty);
+ var localizationKey = string.Equals(viewType, CollectionType.TvShows, StringComparison.OrdinalIgnoreCase) ?
+ "Shows" :
+ "Movies";
list.Add(GetUserView(parents, viewType, localizationKey, string.Empty, user, query.PresetViews, cancellationToken));
}