add image editing to library setup
This commit is contained in:
parent
a8e5aba643
commit
3741eb2426
|
@ -33,6 +33,12 @@ namespace MediaBrowser.Model.Entities
|
||||||
Locations = new List<string>();
|
Locations = new List<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the item identifier.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>The item identifier.</value>
|
||||||
|
public string ItemId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the primary image item identifier.
|
/// Gets or sets the primary image item identifier.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -142,10 +142,17 @@ namespace MediaBrowser.Providers.Folders
|
||||||
|
|
||||||
if (view != null)
|
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)
|
public Task<HttpResponseInfo> GetImageResponse(string url, CancellationToken cancellationToken)
|
||||||
|
|
|
@ -1198,6 +1198,11 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||||
info.PrimaryImageItemId = libraryFolder.Id.ToString("N");
|
info.PrimaryImageItemId = libraryFolder.Id.ToString("N");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (libraryFolder != null)
|
||||||
|
{
|
||||||
|
info.ItemId = libraryFolder.Id.ToString("N");
|
||||||
|
}
|
||||||
|
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user