mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix double path concatenation
This commit is contained in:
parent
008a512a5d
commit
4a999736b3
15 changed files with 287 additions and 22 deletions
19
ApiClient.js
19
ApiClient.js
|
@ -2018,11 +2018,28 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
|
|||
|
||||
options.imageType = "logo";
|
||||
|
||||
var logoItemId = item.HasLogo ? item.Id : item.ParentLogoItemId;
|
||||
var logoItemId = item.ImageTags && item.ImageTags.Logo ? item.Id : item.ParentLogoItemId;
|
||||
|
||||
return logoItemId ? self.getImageUrl(logoItemId, options) : null;
|
||||
};
|
||||
|
||||
self.getThumbImageUrl = function (item, options) {
|
||||
|
||||
if (!item) {
|
||||
throw new Error("null item");
|
||||
}
|
||||
|
||||
options = options || {
|
||||
|
||||
};
|
||||
|
||||
options.imageType = "thumb";
|
||||
|
||||
var itemId = item.ImageTags && item.ImageTags.Thumb ? item.Id : item.ParentThumbItemId;
|
||||
|
||||
return itemId ? self.getImageUrl(itemId, options) : null;
|
||||
};
|
||||
|
||||
/**
|
||||
* Constructs an array of backdrop image url's for an item
|
||||
* If the item doesn't have any backdrops, it will inherit them from a parent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue