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

@ -33,6 +33,12 @@ namespace MediaBrowser.Model.Entities
Locations = new List<string>();
}
/// <summary>
/// Gets or sets the item identifier.
/// </summary>
/// <value>The item identifier.</value>
public string ItemId { get; set; }
/// <summary>
/// Gets or sets the primary image item identifier.
/// </summary>

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)

View File

@ -1198,6 +1198,11 @@ namespace MediaBrowser.Server.Implementations.Library
info.PrimaryImageItemId = libraryFolder.Id.ToString("N");
}
if (libraryFolder != null)
{
info.ItemId = libraryFolder.Id.ToString("N");
}
return info;
}