add image editing to library setup

This commit is contained in:
Luke Pulverenti
2015-10-16 01:36:16 -04:00
parent a8e5aba643
commit 3741eb2426
3 changed files with 20 additions and 2 deletions

View File

@@ -142,10 +142,17 @@ namespace MediaBrowser.Providers.Folders
if (view != null)
{
return true;
return !string.IsNullOrWhiteSpace(GetImageUrl(view.ViewType));
}
return item is ICollectionFolder;
var folder = item as ICollectionFolder;
if (folder != null)
{
return !string.IsNullOrWhiteSpace(GetImageUrl(folder.CollectionType));
}
return false;
}
public Task<HttpResponseInfo> GetImageResponse(string url, CancellationToken cancellationToken)