[skip ci] Revert "Set visitor data through launch args"
This reverts commit 4926c3df5b.
This commit is contained in:
1 parent
4926c3df5b
commit
a49f7e8d99
2 files changed
+5
-11
No files matched your search
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
- Nothing worth mentioning yet.
|
||||
|
||||
## [0.40.5] - 2025-06-19
|
||||
|
||||
### Added
|
||||
|
||||
@@ -3,6 +3,7 @@ import "pkg:/source/utils/StringUtils.bs"
|
||||
import "pkg:/source/utils/Types.bs"
|
||||
|
||||
function InitEcpArgs()
|
||||
m.videoQueue = m.top.findNode("VideoQueue")
|
||||
LaunchArgumentsReceived()
|
||||
|
||||
m.scene.ObserveField("inputArgs", FuncName(InputArgumentsReceived))
|
||||
@@ -28,14 +29,6 @@ function ProcessArguments(args as object) as void
|
||||
return
|
||||
end if
|
||||
|
||||
if not StringUtils.IsNullOrEmpty(args.visitorData)
|
||||
if m.innertube = invalid
|
||||
m.innertube = m.top.findNode("InnerTube")
|
||||
end if
|
||||
|
||||
m.innertube.visitorData = args.visitorData
|
||||
end if
|
||||
|
||||
if not StringUtils.IsNullOrEmpty(args.contentId) and StringUtils.IsNullOrEmpty(args.videoId)
|
||||
args.videoId = args.contentId
|
||||
end if
|
||||
@@ -50,9 +43,6 @@ function ProcessArguments(args as object) as void
|
||||
if args.timestamp <> invalid
|
||||
node.timestamp = args.timestamp
|
||||
end if
|
||||
if m.videoQueue = invalid
|
||||
m.videoQueue = m.top.findNode("VideoQueue")
|
||||
end if
|
||||
m.videoQueue.playVideo = node
|
||||
end if
|
||||
end function
|
||||
Reference in new issue
Block a user