Tweaks
This commit is contained in:
1 parent
0f4236984e
commit
dc00c1e14b
3 files changed
+9
-19
No files matched your search
@@ -43,22 +43,13 @@ function GetDeviceFriendlyName() as string
|
||||
end function
|
||||
|
||||
function ShowAnnouncement()
|
||||
title = "Announcement #2 - web app hot fix"
|
||||
title = "Announcement #3 - Playlet innertube backend"
|
||||
|
||||
message = [
|
||||
"Invidious servers continue being blocked by YouTube. https://github.com/iBicha/playlet/issues/400"
|
||||
"A temporary workaround has been implemented which relies on your Roku device instead of Invidious for streaming data. This workaround is limited, doesn't always work, and doesn't have captions.",
|
||||
"How to use:"
|
||||
]
|
||||
|
||||
bulletText = [
|
||||
`Go to the "Remote" screen, and open Playlet Web App in your browser`
|
||||
"In the web app, tap the video you want to play"
|
||||
`Choose "Play on ${GetDeviceFriendlyName()} (HOT FIX)"`
|
||||
]
|
||||
|
||||
bottomMessage = [
|
||||
"We apologize for the inconvenience."
|
||||
"Most public Invidious instances don't currently work."
|
||||
"A new backend to play video data has been added to the settings, and it is enabled by default."
|
||||
"If you would like to use your Invidious instance for playback, you can change the backend in the settings."
|
||||
"Thank you."
|
||||
]
|
||||
|
||||
buttons = [Tr(Locale.Buttons.OK)]
|
||||
@@ -66,8 +57,6 @@ function ShowAnnouncement()
|
||||
dialog = CreateObject("roSGNode", "SimpleDialog")
|
||||
dialog.title = title
|
||||
dialog.message = message
|
||||
dialog.bulletText = bulletText
|
||||
dialog.bottomMessage = bottomMessage
|
||||
dialog.buttons = buttons
|
||||
deviceInfo = CreateObject("roDeviceInfo")
|
||||
displaySize = deviceInfo.GetDisplaySize()
|
||||
|
||||
@@ -44,6 +44,7 @@ namespace InnertubeService
|
||||
end function
|
||||
|
||||
function MakePayload(videoId as string) as object
|
||||
deviceInfo = CreateObject("roDeviceInfo")
|
||||
return {
|
||||
"playbackContext": {
|
||||
"contentPlaybackContext": {
|
||||
@@ -80,7 +81,7 @@ namespace InnertubeService
|
||||
"platform": "MOBILE"
|
||||
"clientFormFactor": "UNKNOWN_FORM_FACTOR"
|
||||
"userInterfaceTheme": "USER_INTERFACE_THEME_LIGHT"
|
||||
"timeZone": "America/Toronto"
|
||||
"timeZone": deviceInfo.GetTimeZone()
|
||||
"originalUrl": "https://www.youtube.com"
|
||||
"deviceMake": "Apple"
|
||||
"deviceModel": "iPhone10,6"
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
{
|
||||
displayText: "Backend",
|
||||
key: "playback.backend",
|
||||
description: "The backend used for fetching video data",
|
||||
description: "The backend used for fetching video data. The Playlet backend is experimental",
|
||||
type: "radio",
|
||||
defaultValue: "playlet",
|
||||
options: [
|
||||
@@ -44,7 +44,7 @@
|
||||
value: "invidious",
|
||||
},
|
||||
{
|
||||
displayText: "Playlet",
|
||||
displayText: "Playlet (local)",
|
||||
value: "playlet",
|
||||
},
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user