Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f5ceac4e09 | ||
|
|
694cb78947 | ||
|
|
72bf86f376 | ||
|
|
e204a027fe | ||
|
|
1797486279 | ||
|
|
3a0ab2fc48 | ||
|
|
5c66b91fe9 | ||
|
|
54a99935c7 | ||
|
|
f16681adeb | ||
|
|
638ce18aa8 |
No files matched your search
+15
-3
@@ -5,15 +5,27 @@ 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/),
|
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).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [0.40.11] - 2025-08-18
|
## [0.40.14] - 2025-08-22
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Error loading feed when device language is Australian English (`en_AU`)
|
||||||
|
|
||||||
|
## [0.40.13] - 2025-08-19
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- A bug with playback when backend is set to "Invidious" but not instance is specified
|
||||||
|
|
||||||
|
## [0.40.12] - 2025-08-18
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Attempt to fix `no valid bitrates` and `Sign in to confirm you're not a bot` errors.
|
- Attempt to fix `no valid bitrates` and `Sign in to confirm you're not a bot` errors.
|
||||||
- Introduced a "Playlet support server" to allow handling sig/nsig decoding, as well as potoken generation. These are not possible to do without a Javascript execution environment, so this was necessary.
|
- Introduced a "Playlet support server" to allow handling sig/nsig decoding. These are not possible to do without a Javascript execution environment, so this was necessary.
|
||||||
- Video starts will be 5~8 seconds slower, unfortunately.
|
|
||||||
- Live videos are not affected by this fix yet, but hopefully it reduce the amount of errors.
|
- Live videos are not affected by this fix yet, but hopefully it reduce the amount of errors.
|
||||||
- Videos longer than 5 hours now work [https://github.com/iBicha/playlet/issues/500](https://github.com/iBicha/playlet/issues/500)
|
- Videos longer than 5 hours now work [https://github.com/iBicha/playlet/issues/500](https://github.com/iBicha/playlet/issues/500)
|
||||||
|
- Age restricted videos should play normally if logged in using a YouTube account.
|
||||||
|
|
||||||
## [0.40.10] - 2025-07-19
|
## [0.40.10] - 2025-07-19
|
||||||
|
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.40.11",
|
"version": "0.40.14",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.40.11",
|
"version": "0.40.14",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rokucommunity/bslint": "^0.8.33",
|
"@rokucommunity/bslint": "^0.8.33",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.40.11",
|
"version": "0.40.14",
|
||||||
"description": "Unofficial YouTube client for Roku",
|
"description": "Unofficial YouTube client for Roku",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rokucommunity/bslint": "^0.8.33",
|
"@rokucommunity/bslint": "^0.8.33",
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-app",
|
"name": "playlet-app",
|
||||||
"version": "0.40.11",
|
"version": "0.40.14",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet-app",
|
"name": "playlet-app",
|
||||||
"version": "0.40.11"
|
"version": "0.40.14"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-app",
|
"name": "playlet-app",
|
||||||
"version": "0.40.11",
|
"version": "0.40.14",
|
||||||
"description": "Unofficial YouTube client for Roku",
|
"description": "Unofficial YouTube client for Roku",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prebuild": "rm -rf ../build/playlet-app",
|
"prebuild": "rm -rf ../build/playlet-app",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title=Playlet
|
|||||||
# Do not update version manually, it is auto updated from package.json
|
# Do not update version manually, it is auto updated from package.json
|
||||||
major_version=0
|
major_version=0
|
||||||
minor_version=40
|
minor_version=40
|
||||||
build_version=00011
|
build_version=00014
|
||||||
|
|
||||||
ui_resolutions=hd
|
ui_resolutions=hd
|
||||||
uri_resolution_autosub=$$RES$$,480p,720p,1080p
|
uri_resolution_autosub=$$RES$$,480p,720p,1080p
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-lib",
|
"name": "playlet-lib",
|
||||||
"version": "0.40.11",
|
"version": "0.40.14",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet-lib",
|
"name": "playlet-lib",
|
||||||
"version": "0.40.11"
|
"version": "0.40.14"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-lib",
|
"name": "playlet-lib",
|
||||||
"version": "0.40.11",
|
"version": "0.40.14",
|
||||||
"description": "Unofficial YouTube client for Roku",
|
"description": "Unofficial YouTube client for Roku",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prebuild": "rm -rf ../build/playlet-lib",
|
"prebuild": "rm -rf ../build/playlet-lib",
|
||||||
|
|||||||
@@ -182,9 +182,9 @@ namespace Innertube
|
|||||||
|
|
||||||
function GetCurrentLocale(deviceInfo as object) as string
|
function GetCurrentLocale(deviceInfo as object) as string
|
||||||
currentLocale = deviceInfo.GetCurrentLocale()
|
currentLocale = deviceInfo.GetCurrentLocale()
|
||||||
' en_CA is not a valid locale for Innertube
|
' en_CA and en_AU are not valid locales for Innertube
|
||||||
if currentLocale = "en_CA"
|
if currentLocale = "en_CA" or currentLocale = "en_AU"
|
||||||
currentLocale = "en_US"
|
return "en_US"
|
||||||
end if
|
end if
|
||||||
return currentLocale
|
return currentLocale
|
||||||
end function
|
end function
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ namespace InnertubeService
|
|||||||
return rawResponse
|
return rawResponse
|
||||||
end if
|
end if
|
||||||
|
|
||||||
parsedResponse = Innertube.ParseInnertubePlayerResponse(playerResponse.Json(), playerRequest.signatureTimestamp, playerRequest.poToken, cancellation)
|
parsedResponse = Innertube.ParseInnertubePlayerResponse(playerResponse.Json(), playerRequest.signatureTimestamp, cancellation)
|
||||||
if parsedResponse.error <> invalid
|
if parsedResponse.error <> invalid
|
||||||
return parsedResponse
|
return parsedResponse
|
||||||
end if
|
end if
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import "pkg:/components/Services/Innertube/Context.bs"
|
import "pkg:/components/Services/Innertube/Context.bs"
|
||||||
import "pkg:/components/Services/Innertube/NodesParser.bs"
|
import "pkg:/components/Services/Innertube/NodesParser.bs"
|
||||||
import "pkg:/components/Services/Innertube/PoToken.bs"
|
|
||||||
import "pkg:/source/services/HttpClient.bs"
|
import "pkg:/source/services/HttpClient.bs"
|
||||||
import "pkg:/source/utils/ObjectUtils.bs"
|
import "pkg:/source/utils/ObjectUtils.bs"
|
||||||
import "pkg:/source/utils/Types.bs"
|
import "pkg:/source/utils/Types.bs"
|
||||||
@@ -13,7 +12,6 @@ namespace Innertube
|
|||||||
visitorData = OptionUtils.Get(options, "visitorData")
|
visitorData = OptionUtils.Get(options, "visitorData")
|
||||||
accessToken = OptionUtils.Get(options, "accessToken")
|
accessToken = OptionUtils.Get(options, "accessToken")
|
||||||
doSignatureTimestamp = ValidBool(OptionUtils.Get(options, "signatureTimestamp"))
|
doSignatureTimestamp = ValidBool(OptionUtils.Get(options, "signatureTimestamp"))
|
||||||
doPoToken = ValidBool(OptionUtils.Get(options, "poToken"))
|
|
||||||
|
|
||||||
useAccessToken = client = Innertube.ClientType.TV and not StringUtils.IsNullOrEmpty(accessToken)
|
useAccessToken = client = Innertube.ClientType.TV and not StringUtils.IsNullOrEmpty(accessToken)
|
||||||
|
|
||||||
@@ -52,14 +50,6 @@ namespace Innertube
|
|||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
|
|
||||||
poToken = invalid
|
|
||||||
if doPoToken
|
|
||||||
poToken = Innertube.GetPoToken(visitorData, videoId, cancellation)
|
|
||||||
payload["serviceIntegrityDimensions"] = {
|
|
||||||
"poToken": poToken
|
|
||||||
}
|
|
||||||
end if
|
|
||||||
|
|
||||||
request = HttpClient.PostJson("https://www.youtube.com/youtubei/v1/player?prettyPrint=false&alt=json", payload)
|
request = HttpClient.PostJson("https://www.youtube.com/youtubei/v1/player?prettyPrint=false&alt=json", payload)
|
||||||
request.Headers(Innertube.CreateHeaders(client))
|
request.Headers(Innertube.CreateHeaders(client))
|
||||||
|
|
||||||
@@ -68,12 +58,11 @@ namespace Innertube
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
request.signatureTimestamp = signatureTimestamp
|
request.signatureTimestamp = signatureTimestamp
|
||||||
request.poToken = poToken
|
|
||||||
|
|
||||||
return request
|
return request
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function ParseInnertubePlayerResponse(payload as object, signatureTimestamp as dynamic, poToken as dynamic, cancellation as object) as object
|
function ParseInnertubePlayerResponse(payload as object, signatureTimestamp as dynamic, cancellation as object) as object
|
||||||
error = ParsePlayerResponseForError(payload)
|
error = ParsePlayerResponseForError(payload)
|
||||||
if error <> ""
|
if error <> ""
|
||||||
return {
|
return {
|
||||||
@@ -96,6 +85,7 @@ namespace Innertube
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
lengthSeconds = videoDetails["lengthSeconds"].ToInt()
|
lengthSeconds = videoDetails["lengthSeconds"].ToInt()
|
||||||
|
isLive = ValidBool(videoDetails["isLive"])
|
||||||
|
|
||||||
videoInfo = {
|
videoInfo = {
|
||||||
"type": "video"
|
"type": "video"
|
||||||
@@ -106,11 +96,10 @@ namespace Innertube
|
|||||||
"author": videoDetails["author"]
|
"author": videoDetails["author"]
|
||||||
"authorId": videoDetails["channelId"]
|
"authorId": videoDetails["channelId"]
|
||||||
"lengthSeconds": lengthSeconds
|
"lengthSeconds": lengthSeconds
|
||||||
"liveNow": ValidBool(videoDetails["isLive"])
|
"liveNow": isLive
|
||||||
"hlsUrl": streamingData["hlsManifestUrl"]
|
"hlsUrl": streamingData["hlsManifestUrl"]
|
||||||
"dashUrl": streamingData["dashManifestUrl"]
|
"dashUrl": streamingData["dashManifestUrl"]
|
||||||
"adaptiveFormats": ParseAdaptiveFormats(payload, signatureTimestamp, poToken, cancellation)
|
"adaptiveFormats": ParseAdaptiveFormats(payload, signatureTimestamp, isLive, cancellation)
|
||||||
"hasDecodedDashUrls": true
|
|
||||||
"formatStreams": []
|
"formatStreams": []
|
||||||
"captions": ParseCaptions(payload)
|
"captions": ParseCaptions(payload)
|
||||||
"recommendedVideos": []
|
"recommendedVideos": []
|
||||||
@@ -299,13 +288,15 @@ namespace Innertube
|
|||||||
return captions
|
return captions
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function ParseAdaptiveFormats(payload as object, signatureTimestamp as dynamic, poToken as dynamic, cancellation as object) as object
|
function ParseAdaptiveFormats(payload as object, signatureTimestamp as dynamic, isLive as boolean, cancellation as object) as object
|
||||||
adaptiveFormats = ObjectUtils.Dig(payload, ["streamingData", "adaptiveFormats"])
|
adaptiveFormats = ObjectUtils.Dig(payload, ["streamingData", "adaptiveFormats"])
|
||||||
if not IsArray(adaptiveFormats)
|
if not IsArray(adaptiveFormats)
|
||||||
return []
|
return []
|
||||||
end if
|
end if
|
||||||
|
|
||||||
adaptiveFormats = DecipherUrls(adaptiveFormats, signatureTimestamp, poToken, cancellation)
|
if not isLive
|
||||||
|
adaptiveFormats = DecipherUrls(adaptiveFormats, signatureTimestamp, cancellation)
|
||||||
|
end if
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
for each fmt in adaptiveFormats
|
for each fmt in adaptiveFormats
|
||||||
@@ -393,7 +384,7 @@ namespace Innertube
|
|||||||
return json["sts"]
|
return json["sts"]
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function DecipherUrls(adaptiveFormats as object, signatureTimestamp as dynamic, poToken as dynamic, cancellation as object) as object
|
function DecipherUrls(adaptiveFormats as object, signatureTimestamp as dynamic, cancellation as object) as object
|
||||||
if signatureTimestamp = invalid
|
if signatureTimestamp = invalid
|
||||||
' No need to decipher if signatureTimestamp is not available
|
' No need to decipher if signatureTimestamp is not available
|
||||||
return adaptiveFormats
|
return adaptiveFormats
|
||||||
@@ -411,7 +402,6 @@ namespace Innertube
|
|||||||
request = HttpClient.PostJson(`${PLAYLET_SUPPORT_SERVER}/v1/decipher`, {
|
request = HttpClient.PostJson(`${PLAYLET_SUPPORT_SERVER}/v1/decipher`, {
|
||||||
"sts": signatureTimestamp
|
"sts": signatureTimestamp
|
||||||
"formats": formats
|
"formats": formats
|
||||||
"poToken": poToken
|
|
||||||
})
|
})
|
||||||
request.Cancellation(cancellation)
|
request.Cancellation(cancellation)
|
||||||
|
|
||||||
|
|||||||
@@ -1,52 +0,0 @@
|
|||||||
namespace Innertube
|
|
||||||
function GetPoToken(visitorData as string, bindingIdentifier as string, cancellation as object) as string
|
|
||||||
requestCount = 1
|
|
||||||
payload = {
|
|
||||||
"visitorData": visitorData
|
|
||||||
"bindingIdentifier": bindingIdentifier
|
|
||||||
}
|
|
||||||
request = HttpClient.PostJson(`${PLAYLET_SUPPORT_SERVER}/v1/botguard`, payload)
|
|
||||||
request.Cancellation(cancellation)
|
|
||||||
|
|
||||||
while requestCount < 5
|
|
||||||
response = request.Await()
|
|
||||||
if not response.IsSuccess()
|
|
||||||
throw "Failed to get PoToken: " + response.ErrorMessage()
|
|
||||||
end if
|
|
||||||
|
|
||||||
json = response.Json()
|
|
||||||
if not IsAssociativeArray(json)
|
|
||||||
throw "Invalid response format for PoToken: " + response.Text()
|
|
||||||
end if
|
|
||||||
|
|
||||||
if not StringUtils.IsNullOrEmpty(json["poToken"])
|
|
||||||
return json["poToken"]
|
|
||||||
end if
|
|
||||||
|
|
||||||
if json["action"] = "FETCH"
|
|
||||||
fetchData = json["fetch"]
|
|
||||||
request = new HttpClient.HttpRequest()
|
|
||||||
request.Url(fetchData.url)
|
|
||||||
request.Method(fetchData.method)
|
|
||||||
request.Headers(fetchData.headers)
|
|
||||||
request.Body(fetchData.body)
|
|
||||||
request.Cancellation(cancellation)
|
|
||||||
|
|
||||||
response = request.Await()
|
|
||||||
if not response.IsSuccess()
|
|
||||||
throw "Failed to fetch PoToken: " + response.ErrorMessage()
|
|
||||||
end if
|
|
||||||
|
|
||||||
payload["fetchResponse"] = response.Text()
|
|
||||||
request = HttpClient.PostJson(`${PLAYLET_SUPPORT_SERVER}/v1/botguard`, payload)
|
|
||||||
request.Cancellation(cancellation)
|
|
||||||
else
|
|
||||||
throw "Failed to get PoToken: " + response.Text()
|
|
||||||
end if
|
|
||||||
|
|
||||||
requestCount = requestCount + 1
|
|
||||||
end while
|
|
||||||
|
|
||||||
throw "Failed to get PoToken after multiple attempts"
|
|
||||||
end function
|
|
||||||
end namespace
|
|
||||||
@@ -58,7 +58,6 @@ function ExecuteJob() as void
|
|||||||
"accessToken": accessToken
|
"accessToken": accessToken
|
||||||
"onBehalfOfUser": onBehalfOfUser
|
"onBehalfOfUser": onBehalfOfUser
|
||||||
"signatureTimestamp": true
|
"signatureTimestamp": true
|
||||||
"poToken": true
|
|
||||||
})
|
})
|
||||||
else
|
else
|
||||||
metadata = service.GetVideoMetadata(contentNode.videoId, { cancellation: m.top.cancellation })
|
metadata = service.GetVideoMetadata(contentNode.videoId, { cancellation: m.top.cancellation })
|
||||||
@@ -162,7 +161,6 @@ function AddDashUrls(streamUrls as object, metadata as object, preferredQuality
|
|||||||
' dynamically generating the DASH manifest, and filter quality
|
' dynamically generating the DASH manifest, and filter quality
|
||||||
dashUrl = UrlUtils.AppendQueryParams(`http://127.0.0.1:${playletServerPort}/api/dash`, {
|
dashUrl = UrlUtils.AppendQueryParams(`http://127.0.0.1:${playletServerPort}/api/dash`, {
|
||||||
v: metadata.videoId
|
v: metadata.videoId
|
||||||
hasDecodedDashUrls: ValidBool(metadata.hasDecodedDashUrls)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
dashUrlLocal = invalid
|
dashUrlLocal = invalid
|
||||||
|
|||||||
@@ -26,39 +26,20 @@ namespace Http
|
|||||||
v = request.query.v
|
v = request.query.v
|
||||||
local = request.query.local
|
local = request.query.local
|
||||||
quality = request.query.quality
|
quality = request.query.quality
|
||||||
hasDecodedDashUrls = request.query.hasDecodedDashUrls
|
|
||||||
|
|
||||||
if StringUtils.IsNullOrEmpty(v)
|
if StringUtils.IsNullOrEmpty(v)
|
||||||
response.Default(400, "Missing video id")
|
response.Default(400, "Missing video id")
|
||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if ValidString(hasDecodedDashUrls) = "true"
|
metadata = ObjectUtils.DigUnsafe(m.videoQueueNode, ["player", "content", "metadata"])
|
||||||
player = m.videoQueueNode.player
|
if not IsAssociativeArray(metadata)
|
||||||
if player = invalid
|
response.Default(500, "videoQueue.player.content.metadata is invalid")
|
||||||
response.Default(500, "videoQueue.player is invalid")
|
return true
|
||||||
return true
|
end if
|
||||||
end if
|
if metadata.videoId <> v
|
||||||
content = player.content
|
response.Default(400, "videoQueue.player.content.metadata.videoId does not match the requested video id")
|
||||||
if content = invalid
|
return true
|
||||||
response.Default(500, "videoQueue.player.content is invalid")
|
|
||||||
return true
|
|
||||||
end if
|
|
||||||
metadata = content.metadata
|
|
||||||
if not IsAssociativeArray(metadata)
|
|
||||||
response.Default(500, "videoQueue.player.content.metadata is invalid")
|
|
||||||
return true
|
|
||||||
end if
|
|
||||||
if metadata.videoId <> v
|
|
||||||
response.Default(400, "videoQueue.playVideo.metadata.videoId does not match the requested video id")
|
|
||||||
return true
|
|
||||||
end if
|
|
||||||
else
|
|
||||||
metadata = m.invidiousService.GetVideoMetadata(v)
|
|
||||||
if metadata.error <> invalid
|
|
||||||
response.Default(500, metadata.error)
|
|
||||||
return true
|
|
||||||
end if
|
|
||||||
end if
|
end if
|
||||||
|
|
||||||
m.dashManifest.invidiousInstance = m.invidiousService.GetInstance()
|
m.dashManifest.invidiousInstance = m.invidiousService.GetInstance()
|
||||||
|
|||||||
+3
@@ -9,6 +9,7 @@ namespace Http
|
|||||||
super()
|
super()
|
||||||
|
|
||||||
m.innertube = server.sceneNodes.innertube
|
m.innertube = server.sceneNodes.innertube
|
||||||
|
m.loungeService = server.sceneNodes.loungeService
|
||||||
m.preferences = server.sceneNodes.preferences
|
m.preferences = server.sceneNodes.preferences
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@@ -590,6 +591,8 @@ namespace Http
|
|||||||
}
|
}
|
||||||
end if
|
end if
|
||||||
else
|
else
|
||||||
|
options["signatureTimestamp"] = true
|
||||||
|
options["credentialTransferToken"] = m.loungeService.credentialTransferToken
|
||||||
metadata = InnertubeService.GetVideoMetadata(videoId, options)
|
metadata = InnertubeService.GetVideoMetadata(videoId, options)
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
|||||||
@@ -54,12 +54,7 @@ namespace Http
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
if keysDict["device"] = true
|
if keysDict["device"] = true
|
||||||
deviceInfo = m.applicationInfoNode@.GetDeviceInfo()
|
state["device"] = m.applicationInfoNode@.GetDeviceInfo()
|
||||||
' We do not currently have translations for en_CA
|
|
||||||
if deviceInfo.current_locale = "en_CA"
|
|
||||||
deviceInfo.current_locale = "en_US"
|
|
||||||
end if
|
|
||||||
state["device"] = deviceInfo
|
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if keysDict["invidious"] = true
|
if keysDict["invidious"] = true
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title=PlayletLib
|
|||||||
# Do not update version manually, it is auto updated from package.json
|
# Do not update version manually, it is auto updated from package.json
|
||||||
major_version=0
|
major_version=0
|
||||||
minor_version=40
|
minor_version=40
|
||||||
build_version=00011
|
build_version=00014
|
||||||
|
|
||||||
ui_resolutions=hd
|
ui_resolutions=hd
|
||||||
uri_resolution_autosub=$$RES$$,480p,720p,1080p
|
uri_resolution_autosub=$$RES$$,480p,720p,1080p
|
||||||
|
|||||||
@@ -22,6 +22,19 @@ namespace ObjectUtils
|
|||||||
return obj
|
return obj
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
function DigUnsafe(obj as object, keys as object) as object
|
||||||
|
for each key in keys
|
||||||
|
if obj <> invalid
|
||||||
|
obj = obj[key]
|
||||||
|
continue for
|
||||||
|
end if
|
||||||
|
|
||||||
|
return invalid
|
||||||
|
end for
|
||||||
|
|
||||||
|
return obj
|
||||||
|
end function
|
||||||
|
|
||||||
function DigWithDefault(obj as object, keys as object, defaultValue as dynamic) as dynamic
|
function DigWithDefault(obj as object, keys as object, defaultValue as dynamic) as dynamic
|
||||||
result = Dig(obj, keys)
|
result = Dig(obj, keys)
|
||||||
if result = invalid
|
if result = invalid
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-web",
|
"name": "playlet-web",
|
||||||
"version": "0.40.11",
|
"version": "0.40.14",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet-web",
|
"name": "playlet-web",
|
||||||
"version": "0.40.11",
|
"version": "0.40.14",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sveltejs/vite-plugin-svelte": "^6.1.0",
|
"@sveltejs/vite-plugin-svelte": "^6.1.0",
|
||||||
"@tailwindcss/typography": "^0.5.16",
|
"@tailwindcss/typography": "^0.5.16",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-web",
|
"name": "playlet-web",
|
||||||
"version": "0.40.11",
|
"version": "0.40.14",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@@ -278,7 +278,6 @@ export class YoutubeJs {
|
|||||||
dashUrl: info.streaming_data.dash_manifest_url || "",
|
dashUrl: info.streaming_data.dash_manifest_url || "",
|
||||||
hlsUrl: info.streaming_data.hls_manifest_url,
|
hlsUrl: info.streaming_data.hls_manifest_url,
|
||||||
adaptiveFormats: YoutubeJs.getAdaptiveFormats(info),
|
adaptiveFormats: YoutubeJs.getAdaptiveFormats(info),
|
||||||
hasDecodedDashUrls: true,
|
|
||||||
formatStreams: [],
|
formatStreams: [],
|
||||||
captions: YoutubeJs.getCaptions(info),
|
captions: YoutubeJs.getCaptions(info),
|
||||||
recommendedVideos: [],
|
recommendedVideos: [],
|
||||||
|
|||||||
Reference in new issue
Block a user