This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti 2012-09-13 16:56:45 -04:00
parent aa64577b21
commit 30a954300e

View File

@ -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>