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/),
|
||||
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
|
||||
|
||||
- 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.
|
||||
- Video starts will be 5~8 seconds slower, unfortunately.
|
||||
- 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.
|
||||
- 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)
|
||||
- Age restricted videos should play normally if logged in using a YouTube account.
|
||||
|
||||
## [0.40.10] - 2025-07-19
|
||||
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "playlet",
|
||||
"version": "0.40.11",
|
||||
"version": "0.40.14",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "playlet",
|
||||
"version": "0.40.11",
|
||||
"version": "0.40.14",
|
||||
"hasInstallScript": true,
|
||||
"devDependencies": {
|
||||
"@rokucommunity/bslint": "^0.8.33",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "playlet",
|
||||
"version": "0.40.11",
|
||||
"version": "0.40.14",
|
||||
"description": "Unofficial YouTube client for Roku",
|
||||
"devDependencies": {
|
||||
"@rokucommunity/bslint": "^0.8.33",
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "playlet-app",
|
||||
"version": "0.40.11",
|
||||
"version": "0.40.14",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "playlet-app",
|
||||
"version": "0.40.11"
|
||||
"version": "0.40.14"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "playlet-app",
|
||||
"version": "0.40.11",
|
||||
"version": "0.40.14",
|
||||
"description": "Unofficial YouTube client for Roku",
|
||||
"scripts": {
|
||||
"prebuild": "rm -rf ../build/playlet-app",
|
||||
|
||||
@@ -3,7 +3,7 @@ title=Playlet
|
||||
# Do not update version manually, it is auto updated from package.json
|
||||
major_version=0
|
||||
minor_version=40
|
||||
build_version=00011
|
||||
build_version=00014
|
||||
|
||||
ui_resolutions=hd
|
||||
uri_resolution_autosub=$$RES$$,480p,720p,1080p
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "playlet-lib",
|
||||
"version": "0.40.11",
|
||||
"version": "0.40.14",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "playlet-lib",
|
||||
"version": "0.40.11"
|
||||
"version": "0.40.14"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "playlet-lib",
|
||||
"version": "0.40.11",
|
||||
"version": "0.40.14",
|
||||
"description": "Unofficial YouTube client for Roku",
|
||||
"scripts": {
|
||||
"prebuild": "rm -rf ../build/playlet-lib",
|
||||
|
||||
@@ -182,9 +182,9 @@ namespace Innertube
|
||||
|
||||
function GetCurrentLocale(deviceInfo as object) as string
|
||||
currentLocale = deviceInfo.GetCurrentLocale()
|
||||
' en_CA is not a valid locale for Innertube
|
||||
if currentLocale = "en_CA"
|
||||
currentLocale = "en_US"
|
||||
' en_CA and en_AU are not valid locales for Innertube
|
||||
if currentLocale = "en_CA" or currentLocale = "en_AU"
|
||||
return "en_US"
|
||||
end if
|
||||
return currentLocale
|
||||
end function
|
||||
|
||||
@@ -103,7 +103,7 @@ namespace InnertubeService
|
||||
return rawResponse
|
||||
end if
|
||||
|
||||
parsedResponse = Innertube.ParseInnertubePlayerResponse(playerResponse.Json(), playerRequest.signatureTimestamp, playerRequest.poToken, cancellation)
|
||||
parsedResponse = Innertube.ParseInnertubePlayerResponse(playerResponse.Json(), playerRequest.signatureTimestamp, cancellation)
|
||||
if parsedResponse.error <> invalid
|
||||
return parsedResponse
|
||||
end if
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import "pkg:/components/Services/Innertube/Context.bs"
|
||||
import "pkg:/components/Services/Innertube/NodesParser.bs"
|
||||
import "pkg:/components/Services/Innertube/PoToken.bs"
|
||||
import "pkg:/source/services/HttpClient.bs"
|
||||
import "pkg:/source/utils/ObjectUtils.bs"
|
||||
import "pkg:/source/utils/Types.bs"
|
||||
@@ -13,7 +12,6 @@ namespace Innertube
|
||||
visitorData = OptionUtils.Get(options, "visitorData")
|
||||
accessToken = OptionUtils.Get(options, "accessToken")
|
||||
doSignatureTimestamp = ValidBool(OptionUtils.Get(options, "signatureTimestamp"))
|
||||
doPoToken = ValidBool(OptionUtils.Get(options, "poToken"))
|
||||
|
||||
useAccessToken = client = Innertube.ClientType.TV and not StringUtils.IsNullOrEmpty(accessToken)
|
||||
|
||||
@@ -52,14 +50,6 @@ namespace Innertube
|
||||
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.Headers(Innertube.CreateHeaders(client))
|
||||
|
||||
@@ -68,12 +58,11 @@ namespace Innertube
|
||||
end if
|
||||
|
||||
request.signatureTimestamp = signatureTimestamp
|
||||
request.poToken = poToken
|
||||
|
||||
return request
|
||||
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)
|
||||
if error <> ""
|
||||
return {
|
||||
@@ -96,6 +85,7 @@ namespace Innertube
|
||||
end if
|
||||
|
||||
lengthSeconds = videoDetails["lengthSeconds"].ToInt()
|
||||
isLive = ValidBool(videoDetails["isLive"])
|
||||
|
||||
videoInfo = {
|
||||
"type": "video"
|
||||
@@ -106,11 +96,10 @@ namespace Innertube
|
||||
"author": videoDetails["author"]
|
||||
"authorId": videoDetails["channelId"]
|
||||
"lengthSeconds": lengthSeconds
|
||||
"liveNow": ValidBool(videoDetails["isLive"])
|
||||
"liveNow": isLive
|
||||
"hlsUrl": streamingData["hlsManifestUrl"]
|
||||
"dashUrl": streamingData["dashManifestUrl"]
|
||||
"adaptiveFormats": ParseAdaptiveFormats(payload, signatureTimestamp, poToken, cancellation)
|
||||
"hasDecodedDashUrls": true
|
||||
"adaptiveFormats": ParseAdaptiveFormats(payload, signatureTimestamp, isLive, cancellation)
|
||||
"formatStreams": []
|
||||
"captions": ParseCaptions(payload)
|
||||
"recommendedVideos": []
|
||||
@@ -299,13 +288,15 @@ namespace Innertube
|
||||
return captions
|
||||
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"])
|
||||
if not IsArray(adaptiveFormats)
|
||||
return []
|
||||
end if
|
||||
|
||||
adaptiveFormats = DecipherUrls(adaptiveFormats, signatureTimestamp, poToken, cancellation)
|
||||
if not isLive
|
||||
adaptiveFormats = DecipherUrls(adaptiveFormats, signatureTimestamp, cancellation)
|
||||
end if
|
||||
|
||||
formats = []
|
||||
for each fmt in adaptiveFormats
|
||||
@@ -393,7 +384,7 @@ namespace Innertube
|
||||
return json["sts"]
|
||||
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
|
||||
' No need to decipher if signatureTimestamp is not available
|
||||
return adaptiveFormats
|
||||
@@ -411,7 +402,6 @@ namespace Innertube
|
||||
request = HttpClient.PostJson(`${PLAYLET_SUPPORT_SERVER}/v1/decipher`, {
|
||||
"sts": signatureTimestamp
|
||||
"formats": formats
|
||||
"poToken": poToken
|
||||
})
|
||||
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
|
||||
"onBehalfOfUser": onBehalfOfUser
|
||||
"signatureTimestamp": true
|
||||
"poToken": true
|
||||
})
|
||||
else
|
||||
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
|
||||
dashUrl = UrlUtils.AppendQueryParams(`http://127.0.0.1:${playletServerPort}/api/dash`, {
|
||||
v: metadata.videoId
|
||||
hasDecodedDashUrls: ValidBool(metadata.hasDecodedDashUrls)
|
||||
})
|
||||
|
||||
dashUrlLocal = invalid
|
||||
|
||||
@@ -26,39 +26,20 @@ namespace Http
|
||||
v = request.query.v
|
||||
local = request.query.local
|
||||
quality = request.query.quality
|
||||
hasDecodedDashUrls = request.query.hasDecodedDashUrls
|
||||
|
||||
if StringUtils.IsNullOrEmpty(v)
|
||||
response.Default(400, "Missing video id")
|
||||
return true
|
||||
end if
|
||||
|
||||
if ValidString(hasDecodedDashUrls) = "true"
|
||||
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)
|
||||
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
|
||||
metadata = ObjectUtils.DigUnsafe(m.videoQueueNode, ["player", "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.player.content.metadata.videoId does not match the requested video id")
|
||||
return true
|
||||
end if
|
||||
|
||||
m.dashManifest.invidiousInstance = m.invidiousService.GetInstance()
|
||||
|
||||
+3
@@ -9,6 +9,7 @@ namespace Http
|
||||
super()
|
||||
|
||||
m.innertube = server.sceneNodes.innertube
|
||||
m.loungeService = server.sceneNodes.loungeService
|
||||
m.preferences = server.sceneNodes.preferences
|
||||
end function
|
||||
|
||||
@@ -590,6 +591,8 @@ namespace Http
|
||||
}
|
||||
end if
|
||||
else
|
||||
options["signatureTimestamp"] = true
|
||||
options["credentialTransferToken"] = m.loungeService.credentialTransferToken
|
||||
metadata = InnertubeService.GetVideoMetadata(videoId, options)
|
||||
end if
|
||||
|
||||
|
||||
@@ -54,12 +54,7 @@ namespace Http
|
||||
end if
|
||||
|
||||
if keysDict["device"] = true
|
||||
deviceInfo = 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
|
||||
state["device"] = m.applicationInfoNode@.GetDeviceInfo()
|
||||
end if
|
||||
|
||||
if keysDict["invidious"] = true
|
||||
|
||||
@@ -3,7 +3,7 @@ title=PlayletLib
|
||||
# Do not update version manually, it is auto updated from package.json
|
||||
major_version=0
|
||||
minor_version=40
|
||||
build_version=00011
|
||||
build_version=00014
|
||||
|
||||
ui_resolutions=hd
|
||||
uri_resolution_autosub=$$RES$$,480p,720p,1080p
|
||||
|
||||
@@ -22,6 +22,19 @@ namespace ObjectUtils
|
||||
return obj
|
||||
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
|
||||
result = Dig(obj, keys)
|
||||
if result = invalid
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "playlet-web",
|
||||
"version": "0.40.11",
|
||||
"version": "0.40.14",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "playlet-web",
|
||||
"version": "0.40.11",
|
||||
"version": "0.40.14",
|
||||
"devDependencies": {
|
||||
"@sveltejs/vite-plugin-svelte": "^6.1.0",
|
||||
"@tailwindcss/typography": "^0.5.16",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "playlet-web",
|
||||
"version": "0.40.11",
|
||||
"version": "0.40.14",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -278,7 +278,6 @@ export class YoutubeJs {
|
||||
dashUrl: info.streaming_data.dash_manifest_url || "",
|
||||
hlsUrl: info.streaming_data.hls_manifest_url,
|
||||
adaptiveFormats: YoutubeJs.getAdaptiveFormats(info),
|
||||
hasDecodedDashUrls: true,
|
||||
formatStreams: [],
|
||||
captions: YoutubeJs.getCaptions(info),
|
||||
recommendedVideos: [],
|
||||
|
||||
Reference in new issue
Block a user