Skip to content

Commit

Permalink
Update API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert authored and github-actions[bot] committed Oct 28, 2023
1 parent e055aa7 commit 62e9f3b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/api/components_GetPlaybackInfoTask.brs.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ <h1 class="page-title">Source: components/GetPlaybackInfoTask.brs</h1>
' Returns an array of playback info to be displayed during playback.
' In the future, with a custom playback info view, we can return an associated array.
sub getPlaybackInfoTask()
sessions = api.sessions.Get()
sessions = api.sessions.Get({ "deviceId": m.global.device.serverDeviceName })

m.playbackInfo = ItemPostPlaybackInfo(m.top.videoID)

Expand Down
2 changes: 1 addition & 1 deletion docs/api/quicksearch.html

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions docs/api/source_ShowScenes.brs.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ <h1 class="page-title">Source: source/ShowScenes.brs</h1>
else
print "Success! Auth token is still valid"
session.user.Login(currentUser, true)
session.user.LoadUserPreferences()
LoadUserAbilities()
return true
end if
Expand All @@ -204,7 +203,6 @@ <h1 class="page-title">Source: source/ShowScenes.brs</h1>
if isValid(userData)
print "login success!"
session.user.Login(userData, true)
session.user.LoadUserPreferences()
LoadUserAbilities()
return true
else
Expand Down Expand Up @@ -247,7 +245,6 @@ <h1 class="page-title">Source: source/ShowScenes.brs</h1>
if isValid(userData)
print "login success!"
session.user.Login(userData, true)
session.user.LoadUserPreferences()
LoadUserAbilities()
return true
else
Expand All @@ -273,7 +270,6 @@ <h1 class="page-title">Source: source/ShowScenes.brs</h1>
goto start_login
end if

session.user.LoadUserPreferences()
LoadUserAbilities()
m.global.sceneManager.callFunc("clearScenes")

Expand Down
3 changes: 2 additions & 1 deletion docs/api/source_VideoPlayer.brs.html
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,8 @@ <h1 class="page-title">Source: source/VideoPlayer.brs</h1>
' Returns an array of playback info to be displayed during playback.
' In the future, with a custom playback info view, we can return an associated array.
function GetPlaybackInfo()
sessions = api.sessions.Get()
sessions = api.sessions.Get({ "deviceId": m.global.device.serverDeviceName })

if isValid(sessions) and sessions.Count() > 0
return GetTranscodingStats(sessions[0])
end if
Expand Down
6 changes: 1 addition & 5 deletions docs/api/source_api_baserequest.brs.html
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,7 @@ <h1 class="page-title">Source: source/api/baserequest.brs</h1>
auth = auth + ", UserId=" + QUOTE + m.global.session.user.id + QUOTE
end if

if m.global.session.user &lt;> invalid and m.global.session.user.friendlyName &lt;> invalid
auth = auth + ", DeviceId=" + QUOTE + m.global.device.id + m.global.session.user.friendlyName + QUOTE
else
auth = auth + ", DeviceId=" + QUOTE + m.global.device.id + QUOTE
end if
auth = auth + ", DeviceId=" + QUOTE + m.global.device.serverDeviceName + QUOTE

if m.global.session.user.authToken &lt;> invalid
auth = auth + ", Token=" + QUOTE + m.global.session.user.authToken + QUOTE
Expand Down
1 change: 1 addition & 0 deletions docs/api/source_utils_globals.brs.html
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ <h1 class="page-title">Source: source/utils/globals.brs</h1>
uuid: deviceInfo.GetRandomUUID(),
name: displayName,
friendlyName: filteredFriendly,
serverDeviceName: deviceInfo.getChannelClientID(),
model: deviceInfo.GetModel(),
modelType: deviceInfo.GetModelType(),
modelDetails: deviceInfo.GetModelDetails(),
Expand Down

0 comments on commit 62e9f3b

Please sign in to comment.