Skip to content

Commit 729201a

Browse files
chore(docs): update code docs
1 parent a0efe37 commit 729201a

15 files changed

Lines changed: 951 additions & 123 deletions

docs/components_ItemDetails.bs.html

Lines changed: 575 additions & 36 deletions
Large diffs are not rendered by default.

docs/components_extras_ExtrasRowList.bs.html

Lines changed: 123 additions & 4 deletions
Large diffs are not rendered by default.

docs/components_home_FavoritesRows.bs.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"Audio": tr("Songs"),
3737
"Video": tr("Videos"),
3838
"MusicVideo": tr("Music Videos"),
39+
"Program": tr("Programs"),
3940
"TvChannel": tr("Channels"),
4041
"Recording": tr("Recordings"),
4142
"PhotoAlbum": tr("Photo Albums"),
@@ -228,12 +229,12 @@
228229
' Returns the appropriate slot size for a Jellyfin item type.
229230
' Follows the same logic as SearchRow.bs getSlotSizeForType.
230231
' WIDE (16:9) — Episode, Video, MusicVideo, PhotoAlbum, Photo
231-
' SQUARE (1:1) — Music types, Playlist, TvChannel, Recording
232+
' SQUARE (1:1) — Music types, Playlist, Program, TvChannel, Recording
232233
' PORTRAIT (2:3) — all others (Movie, Series, Person, BoxSet, etc.)
233234
function getSlotSizeForType(itemType as string) as object
234235
if itemType = "Episode" or itemType = "Video" or itemType = "MusicVideo" or itemType = "PhotoAlbum" or itemType = "Photo"
235236
return rowSlotSize.WIDE
236-
else if itemType = "MusicArtist" or itemType = "MusicAlbum" or itemType = "Audio" or itemType = "Playlist" or itemType = "TvChannel" or itemType = "Recording"
237+
else if itemType = "MusicArtist" or itemType = "MusicAlbum" or itemType = "Audio" or itemType = "Playlist" or itemType = "Program" or itemType = "TvChannel" or itemType = "Recording"
237238
return rowSlotSize.SQUARE
238239
end if
239240
return rowSlotSize.PORTRAIT

docs/components_home_LoadItemsTask.bs.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,40 @@
361361
if isValid(node) then results.push(node)
362362
end for
363363
end if
364+
else if m.top.itemsToLoad = "photoAlbumItems"
365+
' All photos in a PhotoAlbum, sorted by name.
366+
data = fetchJson(GetApi().BuildGetItemsByQueryRequest({
367+
"ParentId": m.top.itemId,
368+
"IncludeItemTypes": "Photo",
369+
"SortBy": "SortName",
370+
"SortOrder": "Ascending",
371+
"Fields": "PrimaryImageAspectRatio",
372+
"EnableTotalRecordCount": false
373+
}), "photoAlbumItems")
374+
if isValid(data) and isValid(data.Items)
375+
for each item in data.Items
376+
node = m.transformer.transformBaseItem(item)
377+
if isValid(node) then results.push(node)
378+
end for
379+
end if
380+
else if m.top.itemsToLoad = "channelPrograms"
381+
' Upcoming (not yet aired) programs on a Live TV channel, sorted by start time.
382+
' ChannelInfo required for subtitle display (channel name) in JRRowItem.
383+
data = fetchJson(GetApi().BuildGetLiveTVProgramsRequest({
384+
"ChannelIds": m.top.itemId,
385+
"HasAired": false,
386+
"SortBy": "StartDate",
387+
"SortOrder": "Ascending",
388+
"Limit": 20,
389+
"Fields": "ChannelInfo,PrimaryImageAspectRatio,Overview",
390+
"EnableTotalRecordCount": false
391+
}), "channelPrograms")
392+
if isValid(data) and isValid(data.Items)
393+
for each item in data.Items
394+
node = m.transformer.transformBaseItem(item)
395+
if isValid(node) then results.push(node)
396+
end for
397+
end if
364398
end if
365399

366400
m.top.content = results

docs/components_liveTv_RecordProgramTask.bs.html

Lines changed: 34 additions & 12 deletions
Large diffs are not rendered by default.

docs/data/search.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/module-ExtrasRowList.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/module-FavoritesRows.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/module-ItemDetails.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/module-Main.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)