aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MediaBrowser.Controller/Library/ItemController.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/MediaBrowser.Controller/Library/ItemController.cs b/MediaBrowser.Controller/Library/ItemController.cs
index d07778527..6ac2e4f1e 100644
--- a/MediaBrowser.Controller/Library/ItemController.cs
+++ b/MediaBrowser.Controller/Library/ItemController.cs
@@ -235,15 +235,15 @@ namespace MediaBrowser.Controller.Library
{
name = FileData.GetValidFilename(name);
- string key = Path.Combine(path, name);
+ path = Path.Combine(path, name);
// Look for it in the cache, if it's not there, create it
- if (!ImagesByNameItemCache.ContainsKey(key))
+ if (!ImagesByNameItemCache.ContainsKey(path))
{
- ImagesByNameItemCache[key] = CreateImagesByNameItem<T>(path, name);
+ ImagesByNameItemCache[path] = CreateImagesByNameItem<T>(path, name);
}
- return ImagesByNameItemCache[key] as Task<T>;
+ return ImagesByNameItemCache[path] as Task<T>;
}
/// <summary>