Methods
(static) GetBackdropURLFromItem(item, maxHeightopt, maxWidthopt) → {string}
Generate backdrop URL from JellyfinBaseItem node
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
item | object | JellyfinBaseItem content node | ||
maxHeight | integer | <optional> | 720 | Maximum height in pixels (default: 720) |
maxWidth | integer | <optional> | 1280 | Maximum width in pixels (default: 1280) |
Image URL string or empty string if no image available
- Type:
- string
(static) GetLogoURLFromItem(item, maxHeightopt, maxWidthopt) → {string}
Generate logo URL from JellyfinBaseItem node
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
item | object | JellyfinBaseItem content node | ||
maxHeight | integer | <optional> | 100 | Maximum height in pixels (default: 100) |
maxWidth | integer | <optional> | 300 | Maximum width in pixels (default: 300) |
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
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
item | object | JellyfinBaseItem content node | ||
maxHeight | integer | <optional> | 440 | Maximum height in pixels (default: 440) |
maxWidth | integer | <optional> | 295 | Maximum width in pixels (default: 295) |
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
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
user | JellyfinUser content node | |||
userObj | object | |||
maxHeight | integer | <optional> | 300 | Maximum height in pixels (default: 300) |
maxWidth | integer | <optional> | 300 | Maximum width in pixels (default: 300) |
Image URL string or empty string if no image available
- Type:
- string