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).
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
item | object | JellyfinBaseItem content node | ||
slotWidth | integer | width of the image area in pixels (from rowSlotSize constant) | ||
posterHeight | integer | height of the image area in pixels; pass rowSlotSize[1] directly — | ||
userSettings | object | m.global.user.settings node (may be invalid) | ||
useEpisodeImages | boolean | <optional> | false | pre-computed from m.global.user.config.useEpisodeImagesInNextUpAndResume; |
applyEpisodeImageSetting | boolean | <optional> | true | when false, skip the uiGeneralEpisodeImages user setting entirely |
Image URL string, or "" if no image is available
- Type:
- string