mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-01 20:02:52 +01:00
Added BaseEntity so that Person, User, and other misc classes don't have to inherit from BaseItem
This commit is contained in:
parent
16593b3350
commit
31afb168f8
@@ -168,19 +168,15 @@ namespace MediaBrowser.Api.HttpHandlers
|
||||
|
||||
string id = QueryString["id"];
|
||||
string personName = QueryString["personname"];
|
||||
string imageIndex = QueryString["index"];
|
||||
|
||||
BaseItem item;
|
||||
|
||||
if (!string.IsNullOrEmpty(personName))
|
||||
{
|
||||
item = Kernel.Instance.ItemController.GetPerson(personName);
|
||||
}
|
||||
else
|
||||
{
|
||||
item = ApiService.GetItemById(QueryString["id"]);
|
||||
return Kernel.Instance.ItemController.GetPerson(personName).PrimaryImagePath;
|
||||
}
|
||||
|
||||
BaseItem item = ApiService.GetItemById(QueryString["id"]);
|
||||
|
||||
string imageIndex = QueryString["index"];
|
||||
int index = string.IsNullOrEmpty(imageIndex) ? 0 : int.Parse(imageIndex);
|
||||
|
||||
return GetImagePathFromTypes(item, ImageType, index);
|
||||
|
||||
Reference in New Issue
Block a user