Compare commits

...
37 Commits
Author SHA1 Message Date
Brahim Hadriche 17aca0b8bf Release v0.36.7 (#597) 2025-05-03 22:40:45 -04:00
Brahim Hadriche 49390ab0ae Fixed Playlet backend error caused by Roku 14.5 update on Canada devices 2025-05-03 22:34:57 -04:00
Brahim Hadriche bb2ca5515b [skip ci] tweak 2025-05-03 12:02:18 -04:00
Brahim Hadriche e15b6ec958 [skip ci] small tweak 2025-05-03 11:40:06 -04:00
Brahim Hadriche 6a80fe6c74 Parse gridShelfViewModel 2025-05-03 11:37:37 -04:00
Brahim Hadriche 0d61d1e337 Release v0.36.6 (#596) 2025-05-03 10:42:26 -04:00
Brahim Hadriche 33c6e174ee [chore] update dependencies (#595)
* update dependencies

* Bottom nav ui fix

* Bottom nav ui fix2

* changelog

* Backend logging
2025-05-03 10:34:40 -04:00
Brahim Hadriche 91b17fa4a4 Release v0.36.5 (#594) 2025-05-02 19:51:07 -04:00
Brahim Hadriche 943d39af33 Update innertube versions 2025-05-02 19:43:25 -04:00
Brahim Hadriche e8015d52ff Log unknown nodes better 2025-05-02 19:43:07 -04:00
Brahim Hadriche d919489f50 Fixed small error handling bug in Playlet backend 2025-05-01 22:18:23 -04:00
Brahim Hadriche 62675446b2 Update readme link and changelog 2025-04-29 22:28:23 -04:00
Brahim Hadriche 4a8b12294d Update README.md 2025-04-22 15:05:54 -04:00
Brahim Hadriche 5583f55aae Release v0.36.4 (#586) 2025-04-19 11:44:28 -04:00
Brahim Hadriche d4f15e7dfb update dependencies (#585) 2025-04-19 11:38:22 -04:00
Brahim Hadriche de7c3f8a99 update dependencies (#581) 2025-04-12 16:59:10 -04:00
Brahim Hadriche b35dc4423e changelog 2025-04-12 16:55:09 -04:00
Weblate (bot)anddavbrasan 23146706ee Translated using Weblate (Portuguese (Brazil)) (#582)
Currently translated at 100.0% (319 of 319 strings)

Translation: Playlet/Playlet
Translate-URL: https://hosted.weblate.org/projects/playlet/playlet/pt_BR/

Co-authored-by: davbrasan <davidbrazps2@gmail.com>
2025-04-12 16:54:34 -04:00
Brahim Hadriche d10444b96c changelog 2025-04-10 16:27:58 -04:00
Weblate (bot)andEttore Atalan 2f7ba64488 Translated using Weblate (German) (#580)
Currently translated at 100.0% (319 of 319 strings)

Translation: Playlet/Playlet
Translate-URL: https://hosted.weblate.org/projects/playlet/playlet/de/

Co-authored-by: Ettore Atalan <atalanttore@googlemail.com>
2025-04-10 16:27:35 -04:00
Brahim Hadricheandgithub-action linter f1f50cc19e [chore] update dependencies (#579)
* update dependencies

* Lint fix

---------

Co-authored-by: github-action linter <githubaction@githubaction.com>
2025-04-05 12:16:18 -04:00
Brahim Hadriche b3a9887634 [skip ci] remove announcement 2025-04-03 13:21:33 -04:00
Brahim Hadriche c56092144f [skip ci] changelog fix 2025-04-02 18:32:25 -04:00
Brahim Hadriche 750472912e Release v0.36.3 (#578) 2025-04-02 18:27:32 -04:00
Brahim Hadriche ae83c47bfe Fix bug with saving search history 2025-03-30 09:59:58 -04:00
Brahim Hadriche e08bc86334 update dependencies (#573) 2025-03-29 10:19:51 -04:00
Brahim Hadriche 10aaf74c38 update dependencies (#570) 2025-03-22 11:29:16 -04:00
Brahim Hadriche 79464a003e Fix Playlet backend parsing issue in search results 2025-03-17 19:52:51 -04:00
Brahim Hadriche f7b8aa6c29 Fix for web remote volume buttons being stuck when a Roku stick is used with Roku TV 2025-03-17 11:59:25 -04:00
Brahim Hadriche 59e378cc9c update dependencies (#568) 2025-03-17 11:57:53 -04:00
Brahim Hadriche a1c178830a [skip ci] update device script 2025-03-17 11:36:01 -04:00
Brahim Hadriche 173e6ffa6c Revert "Remove optional dep (#567)"
This reverts commit 207614ac5c.
2025-03-07 22:41:03 -05:00
Brahim Hadriche 207614ac5c Remove optional dep (#567) 2025-03-07 22:38:43 -05:00
Brahim Hadriche 5c7c6e83c3 update dependencies (#566) 2025-03-07 22:32:25 -05:00
Brahim Hadriche 9ceb1c8963 [chore] update dependencies (#565)
* update dependencies

* lock versions of bsc and daisyui
2025-03-02 14:33:32 -05:00
Brahim Hadriche 106a664c9f Transpiled files 2025-02-27 20:17:42 -05:00
Brahim Hadriche bd3ac7b9c1 App dialog signals to comply with certification 2025-02-27 20:16:58 -05:00
30 changed files with 1745 additions and 525 deletions

No files matched your search

+41 -1
View File
@@ -5,6 +5,46 @@ 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.36.7] - 2025-05-04
### Fixed
- Playlet backend error caused by Roku 14.5 update on Canada devices
## [0.36.6] - 2025-05-03
### Fixed
- Small UI bug in web app nav bar
- Backend logging to improve debugging
## [0.36.5] - 2025-05-02
### Fixed
- Small error handling bug in Playlet backend
## [0.36.4] - 2025-04-19
### Added
- Portuguese (Brazil) translations (Thanks to davbrasan)
### Removed
- Startup announcement dialog
### Fixed
- German translation (Thanks to Atalanttore)
## [0.36.3] - 2025-04-02
### Fixed
- Playlet backend parsing issue in search results
- Bug with saving search history
## [0.36.2] - 2025-02-28 ## [0.36.2] - 2025-02-28
### Added ### Added
@@ -20,7 +60,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Session data persists for 24 hours - Session data persists for 24 hours
- It reduces the privacy of the app, but can help with `Sign in to confirm you're not a bot` errors - It reduces the privacy of the app, but can help with `Sign in to confirm you're not a bot` errors
## Changed ### Changed
- Video queue view might be missing video titles and durations - Video queue view might be missing video titles and durations
- This is done to reduce the risk of rate limiting. No video titles in the queue is better than no videos playing at all. - This is done to reduce the risk of rate limiting. No video titles in the queue is better than no videos playing at all.
+2 -2
View File
@@ -15,7 +15,7 @@
<a href="/LICENSE"> <a href="/LICENSE">
<img alt="AGPL-3.0 license" src="https://img.shields.io/github/license/iBicha/playlet.svg"/> <img alt="AGPL-3.0 license" src="https://img.shields.io/github/license/iBicha/playlet.svg"/>
</a> </a>
<a href="https://channelstore.roku.com/details/840aec36f51bfe6d96cf6db9055a372a/playlet"> <a href="https://channelstore.roku.com/details/4a41d0921265a5e31429a7679442153f:b5bcb5b630c28b01e93bf59856317b43/playlet">
<img alt="Roku Channel Store" src="https://img.shields.io/badge/Roku%20Store-Install-blueviolet?logo=roku&logoColor=blueviolet&labelColor=white"/> <img alt="Roku Channel Store" src="https://img.shields.io/badge/Roku%20Store-Install-blueviolet?logo=roku&logoColor=blueviolet&labelColor=white"/>
</a> </a>
<a href="https://github.com/iBicha/playlet/wiki"> <a href="https://github.com/iBicha/playlet/wiki">
@@ -40,7 +40,7 @@ More under [Screenshots](./docs/screenshots/README.md)
## Installation ## Installation
[Playlet on Roku channel store](https://channelstore.roku.com/details/840aec36f51bfe6d96cf6db9055a372a/playlet) or search "Playlet" in the Roku channel store on your device. [Playlet on Roku channel store](https://channelstore.roku.com/details/4a41d0921265a5e31429a7679442153f:b5bcb5b630c28b01e93bf59856317b43/playlet) or search "Playlet" in the Roku channel store on your device.
Can't install from the store? See [How to install Playlet as a sideloaded/dev app](https://github.com/iBicha/playlet/discussions/371) Can't install from the store? See [How to install Playlet as a sideloaded/dev app](https://github.com/iBicha/playlet/discussions/371)
+1 -1
View File
@@ -2,7 +2,7 @@ openapi: 3.0.0
info: info:
title: Playlet Web API title: Playlet Web API
version: 0.36.2 version: 0.36.7
description: description:
Playlet Web API is a RESTful API for controlling the Playlet app on Playlet Web API is a RESTful API for controlling the Playlet app on
Roku devices. The API is intended to be used by the Playlet web app, but can Roku devices. The API is intended to be used by the Playlet web app, but can
+575 -293
View File
File diff suppressed because it is too large. Load diff
+14 -13
View File
@@ -1,37 +1,37 @@
{ {
"name": "playlet", "name": "playlet",
"version": "0.36.2", "version": "0.36.7",
"description": "Unofficial YouTube client for Roku", "description": "Unofficial YouTube client for Roku",
"devDependencies": { "devDependencies": {
"@rokucommunity/bslint": "^0.8.28", "@rokucommunity/bslint": "^0.8.29",
"@types/crypto-js": "^4.2.2", "@types/crypto-js": "^4.2.2",
"@types/fs-extra": "^11.0.4", "@types/fs-extra": "^11.0.4",
"@types/node": "^22.13.5", "@types/node": "^22.15.3",
"@types/xml2js": "^0.4.14", "@types/xml2js": "^0.4.14",
"argparse": "^2.0.1", "argparse": "^2.0.1",
"brighterscript": "0.68.5", "brighterscript": "0.68.5",
"brighterscript-formatter": "^1.7.10", "brighterscript-formatter": "^1.7.12",
"cheerio": "1.0.0-rc.11", "cheerio": "1.0.0-rc.11",
"convert-svg-to-png": "^0.6.4", "convert-svg-to-png": "^0.6.4",
"crypto-js": "^4.2.0", "crypto-js": "^4.2.0",
"dotenv": "^16.4.7", "dotenv": "^16.5.0",
"fs-extra": "^11.3.0", "fs-extra": "^11.3.0",
"glob": "^11.0.1", "glob": "^11.0.2",
"imap": "^0.8.19", "imap": "^0.8.19",
"ip": "^2.0.1", "ip": "^2.0.1",
"json5": "^2.2.3", "json5": "^2.2.3",
"mailparser": "^3.7.2", "mailparser": "^3.7.2",
"protocol-buffers-schema": "^3.6.0", "protocol-buffers-schema": "^3.6.0",
"roku-deploy": "^3.12.4", "roku-deploy": "^3.12.4",
"roku-test-automation": "^2.0.10", "roku-test-automation": "^2.0.13",
"rooibos-roku": "5.15.2", "rooibos-roku": "5.15.7",
"rounded-rect-9patch": "^1.1.2", "rounded-rect-9patch": "^1.1.2",
"semver": "^7.7.1", "semver": "^7.7.1",
"shelljs": "^0.8.5", "shelljs": "^0.9.2",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"typescript": "5.7.3", "typescript": "5.8.3",
"xml2js": "^0.6.2", "xml2js": "^0.6.2",
"yaml": "^2.7.0" "yaml": "^2.7.1"
}, },
"engines": { "engines": {
"node": "20" "node": "20"
@@ -66,14 +66,15 @@
"convert-images": "node tools/convert-images.js", "convert-images": "node tools/convert-images.js",
"update-rale-component": "cd tools/RALE && rm TrackerTask.xml && curl -o TrackerTask.zip https://devtools.web.roku.com/roku-advanced-layout-editor/app/TrackerTask.zip && unzip TrackerTask.zip && rm TrackerTask.zip", "update-rale-component": "cd tools/RALE && rm TrackerTask.xml && curl -o TrackerTask.zip https://devtools.web.roku.com/roku-advanced-layout-editor/app/TrackerTask.zip && unzip TrackerTask.zip && rm TrackerTask.zip",
"postinstall": "cd playlet-lib && npm install && cd ../playlet-app && npm install && cd ../playlet-web && npm install", "postinstall": "cd playlet-lib && npm install && cd ../playlet-app && npm install && cd ../playlet-web && npm install",
"update-deps": "npx npm-check-updates --deep --upgrade --install always --reject tailwindcss,cheerio", "update-deps": "npx npm-check-updates --deep --upgrade --install always --reject tailwindcss,cheerio,brighterscript,daisyui",
"registry:write": "node tools/registry.js --input registry.json", "registry:write": "node tools/registry.js --input registry.json",
"registry:read": "node tools/registry.js --output registry.json", "registry:read": "node tools/registry.js --output registry.json",
"registry:clear": "node tools/registry.js --clear", "registry:clear": "node tools/registry.js --clear",
"restart-app": "node tools/restart-app.js", "restart-app": "node tools/restart-app.js",
"check-for-updates": "node tools/check-for-updates.js",
"shutdown": "node tools/shutdown.js" "shutdown": "node tools/shutdown.js"
}, },
"optionalDependencies": { "optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "^4.34.8" "@rollup/rollup-linux-x64-gnu": "^4.40.1"
} }
} }
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "playlet-app", "name": "playlet-app",
"version": "0.36.2", "version": "0.36.7",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playlet-app", "name": "playlet-app",
"version": "0.36.2" "version": "0.36.7"
} }
} }
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "playlet-app", "name": "playlet-app",
"version": "0.36.2", "version": "0.36.7",
"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=36 minor_version=36
build_version=00002 build_version=00007
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.36.2", "version": "0.36.7",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playlet-lib", "name": "playlet-lib",
"version": "0.36.2" "version": "0.36.7"
} }
} }
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "playlet-lib", "name": "playlet-lib",
"version": "0.36.2", "version": "0.36.7",
"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",
+13 -3
View File
@@ -40,7 +40,6 @@ function MainSceneContainerChanged()
InitEcpArgs() InitEcpArgs()
m.scene.signalBeacon("AppLaunchComplete") m.scene.signalBeacon("AppLaunchComplete")
CopyLoadingMessagesToCache() CopyLoadingMessagesToCache()
ShowAnnouncement()
end function end function
function StartWebServer() function StartWebServer()
@@ -54,8 +53,8 @@ function StartWebServer()
m.dialServer@.StartServer() m.dialServer@.StartServer()
end function end function
function ShowAnnouncement() function ShowAnnouncement() as void
DialogUtils.ShowDialogOnce({ dialog = DialogUtils.ShowDialogOnce({
messageId: "1736288537" messageId: "1736288537"
title: "Announcement - Playlet backend" title: "Announcement - Playlet backend"
message: [ message: [
@@ -68,4 +67,15 @@ function ShowAnnouncement()
alwaysOnTop: true alwaysOnTop: true
marginWidth: 180 marginWidth: 180
}) })
if dialog = invalid
return
end if
m.scene.signalBeacon("AppDialogInitiate")
m.top.observeField("wasClosed", FuncName(OnAnnouncementDialogClosed))
end function
function OnAnnouncementDialogClosed()
m.scene.signalBeacon("AppDialogComplete")
end function end function
@@ -39,7 +39,6 @@ function MainSceneContainerChanged()
InitEcpArgs() InitEcpArgs()
m.scene.signalBeacon("AppLaunchComplete") m.scene.signalBeacon("AppLaunchComplete")
CopyLoadingMessagesToCache() CopyLoadingMessagesToCache()
ShowAnnouncement()
end function end function
function StartWebServer() function StartWebServer()
@@ -51,8 +50,8 @@ function StartWebServer()
m.dialServer.callfunc("StartServer", invalid) m.dialServer.callfunc("StartServer", invalid)
end function end function
function ShowAnnouncement() function ShowAnnouncement() as void
DialogUtils_ShowDialogOnce({ dialog = DialogUtils_ShowDialogOnce({
messageId: "1736288537" messageId: "1736288537"
title: "Announcement - Playlet backend" title: "Announcement - Playlet backend"
message: [ message: [
@@ -65,5 +64,14 @@ function ShowAnnouncement()
alwaysOnTop: true alwaysOnTop: true
marginWidth: 180 marginWidth: 180
}) })
if dialog = invalid
return
end if
m.scene.signalBeacon("AppDialogInitiate")
m.top.observeField("wasClosed", FuncName(OnAnnouncementDialogClosed))
end function
function OnAnnouncementDialogClosed()
m.scene.signalBeacon("AppDialogComplete")
end function end function
'//# sourceMappingURL=./MainScene.brs.map '//# sourceMappingURL=./MainScene.brs.map
@@ -5,10 +5,10 @@ const INNERTUBE_IOS_OS_VERSION = "18.1"
const INNERTUBE_IOS_USER_AGENT = "com.google.ios.youtube/19.49.7 (iPhone16,2; U; CPU iOS 18_1_0 like Mac OS X)" const INNERTUBE_IOS_USER_AGENT = "com.google.ios.youtube/19.49.7 (iPhone16,2; U; CPU iOS 18_1_0 like Mac OS X)"
const INNERTUBE_WEB_BROWSER_NAME = "Chrome" const INNERTUBE_WEB_BROWSER_NAME = "Chrome"
const INNERTUBE_WEB_BROWSER_VERSION = "131.0.0.0" const INNERTUBE_WEB_BROWSER_VERSION = "135.0.0.0"
const INNERTUBE_WEB_CLIENT_NAME = "1" const INNERTUBE_WEB_CLIENT_NAME = "1"
const INNERTUBE_WEB_CLIENT_VERSION = "2.20241230.09.00" const INNERTUBE_WEB_CLIENT_VERSION = "2.20250502.01.00"
const INNERTUBE_WEB_USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0" const INNERTUBE_WEB_USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0"
const INNERTUBE_TV_BROWSER_NAME = "LG Browser" const INNERTUBE_TV_BROWSER_NAME = "LG Browser"
const INNERTUBE_TV_BROWSER_VERSION = "7.00.00" const INNERTUBE_TV_BROWSER_VERSION = "7.00.00"
@@ -162,7 +162,12 @@ namespace Innertube
end function end function
function GetCurrentLocale(deviceInfo as object) as string function GetCurrentLocale(deviceInfo as object) as string
return deviceInfo.GetCurrentLocale() currentLocale = deviceInfo.GetCurrentLocale()
' en_CA is not a valid locale for Innertube
if currentLocale = "en_CA"
currentLocale = "en_US"
end if
return currentLocale
end function end function
function GetContentRegion(deviceInfo as object) as string function GetContentRegion(deviceInfo as object) as string
@@ -41,6 +41,10 @@ namespace InnertubeService
playerRequest = Innertube.CreatePlayerRequest(videoId, ctt, visitorData) playerRequest = Innertube.CreatePlayerRequest(videoId, ctt, visitorData)
playerRequest.Cancellation(cancellation) playerRequest.Cancellation(cancellation)
if raw
playerRequest.LogCurlCommand()
playerRequest.NoCache()
end if
playerRequest.Send() playerRequest.Send()
nextRequest = invalid nextRequest = invalid
@@ -48,6 +52,10 @@ namespace InnertubeService
if fetchNext if fetchNext
nextRequest = Innertube.CreateNextRequest({ "videoId": videoId }, ctt) nextRequest = Innertube.CreateNextRequest({ "videoId": videoId }, ctt)
nextRequest.Cancellation(cancellation) nextRequest.Cancellation(cancellation)
if raw
nextRequest.LogCurlCommand()
nextRequest.NoCache()
end if
nextRequest.Send() nextRequest.Send()
end if end if
@@ -227,9 +235,16 @@ namespace InnertubeService
request = Innertube.CreateBrowseRequest("FEtrending", Innertube.ClientType.WEB, params) request = Innertube.CreateBrowseRequest("FEtrending", Innertube.ClientType.WEB, params)
request.Cancellation(cancellation) request.Cancellation(cancellation)
if raw
request.LogCurlCommand()
request.NoCache()
end if
response = request.Await() response = request.Await()
if not response.IsSuccess() if not response.IsSuccess()
return invalid return {
error: response.ErrorMessage()
}
end if end if
if raw if raw
@@ -291,7 +306,9 @@ namespace InnertubeService
response = request.Await() response = request.Await()
if not response.IsSuccess() if not response.IsSuccess()
return invalid return {
error: response.ErrorMessage()
}
end if end if
json = response.Json() json = response.Json()
@@ -321,6 +338,10 @@ namespace InnertubeService
request = Innertube.CreateBrowseRequest(channelId, Innertube.ClientType.Web, params, continuation) request = Innertube.CreateBrowseRequest(channelId, Innertube.ClientType.Web, params, continuation)
request.Cancellation(cancellation) request.Cancellation(cancellation)
if raw
request.LogCurlCommand()
request.NoCache()
end if
response = request.Await() response = request.Await()
if not response.IsSuccess() if not response.IsSuccess()
@@ -369,6 +390,10 @@ namespace InnertubeService
request = Innertube.CreateBrowseRequest(playlistId, Innertube.ClientType.Web, "", continuation) request = Innertube.CreateBrowseRequest(playlistId, Innertube.ClientType.Web, "", continuation)
request.Cancellation(cancellation) request.Cancellation(cancellation)
if raw
request.LogCurlCommand()
request.NoCache()
end if
response = request.Await() response = request.Await()
if not response.IsSuccess() if not response.IsSuccess()
@@ -414,6 +439,10 @@ namespace InnertubeService
end if end if
request = Innertube.CreateNextRequest(args, "") request = Innertube.CreateNextRequest(args, "")
request.Cancellation(cancellation) request.Cancellation(cancellation)
if raw
request.LogCurlCommand()
request.NoCache()
end if
response = request.Await() response = request.Await()
if not response.IsSuccess() if not response.IsSuccess()
@@ -1,3 +1,7 @@
' Throw an error if an unknown node is encountered.
' Only used in debug mode.
#const THROW_ON_UNKNOWN_NODES = true
import "pkg:/source/utils/Logging.bs" import "pkg:/source/utils/Logging.bs"
import "pkg:/source/utils/ObjectUtils.bs" import "pkg:/source/utils/ObjectUtils.bs"
import "pkg:/source/utils/StringUtils.bs" import "pkg:/source/utils/StringUtils.bs"
@@ -21,7 +25,12 @@ namespace Innertube
for each key in nodeData for each key in nodeData
directive = directives[key] directive = directives[key]
if directive = invalid if directive = invalid
LogWarn("Unknown node", key) LogWarn("Unknown node", key, `\n`, FormatJson(nodeData[key]))
#if THROW_ON_UNKNOWN_NODES
#if DEBUG
throw "Unknown node: " + key
#end if
#end if
continue for continue for
end if end if
@@ -57,6 +66,7 @@ namespace Innertube
"gridChannelRenderer": ParseGridChannelRenderer "gridChannelRenderer": ParseGridChannelRenderer
"playlistRenderer": ParsePlaylistRenderer "playlistRenderer": ParsePlaylistRenderer
"gridPlaylistRenderer": ParseGridPlaylistRenderer "gridPlaylistRenderer": ParseGridPlaylistRenderer
"gridShelfViewModel": ParseGridShelfViewModel
"lockupViewModel": ParseLockupViewModel "lockupViewModel": ParseLockupViewModel
"shortsLockupViewModel": ParseShortsLockupViewModel "shortsLockupViewModel": ParseShortsLockupViewModel
"tvBrowseRenderer": ParseTvBrowseRenderer "tvBrowseRenderer": ParseTvBrowseRenderer
@@ -80,6 +90,10 @@ namespace Innertube
"horizontalCardListRenderer": ParseNotImplemented "horizontalCardListRenderer": ParseNotImplemented
' expandableTabRenderer contains the search tab with a channel. Ignored. ' expandableTabRenderer contains the search tab with a channel. Ignored.
"expandableTabRenderer": ParseNotImplemented "expandableTabRenderer": ParseNotImplemented
' Shows a view of an official channel (like an artist) with tracks or albums.
' Shows up in search results. Safe to ignore since the channel itself will also
' be shown in the search results, so this is kind of a duplicate.
"officialCardViewModel": ParseNotImplemented
' Usually contains a "X unavailable video(s) are hidden" message. Ignored. ' Usually contains a "X unavailable video(s) are hidden" message. Ignored.
"messageRenderer": ParseNotImplemented "messageRenderer": ParseNotImplemented
"clickTrackingParams": ParseNotImplemented "clickTrackingParams": ParseNotImplemented
@@ -661,6 +675,10 @@ namespace Innertube
return invalid return invalid
end function end function
function ParseGridShelfViewModel(nodeData as object, _context as object) as object
return nodeData["contents"]
end function
function ParseLockupViewModel(nodeData as object, context as object) as object function ParseLockupViewModel(nodeData as object, context as object) as object
contentType = ValidString(nodeData["contentType"]) contentType = ValidString(nodeData["contentType"])
if contentType = "LOCKUP_CONTENT_TYPE_PLAYLIST" if contentType = "LOCKUP_CONTENT_TYPE_PLAYLIST"
@@ -671,7 +689,12 @@ namespace Innertube
return LockupViewModelTypeAlbum(nodeData, context) return LockupViewModelTypeAlbum(nodeData, context)
end if end if
LogWarn("Unknown content type:", contentType, `\n`, nodeData) LogWarn("Unknown content type:", contentType, `\n`, FormatJson(nodeData))
#if THROW_ON_UNKNOWN_NODES
#if DEBUG
throw "Unknown content type: " + contentType
#end if
#end if
return invalid return invalid
end function end function
@@ -856,7 +879,12 @@ namespace Innertube
return TileRendererTypePlaylist(nodeData, context) return TileRendererTypePlaylist(nodeData, context)
end if end if
LogWarn("Unknown content type:", contentType, `\n`, nodeData) LogWarn("Unknown content type:", contentType, `\n`, FormatJson(nodeData))
#if THROW_ON_UNKNOWN_NODES
#if DEBUG
throw "Unknown content type: " + contentType
#end if
#end if
return invalid return invalid
end function end function
@@ -35,6 +35,10 @@ namespace Innertube
}) })
request.Cancellation(cancellation) request.Cancellation(cancellation)
if raw
request.NoCache()
request.LogCurlCommand()
end if
response = request.Await() response = request.Await()
if not response.IsSuccess() if not response.IsSuccess()
@@ -54,7 +54,13 @@ namespace SearchHistoryUtils
if history = invalid if history = invalid
return [] return []
end if end if
return ParseJson(history)
history = ParseJson(history)
if not IsArray(history)
return []
end if
return history
end function end function
function Clear() function Clear()
@@ -316,17 +316,18 @@ namespace Http
end if end if
result = InnertubeService.Search(query, options) result = InnertubeService.Search(query, options)
if result.error <> invalid
response.Json(result)
response.http_code = 500
return true
end if
if raw if raw
response.Json(result) response.Json(result)
return true return true
end if 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 if not IsArray(result.feeds) or result.feeds.Count() = 0
response.Json({ response.Json({
"error": "Failed to search" "error": "Failed to search"
+1 -1
View File
@@ -1266,7 +1266,7 @@
</message> </message>
<message> <message>
<source>Buffering</source> <source>Buffering</source>
<translation type="unfinished">Puffert</translation> <translation>Pufferung</translation>
</message> </message>
<message> <message>
<source>Do not show again</source> <source>Do not show again</source>
@@ -1268,5 +1268,17 @@
<source>Add to %1 bookmark</source> <source>Add to %1 bookmark</source>
<translation>Adicionar %1 ao marcadores</translation> <translation>Adicionar %1 ao marcadores</translation>
</message> </message>
<message>
<source>Courses</source>
<translation>Cursos</translation>
</message>
<message>
<source>Playlet built-in backend</source>
<translation>Back-end integrado do playlet</translation>
</message>
<message>
<source>Do not show again</source>
<translation>Não mostrar novamente</translation>
</message>
</context> </context>
</TS> </TS>
+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=36 minor_version=36
build_version=00002 build_version=00007
ui_resolutions=hd ui_resolutions=hd
uri_resolution_autosub=$$RES$$,480p,720p,1080p uri_resolution_autosub=$$RES$$,480p,720p,1080p
+10 -1
View File
@@ -279,6 +279,11 @@ namespace HttpClient
return m return m
end function end function
function LogCurlCommand() as HttpRequest
m._logCurlCommand = true
return m
end function
function ToCurlCommand() as string function ToCurlCommand() as string
command = `curl "${m.BuildUrl()}"` command = `curl "${m.BuildUrl()}"`
if m._method = "HEAD" if m._method = "HEAD"
@@ -350,9 +355,13 @@ namespace HttpClient
LogInfo("Sending", m._method, m.urlTransfer.GetURL(), "ID:", m.urlTransfer.GetIdentity()) LogInfo("Sending", m._method, m.urlTransfer.GetURL(), "ID:", m.urlTransfer.GetIdentity())
#if DEBUG #if DEBUG
? `════════ curl command ════════\n${m.ToCurlCommand()}\n══════════════════════════════` m._logCurlCommand = true
#end if #end if
if m._logCurlCommand = true
LogInfo(`======== curl command ========\n${m.ToCurlCommand()}\n==============================`)
end if
if m._method = "POST" if m._method = "POST"
body = m._body body = m._body
if body = invalid if body = invalid
+874 -169
View File
File diff suppressed because it is too large. Load diff
+8 -8
View File
@@ -1,6 +1,6 @@
{ {
"name": "playlet-web", "name": "playlet-web",
"version": "0.36.2", "version": "0.36.7",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
@@ -12,20 +12,20 @@
"@sveltejs/vite-plugin-svelte": "^5.0.3", "@sveltejs/vite-plugin-svelte": "^5.0.3",
"@tailwindcss/typography": "^0.5.16", "@tailwindcss/typography": "^0.5.16",
"@tsconfig/svelte": "^5.0.4", "@tsconfig/svelte": "^5.0.4",
"@vitejs/plugin-legacy": "^6.0.1", "@vitejs/plugin-legacy": "^6.1.1",
"autoprefixer": "^10.4.20", "autoprefixer": "^10.4.21",
"daisyui": "^4.12.23", "daisyui": "^4.12.23",
"dotenv": "^16.4.7", "dotenv": "^16.5.0",
"ip": "^2.0.1", "ip": "^2.0.1",
"postcss": "^8.5.3", "postcss": "^8.5.3",
"svelte": "^5.20.2", "svelte": "^5.28.2",
"svelte-check": "^4.1.4", "svelte-check": "^4.1.7",
"svelte-preprocess": "^6.0.3", "svelte-preprocess": "^6.0.3",
"tailwindcss": "^3.4.17", "tailwindcss": "^3.4.17",
"terser": "^5.39.0", "terser": "^5.39.0",
"tslib": "^2.8.1", "tslib": "^2.8.1",
"typescript": "^5.7.3", "typescript": "^5.8.3",
"vite": "^6.1.1", "vite": "^6.3.4",
"vite-plugin-compression": "^0.5.1", "vite-plugin-compression": "^0.5.1",
"vite-tsconfig-paths": "^5.1.4" "vite-tsconfig-paths": "^5.1.4"
} }
+5 -2
View File
@@ -69,8 +69,11 @@
<LinkDragDrop /> <LinkDragDrop />
<NavBar /> <NavBar />
<!-- TODO:P2 a better way to make the BottomNavigation not hide screens --> <!--
<div style="margin-bottom: 4rem"> Bottom navigation is of 4rem height, plus the safe area at the bottom.
Added so that bottom navigation does not overlap with the content.
-->
<div style="margin-bottom: calc(4rem + env(safe-area-inset-bottom))">
<SearchScreen visibility={currentScreen == "search"} /> <SearchScreen visibility={currentScreen == "search"} />
<HomeScreen visibility={currentScreen == "home"} /> <HomeScreen visibility={currentScreen == "home"} />
+2 -1
View File
@@ -49,7 +49,8 @@
} }
</script> </script>
<div class="btm-nav"> <!-- https://github.com/saadeghi/daisyui/issues/1732#issuecomment-1747818200 -->
<div class="btm-nav box-content">
<button <button
on:click={() => setScreen("search")} on:click={() => setScreen("search")}
class={$appStateStore.screen === "search" ? "active" : ""} class={$appStateStore.screen === "search" ? "active" : ""}
@@ -5,6 +5,7 @@
export let key: string; export let key: string;
export let icon; export let icon;
export let small: boolean = false; export let small: boolean = false;
export let singlePressEvent: boolean = false;
let button; let button;
@@ -37,11 +38,18 @@
let isDown = false; let isDown = false;
function pressKeyDown() { function pressKeyDown() {
isDown = true; isDown = true;
ExternalControlProtocol.pressKeyDown(key); if (singlePressEvent) {
ExternalControlProtocol.pressKey(key);
} else {
ExternalControlProtocol.pressKeyDown(key);
}
} }
function pressKeyUp() { function pressKeyUp() {
isDown = false; isDown = false;
if (singlePressEvent) {
return;
}
ExternalControlProtocol.pressKeyUp(key); ExternalControlProtocol.pressKeyUp(key);
} }
@@ -153,9 +153,24 @@ And set it to "Enabled".`;
<RemoteButton key={BUTTONS.fwd} icon={FastForwardIcon} small /> <RemoteButton key={BUTTONS.fwd} icon={FastForwardIcon} small />
</div> </div>
<div class="flex space-x-2 m-1"> <div class="flex space-x-2 m-1">
<RemoteButton key={BUTTONS.volumeMute} icon={VolumeMuteIcon} small /> <RemoteButton
<RemoteButton key={BUTTONS.volumeDown} icon={VolumeDownIcon} small /> key={BUTTONS.volumeMute}
<RemoteButton key={BUTTONS.volumeUp} icon={VolumeUpIcon} small /> icon={VolumeMuteIcon}
small
singlePressEvent
/>
<RemoteButton
key={BUTTONS.volumeDown}
icon={VolumeDownIcon}
small
singlePressEvent
/>
<RemoteButton
key={BUTTONS.volumeUp}
icon={VolumeUpIcon}
small
singlePressEvent
/>
</div> </div>
<button <button
on:click={showRemoteNotWorkingDialog} on:click={showRemoteNotWorkingDialog}
+53
View File
@@ -0,0 +1,53 @@
// Check for updates on Roku device
const rokuTestAutomation = require('roku-test-automation');
const ecp = rokuTestAutomation.ecp;
const utils = rokuTestAutomation.utils;
const Key = rokuTestAutomation.ECP.Key;
const getEnvVars = require('./get-env-vars');
const config = getEnvVars(['ROKU_DEV_TARGET']);
(async () => {
utils.setupEnvironmentFromConfig({
RokuDevice: {
devices: [{
host: config.ROKU_DEV_TARGET,
password: ''
}]
}
});
// Go to the home screen
await ecp.sendKeypress(Key.Home);
await utils.sleep(2000);
await ecp.sendKeypress(Key.Home);
await utils.sleep(2000);
// Settings menu
await ecp.sendKeypress(Key.Up);
await utils.sleep(500);
await ecp.sendKeypress(Key.Right);
await utils.sleep(500);
// System
await ecp.sendKeypress(Key.Up);
await utils.sleep(500);
await ecp.sendKeypress(Key.Right);
await utils.sleep(500);
// Software update
await ecp.sendKeypress(Key.Up);
await utils.sleep(500);
await ecp.sendKeypress(Key.Up);
await utils.sleep(500);
await ecp.sendKeypress(Key.Up);
await utils.sleep(500);
await ecp.sendKeypress(Key.Right);
await utils.sleep(2000);
// Check for updates
await ecp.sendKeypress(Key.Ok);
await utils.sleep(500);
})();