Compare commits

...
5 Commits
17 changed files with 90 additions and 46 deletions

No files matched your search

+8
View File
@@ -5,6 +5,14 @@ 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.41.14] - 2025-09-18
### Fixed
- Try fetching multiple pages in the search, in case results are filtered out (e.g. shorts)
- Regression for `Attempt to play the next video when errors occur`
- Better handling for lounge lost sessions
## [0.41.13] - 2025-09-18
### Fixed
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "playlet",
"version": "0.41.13",
"version": "0.41.14",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "playlet",
"version": "0.41.13",
"version": "0.41.14",
"hasInstallScript": true,
"devDependencies": {
"@rokucommunity/bslint": "^0.8.35",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "playlet",
"version": "0.41.13",
"version": "0.41.14",
"description": "Unofficial YouTube client for Roku",
"devDependencies": {
"@rokucommunity/bslint": "^0.8.35",
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "playlet-app",
"version": "0.41.13",
"version": "0.41.14",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "playlet-app",
"version": "0.41.13"
"version": "0.41.14"
}
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "playlet-app",
"version": "0.41.13",
"version": "0.41.14",
"description": "Unofficial YouTube client for Roku",
"scripts": {
"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
major_version=0
minor_version=41
build_version=00013
build_version=00014
ui_resolutions=hd
uri_resolution_autosub=$$RES$$,480p,720p,1080p
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "playlet-lib",
"version": "0.41.13",
"version": "0.41.14",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "playlet-lib",
"version": "0.41.13"
"version": "0.41.14"
}
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "playlet-lib",
"version": "0.41.13",
"version": "0.41.14",
"description": "Unofficial YouTube client for Roku",
"scripts": {
"prebuild": "rm -rf ../build/playlet-lib",
@@ -153,6 +153,10 @@ namespace InnertubeService
nextResponse = nextRequest.Await()
if not nextResponse.IsSuccess()
if nextResponse.IsCancelled()
return parsedResponse
end if
error = nextResponse.ErrorMessage()
LogWarn(error)
@@ -35,6 +35,10 @@ namespace Innertube
end function
function ParseInnertubeNextResponse(payload as object, parsedResponse as object, httpResponse as object) as object
if not IsArray(parsedResponse["recommendedVideos"])
parsedResponse["recommendedVideos"] = []
end if
if not IsAssociativeArray(payload)
LogWarn("Invalid payload", payload)
return parsedResponse
@@ -60,11 +64,6 @@ namespace Innertube
end if
end if
if not IsArray(parsedResponse.recommendedVideos)
LogWarn("Invalid recommended videos", parsedResponse.recommendedVideos)
return parsedResponse
end if
endscreen = playerOverlayRenderer["endScreen"]
feeds = Innertube.ParseResponseDataForFeeds(endscreen, {
@@ -32,9 +32,14 @@ namespace Innertube
Innertube.ParseNode(containers, context)
if context.currentFeed <> invalid and (context.currentFeed.items.Count() > 0 or context.currentFeed.title <> "")
context.feeds.Push(context.currentFeed)
context.currentFeed = invalid
if context.currentFeed <> invalid
hasTitle = context.currentFeed.title <> ""
hasItems = context.currentFeed.items.Count() > 0
hasContinuation = context.currentFeed.DoesExist("continuation")
if hasTitle or hasItems or hasContinuation
context.feeds.Push(context.currentFeed)
context.currentFeed = invalid
end if
end if
return context.feeds
end function
@@ -198,7 +198,7 @@ class LongPoller
m.status_code = Val(statusCode)
m.status_text = status.Mid(spaceIndex + 1)
if m.status_code <> 200
if m.status_code = 400 and m.status_text = "Unknown SID"
if m.status_code = 410 or (m.status_code = 400 and m.status_text = "Unknown SID")
LogErrorNoTelemetry("Invalid status code:", m.status_code, m.status_text, `\nResponse data:`, m.socket_buffer)
else
LogError("Invalid status code:", m.status_code, m.status_text, `\nResponse data:`, m.socket_buffer)
@@ -123,14 +123,14 @@ function LoungeServiceLoop() as void
unknownSid = false
' TODO:P2 move this check somewhere else
if api.poller.status_code = 400 and ValidString(api.poller.status_text) = "Unknown SID"
if (api.poller.status_code = 410) or (api.poller.status_code = 400 and ValidString(api.poller.status_text) = "Unknown SID")
api.poller.status_code = 0
unknownSid = true
end if
if not unknownSid
for each result in outgoingLoungeMessagesResults
if result.status = 400 and result.error.InStr("Unknown SID") <> -1
if result.status = 410 or (result.status = 400 and result.error.InStr("Unknown SID") <> -1)
unknownSid = true
exit for
end if
@@ -420,31 +420,59 @@ namespace Http
options.continuation = continuation
end if
result = InnertubeService.Search(query, options)
fetchedPages = 0
while true
' Content can be filtered (for example, shorts removed)
' so we could be fetching multiple pages.
if fetchedPages > 3
response.Json({
"error": "Failed to search: no results found"
})
response.http_code = 500
return true
end if
result = InnertubeService.Search(query, options)
fetchedPages += 1
if raw
response.Json(result)
return true
end if
if raw
response.Json(result)
return true
end if
if result.error <> invalid
response.Json(result)
response.http_code = 500
return true
end if
if result.error <> invalid
response.Json(result)
response.http_code = 500
return true
end if
if not IsArray(result.feeds) or result.feeds.Count() = 0
response.Json({
"error": "Failed to search: no results found"
})
response.http_code = 500
return true
end if
if not IsArray(result.feeds) or result.feeds.Count() = 0
response.Json({
"error": "Failed to search: no results found"
})
response.http_code = 500
return true
end if
response.Json(result.feeds[0])
if result.DoesExist("cache-control")
response.headers["cache-control"] = result["cache-control"]
end if
feed = result.feeds[0]
if feed.items.Count() > 0
response.Json(feed)
if fetchedPages = 1 and result.DoesExist("cache-control")
response.headers["cache-control"] = result["cache-control"]
end if
return true
end if
if StringUtils.IsNullOrEmpty(feed.continuation)
response.Json({
"error": "Failed to search: no results found"
})
response.http_code = 500
return true
end if
LogDebug("Search returned no results, fetching next page with continuation")
options.continuation = feed.continuation
end while
return true
end function
+1 -1
View File
@@ -3,7 +3,7 @@ title=PlayletLib
# Do not update version manually, it is auto updated from package.json
major_version=0
minor_version=41
build_version=00013
build_version=00014
ui_resolutions=hd
uri_resolution_autosub=$$RES$$,480p,720p,1080p
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "playlet-web",
"version": "0.41.13",
"version": "0.41.14",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "playlet-web",
"version": "0.41.13",
"version": "0.41.14",
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^6.2.0",
"@tailwindcss/postcss": "^4.1.13",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "playlet-web",
"version": "0.41.13",
"version": "0.41.14",
"type": "module",
"scripts": {
"dev": "vite",