Methods
(static) buildChapterItems(data) → {object}
Build JellyfinBaseItem nodes for the chapters row. Uses real chapters from API when available, otherwise generates synthetic chapters at adaptive intervals for videos >= 10 minutes.
Parameters:
| Name | Type | Description |
|---|---|---|
data | object | JellyfinBaseItem node for the current video |
Returns:
Array of JellyfinBaseItem nodes, or empty array if no chapters to show
- Type:
- object
(static) generateSyntheticChapters(runTimeTicks) → {object}
Generate evenly-spaced synthetic chapters for videos without chapter metadata. Adaptive interval: 5 min for <30 min, 10 min for 30-<120 min, 15 min for >=2 hours.
Parameters:
| Name | Type | Description |
|---|---|---|
runTimeTicks | longinteger | Video duration in ticks (100-nanosecond units) |
Returns:
Array of chapter-like AAs with Name, StartPositionTicks, and ImageTag fields
- Type:
- object