[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/),
|
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).
|
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
|
## [0.40.5] - 2025-06-19
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import "pkg:/source/utils/StringUtils.bs"
|
|||||||
import "pkg:/source/utils/Types.bs"
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
function InitEcpArgs()
|
function InitEcpArgs()
|
||||||
|
m.videoQueue = m.top.findNode("VideoQueue")
|
||||||
LaunchArgumentsReceived()
|
LaunchArgumentsReceived()
|
||||||
|
|
||||||
m.scene.ObserveField("inputArgs", FuncName(InputArgumentsReceived))
|
m.scene.ObserveField("inputArgs", FuncName(InputArgumentsReceived))
|
||||||
@@ -28,14 +29,6 @@ function ProcessArguments(args as object) as void
|
|||||||
return
|
return
|
||||||
end if
|
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)
|
if not StringUtils.IsNullOrEmpty(args.contentId) and StringUtils.IsNullOrEmpty(args.videoId)
|
||||||
args.videoId = args.contentId
|
args.videoId = args.contentId
|
||||||
end if
|
end if
|
||||||
@@ -50,9 +43,6 @@ function ProcessArguments(args as object) as void
|
|||||||
if args.timestamp <> invalid
|
if args.timestamp <> invalid
|
||||||
node.timestamp = args.timestamp
|
node.timestamp = args.timestamp
|
||||||
end if
|
end if
|
||||||
if m.videoQueue = invalid
|
|
||||||
m.videoQueue = m.top.findNode("VideoQueue")
|
|
||||||
end if
|
|
||||||
m.videoQueue.playVideo = node
|
m.videoQueue.playVideo = node
|
||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
Reference in new issue
Block a user