Methods

(static) getItemBackdropUrl(item, size) → {string}

Generate a full backdrop URL with fallback chain. Fallback order: item backdrop, then parent backdrop

Parameters:
NameTypeDescription
itemobject

JellyfinBaseItem content node

sizeobject

{ width, height } object; use device UI resolution (m.global.device.uiResolution)

Returns:

Full image URL string, or "" if no image is available

Type: 
string

(static) getItemImageUrl(item, imageTypeopt, sizeopt) → {string}

Generate an image URL from a JellyfinBaseItem for a specific image type. This is the base function used by the typed convenience functions below.

Parameters:
NameTypeAttributesDefaultDescription
itemobject

JellyfinBaseItem content node

imageTypestring<optional>
"Primary"

Jellyfin image type string: "Primary", "Thumb", "Logo", "Backdrop"

sizeobject<optional>
imageSize.DEFAULT

Size constant from imageSize namespace, for example imageSize.POSTER_LG

Returns:

Full image URL string, or "" if no tag is available for that type

Type: 
string

(static) getItemParentWidePosterUrl(item, sizeopt) → {string}

Generate a wide art URL preferring the parent (series/show) wide images over the item's own. Skips item-level Thumb and Backdrop entirely; resolves directly from parent fields. Use this for episodes when the user prefers show art over episode screenshots. Fallback order: parent thumb, then parent backdrop

Parameters:
NameTypeAttributesDefaultDescription
itemobject

JellyfinBaseItem content node (typically an Episode or Recording)

sizeobject<optional>
imageSize.WIDE_MD

{ width, height } object; use slot dimensions

Returns:

Full image URL string, or "" if no parent wide image is available

Type: 
string

(static) getItemPosterUrl(item, sizeopt) → {string}

Generate a poster (portrait) URL with fallback chain. Fallback order: item primary, then parent primary, then series primary, then album primary

Parameters:
NameTypeAttributesDefaultDescription
itemobject

JellyfinBaseItem content node

sizeobject<optional>
imageSize.POSTER_LG

Size constant from imageSize namespace (default: imageSize.POSTER_LG)

Returns:

Full image URL string, or "" if no image is available

Type: 
string

(static) getItemThumbnailUrl(item, sizeopt) → {string}

Generate a thumbnail URL (wide, smaller size). Delegates to getItemWidePosterUrl with a smaller default size.

Parameters:
NameTypeAttributesDefaultDescription
itemobject

JellyfinBaseItem content node

sizeobject<optional>
imageSize.WIDE_SM

Size constant from imageSize namespace (default: imageSize.WIDE_SM)

Returns:

Full image URL string, or "" if no image is available

Type: 
string

(static) getItemWidePosterUrl(item, sizeopt) → {string}

Generate a wide/landscape URL with fallback chain. Fallback order: item thumb, then item backdrop, then parent thumb, then parent backdrop

Parameters:
NameTypeAttributesDefaultDescription
itemobject

JellyfinBaseItem content node

sizeobject<optional>
imageSize.WIDE_MD

Size constant from imageSize namespace (default: imageSize.WIDE_MD)

Returns:

Full image URL string, or "" if no image is available

Type: 
string

(static) getProgramImageUrl(programItem, channelItem, sizeopt) → {string}

Generate an image URL for a Live TV program, falling back to the channel image. Accommodates the two-phase load constraint: program and channel are separate API calls.

Parameters:
NameTypeAttributesDefaultDescription
programItemobject

JellyfinBaseItem for the program

channelItemobject

JellyfinBaseItem for the channel (may be invalid if not yet loaded)

sizeobject<optional>
imageSize.WIDE_MD

Size constant from imageSize namespace (default: imageSize.WIDE_MD)

Returns:

Full image URL string, or "" if no image is available

Type: 
string