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
|
end function
|
||||||
|
|
||||||
function ShowAnnouncement()
|
function ShowAnnouncement()
|
||||||
title = "Announcement #2 - web app hot fix"
|
title = "Announcement #3 - Playlet innertube backend"
|
||||||
|
|
||||||
message = [
|
message = [
|
||||||
"Invidious servers continue being blocked by YouTube. https://github.com/iBicha/playlet/issues/400"
|
"Most public Invidious instances don't currently work."
|
||||||
"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.",
|
"A new backend to play video data has been added to the settings, and it is enabled by default."
|
||||||
"How to use:"
|
"If you would like to use your Invidious instance for playback, you can change the backend in the settings."
|
||||||
]
|
"Thank you."
|
||||||
|
|
||||||
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."
|
|
||||||
]
|
]
|
||||||
|
|
||||||
buttons = [Tr(Locale.Buttons.OK)]
|
buttons = [Tr(Locale.Buttons.OK)]
|
||||||
@@ -66,8 +57,6 @@ function ShowAnnouncement()
|
|||||||
dialog = CreateObject("roSGNode", "SimpleDialog")
|
dialog = CreateObject("roSGNode", "SimpleDialog")
|
||||||
dialog.title = title
|
dialog.title = title
|
||||||
dialog.message = message
|
dialog.message = message
|
||||||
dialog.bulletText = bulletText
|
|
||||||
dialog.bottomMessage = bottomMessage
|
|
||||||
dialog.buttons = buttons
|
dialog.buttons = buttons
|
||||||
deviceInfo = CreateObject("roDeviceInfo")
|
deviceInfo = CreateObject("roDeviceInfo")
|
||||||
displaySize = deviceInfo.GetDisplaySize()
|
displaySize = deviceInfo.GetDisplaySize()
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ namespace InnertubeService
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function MakePayload(videoId as string) as object
|
function MakePayload(videoId as string) as object
|
||||||
|
deviceInfo = CreateObject("roDeviceInfo")
|
||||||
return {
|
return {
|
||||||
"playbackContext": {
|
"playbackContext": {
|
||||||
"contentPlaybackContext": {
|
"contentPlaybackContext": {
|
||||||
@@ -80,7 +81,7 @@ namespace InnertubeService
|
|||||||
"platform": "MOBILE"
|
"platform": "MOBILE"
|
||||||
"clientFormFactor": "UNKNOWN_FORM_FACTOR"
|
"clientFormFactor": "UNKNOWN_FORM_FACTOR"
|
||||||
"userInterfaceTheme": "USER_INTERFACE_THEME_LIGHT"
|
"userInterfaceTheme": "USER_INTERFACE_THEME_LIGHT"
|
||||||
"timeZone": "America/Toronto"
|
"timeZone": deviceInfo.GetTimeZone()
|
||||||
"originalUrl": "https://www.youtube.com"
|
"originalUrl": "https://www.youtube.com"
|
||||||
"deviceMake": "Apple"
|
"deviceMake": "Apple"
|
||||||
"deviceModel": "iPhone10,6"
|
"deviceModel": "iPhone10,6"
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
{
|
{
|
||||||
displayText: "Backend",
|
displayText: "Backend",
|
||||||
key: "playback.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",
|
type: "radio",
|
||||||
defaultValue: "playlet",
|
defaultValue: "playlet",
|
||||||
options: [
|
options: [
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
value: "invidious",
|
value: "invidious",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayText: "Playlet",
|
displayText: "Playlet (local)",
|
||||||
value: "playlet",
|
value: "playlet",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in new issue
Block a user