This commit is contained in:
github-action linter committed 2023-01-03 23:20:06 +00:00
1 parent 29651fee1f
commit 578798216d
3 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -93,7 +93,7 @@ end function
function OnWebServerCommand()
if m.serverTask.command.StartsWith("play:")
sender = m.videoContainer.sender ?? m.currentFocued
PlayVideo(m.serverTask.command.Mid(5), {sender: sender})
PlayVideo(m.serverTask.command.Mid(5), { sender: sender })
end if
end function
@@ -112,7 +112,7 @@ function LaunchArgumentsReceived()
? "LaunchArgumentsReceived" m.top.launchArgs
if m.top.launchArgs <> invalid and m.top.launchArgs.contentId <> invalid
sender = m.videoContainer.sender ?? m.currentFocued
PlayVideo(m.top.launchArgs.contentId, {sender: sender})
PlayVideo(m.top.launchArgs.contentId, { sender: sender })
end if
end function
@@ -120,6 +120,6 @@ function InputArgumentsReceived()
? "InputArgumentsReceived" m.top.inputArgs
if m.top.inputArgs <> invalid and m.top.inputArgs.contentId <> invalid
sender = m.videoContainer.sender ?? m.currentFocued
PlayVideo(m.top.inputArgs.contentId, {sender: sender})
PlayVideo(m.top.inputArgs.contentId, { sender: sender })
end if
end function
+1 -1
View File
@@ -3,7 +3,7 @@ import "pkg:/components/Dialog/DialogUtils.bs"
function PlayVideo(videoId as string, args = invalid as object)
sender = args?.sender
metadata = args?.metadata
metadata = args?.metadata
if metadata <> invalid and GetInterface(metadata, "ifSGNodeField") <> invalid
metadata = args.metadata.getFields()
+1 -1
View File
@@ -59,7 +59,7 @@ function SetMetadata() as void
if m.top.metadata = invalid
return
end if
metadata = m.top.metadata
contentNode = CreateObject("roSGNode", "ContentNode")
contentNode.addFields({ metadata: metadata })