Announcement
This commit is contained in:
1 parent
141c80c618
commit
5ea6e11345
5 files changed
+72
-21
No files matched your search
@@ -10,6 +10,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Improve performance of video bookmarks, by avoiding `/player` endpoint and caching results
|
- Improve performance of video bookmarks, by avoiding `/player` endpoint and caching results
|
||||||
|
- Github link to create new issue not working in web app due to url being too long
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Added instructions to use web app as a workaround to current errors
|
||||||
|
|
||||||
## [0.40.5] - 2025-06-19
|
## [0.40.5] - 2025-06-19
|
||||||
|
|
||||||
|
|||||||
@@ -23,12 +23,28 @@ namespace DialogUtils
|
|||||||
|
|
||||||
if options.DoesExist("message")
|
if options.DoesExist("message")
|
||||||
message = options.message
|
message = options.message
|
||||||
if GetInterface(message, "ifArray") = invalid
|
if IsString(message)
|
||||||
message = message.Tokenize(`\n`).ToArray()
|
message = message.Tokenize(`\n`).ToArray()
|
||||||
end if
|
end if
|
||||||
dialog.message = message
|
dialog.message = message
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
if options.DoesExist("bulletText")
|
||||||
|
bulletText = options.bulletText
|
||||||
|
if IsString(bulletText)
|
||||||
|
bulletText = bulletText.Tokenize(`\n`).ToArray()
|
||||||
|
end if
|
||||||
|
dialog.bulletText = bulletText
|
||||||
|
end if
|
||||||
|
|
||||||
|
if options.DoesExist("bottomMessage")
|
||||||
|
bottomMessage = options.bottomMessage
|
||||||
|
if IsString(bottomMessage)
|
||||||
|
bottomMessage = bottomMessage.Tokenize(`\n`).ToArray()
|
||||||
|
end if
|
||||||
|
dialog.bottomMessage = bottomMessage
|
||||||
|
end if
|
||||||
|
|
||||||
if options.DoesExist("title")
|
if options.DoesExist("title")
|
||||||
dialog.title = options.title
|
dialog.title = options.title
|
||||||
end if
|
end if
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ function SetScenePalette(scene as object) as void
|
|||||||
scene.palette = palette
|
scene.palette = palette
|
||||||
end function
|
end function
|
||||||
|
|
||||||
const HAS_ANNOUNCEMENT = false
|
const HAS_ANNOUNCEMENT = true
|
||||||
|
|
||||||
function MainSceneContainerChanged()
|
function MainSceneContainerChanged()
|
||||||
AutoBindSceneGraph()
|
AutoBindSceneGraph()
|
||||||
@@ -62,18 +62,26 @@ function StartWebServer()
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function ShowAnnouncement() as boolean
|
function ShowAnnouncement() as boolean
|
||||||
|
deviceInfo = CreateObject("roDeviceInfo")
|
||||||
|
deviceName = deviceInfo.GetFriendlyName()
|
||||||
|
|
||||||
dialog = DialogUtils.ShowDialogOnce({
|
dialog = DialogUtils.ShowDialogOnce({
|
||||||
messageId: "1747362859"
|
messageId: "1750501488"
|
||||||
title: "Announcement - YouTube account support"
|
title: "Web app workaround"
|
||||||
message: [
|
message: [
|
||||||
"YouTube account support is now available in Playlet!"
|
"If you're experiencing issues playing videos, please consider this workaround while we work on a fix:"
|
||||||
`Subscriptions, playlists, watch history and "Recommended" are now available in the app.`
|
]
|
||||||
"If you encounter any issues, please report them on GitHub."
|
bulletText: [
|
||||||
"https://github.com/iBicha/playlet/issues"
|
`Go to the "Remote" screen, and scan the QR code to open the web app in your browser.`
|
||||||
"Thank you."
|
`Tap the video you want to play.`
|
||||||
|
`Select the "Play on ${deviceName} (ytjs)" button.`
|
||||||
|
]
|
||||||
|
bottomMessage: [
|
||||||
|
"Apologies for the inconvenience, and thank you for your patience!"
|
||||||
|
"Issue link: https://github.com/iBicha/playlet/issues/626"
|
||||||
]
|
]
|
||||||
alwaysOnTop: true
|
alwaysOnTop: true
|
||||||
marginWidth: 180
|
large: true
|
||||||
})
|
})
|
||||||
|
|
||||||
if dialog = invalid
|
if dialog = invalid
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ function MainSceneContainerChanged()
|
|||||||
StartWebServer()
|
StartWebServer()
|
||||||
HideLoadingScreen()
|
HideLoadingScreen()
|
||||||
InitEcpArgs()
|
InitEcpArgs()
|
||||||
if false
|
if true
|
||||||
if not ShowAnnouncement()
|
if not ShowAnnouncement()
|
||||||
m.scene.signalBeacon("AppLaunchComplete")
|
m.scene.signalBeacon("AppLaunchComplete")
|
||||||
end if
|
end if
|
||||||
@@ -58,18 +58,25 @@ function StartWebServer()
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function ShowAnnouncement() as boolean
|
function ShowAnnouncement() as boolean
|
||||||
|
deviceInfo = CreateObject("roDeviceInfo")
|
||||||
|
deviceName = deviceInfo.GetFriendlyName()
|
||||||
dialog = DialogUtils_ShowDialogOnce({
|
dialog = DialogUtils_ShowDialogOnce({
|
||||||
messageId: "1747362859"
|
messageId: "1750501488"
|
||||||
title: "Announcement - YouTube account support"
|
title: "Web app workaround"
|
||||||
message: [
|
message: [
|
||||||
"YouTube account support is now available in Playlet!"
|
"If you're experiencing issues playing videos, please consider this workaround while we work on a fix:"
|
||||||
"Subscriptions, playlists, watch history and " + chr(34) + "Recommended" + chr(34) + " are now available in the app."
|
]
|
||||||
"If you encounter any issues, please report them on GitHub."
|
bulletText: [
|
||||||
"https://github.com/iBicha/playlet/issues"
|
"Go to the " + chr(34) + "Remote" + chr(34) + " screen, and scan the QR code to open the web app in your browser."
|
||||||
"Thank you."
|
"Tap the video you want to play."
|
||||||
|
("Select the " + chr(34) + "Play on " + bslib_toString(deviceName) + " (ytjs)" + chr(34) + " button.")
|
||||||
|
]
|
||||||
|
bottomMessage: [
|
||||||
|
"Apologies for the inconvenience, and thank you for your patience!"
|
||||||
|
"Issue link: https://github.com/iBicha/playlet/issues/626"
|
||||||
]
|
]
|
||||||
alwaysOnTop: true
|
alwaysOnTop: true
|
||||||
marginWidth: 180
|
large: true
|
||||||
})
|
})
|
||||||
if dialog = invalid
|
if dialog = invalid
|
||||||
return false
|
return false
|
||||||
|
|||||||
@@ -138,8 +138,23 @@ ${JSON.stringify(profilesInfo, null, 2)}
|
|||||||
}
|
}
|
||||||
|
|
||||||
function createGithubIssueUrl() {
|
function createGithubIssueUrl() {
|
||||||
const body = encodeURIComponent(createFeedbackBody());
|
const body = createFeedbackBody();
|
||||||
return `https://github.com/iBicha/playlet/issues/new?title=${feedbackTitle}&body=${body}`;
|
let bodyEncoded = encodeURIComponent(body);
|
||||||
|
|
||||||
|
// Github url known limit is 8192
|
||||||
|
// Limit body, otherwise URL might be too long
|
||||||
|
// This is an body arbitrary limit, that should keep us under the 8192 limit
|
||||||
|
const encodedBodyLimit = 8000;
|
||||||
|
const bodyLimit = 4200;
|
||||||
|
if (bodyEncoded.length > encodedBodyLimit) {
|
||||||
|
bodyEncoded = encodeURIComponent(
|
||||||
|
body.substring(0, bodyLimit) + "\n\n[...truncated]"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const url = `https://github.com/iBicha/playlet/issues/new?title=${feedbackTitle}&body=${bodyEncoded}`;
|
||||||
|
console.log("Github URL length:", url.length);
|
||||||
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
function createMailToUrl() {
|
function createMailToUrl() {
|
||||||
|
|||||||
Reference in new issue
Block a user