Compare commits

...
7 Commits
19 changed files with 50 additions and 55 deletions

No files matched your search

+14 -8
View File
@@ -5,21 +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.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 ## [0.40.12] - 2025-08-18
### Fixed ### Fixed
- Removed PoToken usage
## [0.40.11] - 2025-08-18
### 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
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "playlet", "name": "playlet",
"version": "0.40.12", "version": "0.40.14",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playlet", "name": "playlet",
"version": "0.40.12", "version": "0.40.14",
"hasInstallScript": true, "hasInstallScript": true,
"devDependencies": { "devDependencies": {
"@rokucommunity/bslint": "^0.8.33", "@rokucommunity/bslint": "^0.8.33",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "playlet", "name": "playlet",
"version": "0.40.12", "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",
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "playlet-app", "name": "playlet-app",
"version": "0.40.12", "version": "0.40.14",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playlet-app", "name": "playlet-app",
"version": "0.40.12" "version": "0.40.14"
} }
} }
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "playlet-app", "name": "playlet-app",
"version": "0.40.12", "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",
+1 -1
View File
@@ -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=00012 build_version=00014
ui_resolutions=hd ui_resolutions=hd
uri_resolution_autosub=$$RES$$,480p,720p,1080p uri_resolution_autosub=$$RES$$,480p,720p,1080p
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "playlet-lib", "name": "playlet-lib",
"version": "0.40.12", "version": "0.40.14",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playlet-lib", "name": "playlet-lib",
"version": "0.40.12" "version": "0.40.14"
} }
} }
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "playlet-lib", "name": "playlet-lib",
"version": "0.40.12", "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
@@ -100,7 +100,6 @@ namespace Innertube
"hlsUrl": streamingData["hlsManifestUrl"] "hlsUrl": streamingData["hlsManifestUrl"]
"dashUrl": streamingData["dashManifestUrl"] "dashUrl": streamingData["dashManifestUrl"]
"adaptiveFormats": ParseAdaptiveFormats(payload, signatureTimestamp, isLive, cancellation) "adaptiveFormats": ParseAdaptiveFormats(payload, signatureTimestamp, isLive, cancellation)
"hasDecodedDashUrls": true
"formatStreams": [] "formatStreams": []
"captions": ParseCaptions(payload) "captions": ParseCaptions(payload)
"recommendedVideos": [] "recommendedVideos": []
@@ -161,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,40 +26,21 @@ 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 player = invalid
response.Default(500, "videoQueue.player is invalid")
return true
end if
content = player.content
if content = invalid
response.Default(500, "videoQueue.player.content is invalid")
return true
end if
metadata = content.metadata
if not IsAssociativeArray(metadata) if not IsAssociativeArray(metadata)
response.Default(500, "videoQueue.player.content.metadata is invalid") response.Default(500, "videoQueue.player.content.metadata is invalid")
return true return true
end if end if
if metadata.videoId <> v if metadata.videoId <> v
response.Default(400, "videoQueue.playVideo.metadata.videoId does not match the requested video id") response.Default(400, "videoQueue.player.content.metadata.videoId does not match the requested video id")
return true return true
end if end if
else
metadata = m.invidiousService.GetVideoMetadata(v)
if metadata.error <> invalid
response.Default(500, metadata.error)
return true
end if
end if
m.dashManifest.invidiousInstance = m.invidiousService.GetInstance() m.dashManifest.invidiousInstance = m.invidiousService.GetInstance()
@@ -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
+1 -1
View File
@@ -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=00012 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
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "playlet-web", "name": "playlet-web",
"version": "0.40.12", "version": "0.40.14",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playlet-web", "name": "playlet-web",
"version": "0.40.12", "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 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "playlet-web", "name": "playlet-web",
"version": "0.40.12", "version": "0.40.14",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
-1
View File
@@ -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: [],