Skip to content

Commit 54de6ff

Browse files
chore(docs): update code docs
1 parent 77260c3 commit 54de6ff

12 files changed

Lines changed: 108 additions & 34 deletions

docs/components_home_HomeRows.bs.html

Lines changed: 49 additions & 19 deletions
Large diffs are not rendered by default.

docs/components_home_LoadItemsTask.bs.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,23 @@
169169
end for
170170
end if
171171

172+
else if m.top.itemsToLoad = "activeRecordings"
173+
params = {}
174+
params["userId"] = globalUser.id
175+
params["isInProgress"] = true
176+
params["limit"] = 16 ' parity with onNow
177+
params["imageTypeLimit"] = 1
178+
params["enableImageTypes"] = "Primary,Thumb,Backdrop"
179+
params["enableTotalRecordCount"] = false
180+
params["fields"] = "ChannelInfo,PrimaryImageAspectRatio"
181+
182+
data = fetchJson(GetApi().BuildGetLiveTvRecordingsRequest(params), "activeRecordings")
183+
if isValid(data) and isValid(data.Items)
184+
for each item in data.Items
185+
results.push(m.transformer.transformBaseItem(item))
186+
end for
187+
end if
188+
172189
' Extract array of persons from Views and download full metadata for each
173190
else if m.top.itemsToLoad = "people"
174191
if not isValid(m.top.peopleList)

docs/components_ui_rowitem_JRRowItem.bs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@
265265
' which never reach renderItem() and would otherwise leak the observer.
266266
' This function therefore only needs to install — not clear.
267267
sub applyPlayedPercentage(item as object)
268-
if item.type = "Program"
268+
if item.type = "Program" or item.type = "Recording"
269269
nowSeconds = CreateObject("roDateTime").AsSeconds()
270270
m.poster.playedPercentage = computeProgramBroadcastProgress(item.PlayStart, item.PlayDuration, nowSeconds)
271271
item.observeField("playedPercentage", "onProgramProgressChanged")

docs/components_ui_rowlist_JRRowList.bs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
if isValid(row)
185185
for j = 0 to row.getChildCount() - 1
186186
item = row.getChild(j)
187-
if isValid(item) and item.type = "Program"
187+
if isValid(item) and (item.type = "Program" or item.type = "Recording")
188188
item.playedPercentage = computeProgramBroadcastProgress(item.PlayStart, item.PlayDuration, nowSeconds)
189189
' Expiry check uses the same window math as the progress computation.
190190
' PlayStart/PlayDuration default to 0 for items missing broadcast data —

docs/data/search.json

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

docs/module-ApiClient.ApiClient.html

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

docs/module-ApiClient.html

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

docs/module-HomeRows.html

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

docs/module-migrations.html

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

docs/source_api_ApiClient.bs.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,13 @@
669669
return m.validatedReq("GET", buildURL("/LiveTv/Programs/Recommended", params))
670670
end function
671671

672+
' Build a request AA to get Live TV recordings, for use with fetchRes() or fetchJson().
673+
' @param params - Query parameters (isInProgress, limit, status, etc.)
674+
' @returns Request AA: { method, url } or invalid if server URL not set
675+
function BuildGetLiveTvRecordingsRequest(params = {} as object) as dynamic
676+
return m.validatedReq("GET", buildURL("/LiveTv/Recordings", params))
677+
end function
678+
672679
' ═══════════════════════════════════════════════════════════════════════════
673680
' STUDIOS ENDPOINTS
674681
' ═══════════════════════════════════════════════════════════════════════════

0 commit comments

Comments
 (0)