Methods

(static) getRowItemImageUrl(item, slotWidth, posterHeight, userSettings, useEpisodeImagesopt, applyEpisodeImageSettingopt) → {string}

Returns the image URL for a row item based on its type, slot dimensions, and user settings.

Does NOT handle blur — blur is appended by the caller (JRRowItem) after the URL is resolved.

text is laid out below the slot by the caller, so do NOT subtract the text area before passing this value (that would double-subtract it) only relevant when uiGeneralEpisodeImages = "webclient" and always show the episode's own Primary image. Use false for extras rows (season episode lists, person TV shows) where the setting is only meaningful for home rows (Continue Watching, Next Up).

Parameters:
NameTypeAttributesDefaultDescription
itemobject

JellyfinBaseItem content node

slotWidthinteger

width of the image area in pixels (from rowSlotSize constant)

posterHeightinteger

height of the image area in pixels; pass rowSlotSize[1] directly —

userSettingsobject

m.global.user.settings node (may be invalid)

useEpisodeImagesboolean<optional>
false

pre-computed from m.global.user.config.useEpisodeImagesInNextUpAndResume;

applyEpisodeImageSettingboolean<optional>
true

when false, skip the uiGeneralEpisodeImages user setting entirely

Returns:

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

Type: 
string