Methods

(static) GetBackdropURLFromItem(item, maxHeightopt, maxWidthopt) → {string}

Generate backdrop URL from JellyfinBaseItem node

Parameters:
NameTypeAttributesDefaultDescription
itemobject

JellyfinBaseItem content node

maxHeightinteger<optional>
720

Maximum height in pixels (default: 720)

maxWidthinteger<optional>
1280

Maximum width in pixels (default: 1280)

Returns:

Image URL string or empty string if no image available

Type: 
string

(static) GetLogoURLFromItem(item, maxHeightopt, maxWidthopt) → {string}

Generate logo URL from JellyfinBaseItem node

Parameters:
NameTypeAttributesDefaultDescription
itemobject

JellyfinBaseItem content node

maxHeightinteger<optional>
100

Maximum height in pixels (default: 100)

maxWidthinteger<optional>
300

Maximum width in pixels (default: 300)

Returns:

Image URL string or empty string if no image available

Type: 
string

(static) GetPosterURLFromItem(item, maxHeightopt, maxWidthopt) → {string}

Generate poster URL from JellyfinBaseItem node Uses existing ImageURL() function with appropriate fallbacks

Parameters:
NameTypeAttributesDefaultDescription
itemobject

JellyfinBaseItem content node

maxHeightinteger<optional>
440

Maximum height in pixels (default: 440)

maxWidthinteger<optional>
295

Maximum width in pixels (default: 295)

Returns:

Image URL string or empty string if no image available

Type: 
string

(static) GetUserAvatarURL(user, userObj, maxHeightopt, maxWidthopt) → {string}

Generate user avatar URL from JellyfinUser node

Parameters:
NameTypeAttributesDefaultDescription
user

JellyfinUser content node

userObjobject
maxHeightinteger<optional>
300

Maximum height in pixels (default: 300)

maxWidthinteger<optional>
300

Maximum width in pixels (default: 300)

Returns:

Image URL string or empty string if no image available

Type: 
string