add announcement back
This commit is contained in:
1 parent
2dc52cca04
commit
026a1d49d9
2 files changed
+28
No files matched your search
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Added
|
### Added
|
||||||
|
|
||||||
- Support for parsing playlist urls in web app (`https://www.youtube.com/playlist?list=ID`)
|
- Support for parsing playlist urls in web app (`https://www.youtube.com/playlist?list=ID`)
|
||||||
|
- Back the announcement for the `This helps protect our community` error message
|
||||||
|
|
||||||
## [0.25.5] - 2024-09-06
|
## [0.25.5] - 2024-09-06
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import "pkg:/components/EcpArgs.bs"
|
|||||||
import "pkg:/components/parts/AutoBind/AutoBind.part.bs"
|
import "pkg:/components/parts/AutoBind/AutoBind.part.bs"
|
||||||
import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs"
|
import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs"
|
||||||
import "pkg:/source/utils/LoadingScreen.bs"
|
import "pkg:/source/utils/LoadingScreen.bs"
|
||||||
|
import "pkg:/source/utils/Locale.bs"
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
m.scene = m.top.getScene()
|
m.scene = m.top.getScene()
|
||||||
@@ -18,6 +19,7 @@ function MainSceneContainerChanged()
|
|||||||
InitEcpArgs()
|
InitEcpArgs()
|
||||||
m.scene.signalBeacon("AppLaunchComplete")
|
m.scene.signalBeacon("AppLaunchComplete")
|
||||||
CopyLoadingMessagesToCache()
|
CopyLoadingMessagesToCache()
|
||||||
|
ShowAnnouncement()
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function StartWebServer()
|
function StartWebServer()
|
||||||
@@ -30,3 +32,28 @@ function StartWebServer()
|
|||||||
m.dialServer = m.top.findNode("DialServer")
|
m.dialServer = m.top.findNode("DialServer")
|
||||||
m.dialServer@.StartServer()
|
m.dialServer@.StartServer()
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
function ShowAnnouncement()
|
||||||
|
title = "Announcement"
|
||||||
|
|
||||||
|
message = [
|
||||||
|
"Hello again!",
|
||||||
|
"Invidious servers are actively getting blocked by YouTube.",
|
||||||
|
`You might see the error message "This helps protect our community. Learn more" when playing a video.`,
|
||||||
|
"This is a known issue and the Invidious dev team is working to fix it."
|
||||||
|
"See more information at https://github.com/iv-org/invidious/issues/4734"
|
||||||
|
"We apologize for the inconvenience."
|
||||||
|
]
|
||||||
|
|
||||||
|
buttons = [Tr(Locale.Buttons.OK)]
|
||||||
|
|
||||||
|
dialog = CreateObject("roSGNode", "SimpleDialog")
|
||||||
|
dialog.title = title
|
||||||
|
dialog.message = message
|
||||||
|
dialog.buttons = buttons
|
||||||
|
deviceInfo = CreateObject("roDeviceInfo")
|
||||||
|
displaySize = deviceInfo.GetDisplaySize()
|
||||||
|
dialog.width = displaySize.w - 180
|
||||||
|
|
||||||
|
m.top.getScene().dialog = dialog
|
||||||
|
end function
|
||||||
Reference in new issue
Block a user