aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/UserLibrary/ItemsService.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2019-08-09 23:18:49 +0200
committerBond_009 <bond.009@outlook.com>2019-08-09 23:24:04 +0200
commit9b2cf8501f082905b9b7b7b914dd42bba9d9e96d (patch)
tree4606e010200df5aedb1ff1c0e6a8b9a6f8dd1a21 /MediaBrowser.Api/UserLibrary/ItemsService.cs
parent52c1b45feb75c55075135005167a308269013400 (diff)
Add last one
Diffstat (limited to 'MediaBrowser.Api/UserLibrary/ItemsService.cs')
-rw-r--r--MediaBrowser.Api/UserLibrary/ItemsService.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/MediaBrowser.Api/UserLibrary/ItemsService.cs b/MediaBrowser.Api/UserLibrary/ItemsService.cs
index c605cd396..a1e976bed 100644
--- a/MediaBrowser.Api/UserLibrary/ItemsService.cs
+++ b/MediaBrowser.Api/UserLibrary/ItemsService.cs
@@ -228,7 +228,9 @@ namespace MediaBrowser.Api.UserLibrary
var collectionFolders = _libraryManager.GetCollectionFolders(item);
foreach (var collectionFolder in collectionFolders)
{
- if (user.Policy.EnabledFolders.Contains(collectionFolder.Id.ToString("N"), StringComparer.OrdinalIgnoreCase))
+ if (user.Policy.EnabledFolders.Contains(
+ collectionFolder.Id.ToString("N", CultureInfo.InvariantCulture),
+ StringComparer.OrdinalIgnoreCase))
{
isInEnabledFolder = true;
}