mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
IBN fix
This commit is contained in:
parent
aa64577b21
commit
30a954300e
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user