diff --git a/CHANGELOG.md b/CHANGELOG.md
index c454b458..58a8f052 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,12 @@ 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]
+
+### Changed
+
+- Updated announcement
+
## [0.22.1] - 2024-03-30
### Added
diff --git a/playlet-lib/src/components/MainScene.bs b/playlet-lib/src/components/MainScene.bs
index d0bf72df..9c9ceef0 100644
--- a/playlet-lib/src/components/MainScene.bs
+++ b/playlet-lib/src/components/MainScene.bs
@@ -1,8 +1,8 @@
-import "Dialog/DialogUtils.bs"
import "pkg:/components/EcpArgs.bs"
import "pkg:/components/parts/AutoBind/AutoBind.part.bs"
import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs"
import "pkg:/source/utils/LoadingScreen.bs"
+import "pkg:/source/utils/Locale.bs"
function Init()
m.scene = m.top.getScene()
@@ -34,5 +34,35 @@ function StartWebServer()
end function
function ShowAnnouncement()
- DialogUtils.ShowDialog(`Invidious is currently experiencing a major outage affecting all public and private instances.\nPlaying videos might not work.\nPlease be patient while the issue is being resolved.\nWe apologize for the inconvenience.\nIssue url: https://github.com/iv-org/invidious/issues/4498`, "Announcement", true)
+ title = "Announcement"
+
+ message = [
+ "Invidious was experiencing an outage, and a fix has been deployed.",
+ "If you are experiencing issues playing videos:",
+ ]
+
+ bulletText = [
+ "For custom Invidious instances, please update to the latest version.",
+ "For public Invidious instances, go to Settings -> Invidious -> Instance, and select an instance with a version 2024.03.31 or newer."
+ ]
+
+ bottomMessage = [
+ "If you don't know what instance you're using, follow the instructions from step 2."
+ "We apologize for the inconvenience."
+ ]
+
+ buttons = [Tr(Locale.Buttons.OK)]
+
+ dialog = CreateObject("roSGNode", "SimpleDialog")
+ dialog.title = title
+ dialog.message = message
+ dialog.bulletText = bulletText
+ dialog.bulletType = "numbered"
+ dialog.bottomMessage = bottomMessage
+ dialog.buttons = buttons
+ deviceInfo = CreateObject("roDeviceInfo")
+ displaySize = deviceInfo.GetDisplaySize()
+ dialog.width = displaySize.w - 180
+
+ m.top.getScene().dialog = dialog
end function
diff --git a/playlet-lib/src/components/MainScene.transpiled.brs b/playlet-lib/src/components/MainScene.transpiled.brs
index 6a13d11c..6cc749dd 100644
--- a/playlet-lib/src/components/MainScene.transpiled.brs
+++ b/playlet-lib/src/components/MainScene.transpiled.brs
@@ -1,8 +1,8 @@
-'import "Dialog/DialogUtils.bs"
'import "pkg:/components/EcpArgs.bs"
'import "pkg:/components/parts/AutoBind/AutoBind.part.bs"
'import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs"
'import "pkg:/source/utils/LoadingScreen.bs"
+'import "pkg:/source/utils/Locale.bs"
function Init()
InitializeBindings() ' auto-generated!
@@ -33,6 +33,32 @@ function StartWebServer()
end function
function ShowAnnouncement()
- DialogUtils_ShowDialog("Invidious is currently experiencing a major outage affecting all public and private instances." + chr(10) + "Playing videos might not work." + chr(10) + "Please be patient while the issue is being resolved." + chr(10) + "We apologize for the inconvenience." + chr(10) + "Issue url: https://github.com/iv-org/invidious/issues/4498", "Announcement", true)
+ title = "Announcement"
+ message = [
+ "Invidious was experiencing an outage, and a fix has been deployed."
+ "If you are experiencing issues playing videos:"
+ ]
+ bulletText = [
+ "For custom instances, please update to the latest version."
+ "For public instances, go to Settings -> Invidious -> Instance, and select an instance with a version 2024.03.31 or newer."
+ ]
+ bottomMessage = [
+ "If you don't know what instance you're using, follow the instructions from step 2."
+ "We apologize for the inconvenience."
+ ]
+ buttons = [
+ Tr("OK")
+ ]
+ dialog = CreateObject("roSGNode", "SimpleDialog")
+ dialog.title = title
+ dialog.message = message
+ dialog.bulletText = bulletText
+ dialog.bulletType = "numbered"
+ dialog.bottomMessage = bottomMessage
+ dialog.buttons = buttons
+ deviceInfo = CreateObject("roDeviceInfo")
+ displaySize = deviceInfo.GetDisplaySize()
+ dialog.width = displaySize.w - 180
+ m.top.getScene().dialog = dialog
end function
'//# sourceMappingURL=./MainScene.brs.map
\ No newline at end of file
diff --git a/playlet-lib/src/components/MainScene.transpiled.xml b/playlet-lib/src/components/MainScene.transpiled.xml
index 88f38a6a..b39b0314 100644
--- a/playlet-lib/src/components/MainScene.transpiled.xml
+++ b/playlet-lib/src/components/MainScene.transpiled.xml
@@ -16,7 +16,6 @@
-