Compare commits

..
16 Commits
Author SHA1 Message Date
Brahim Hadriche 77314aaf30 Release v0.25.4 (#447) 2024-08-24 09:58:42 -04:00
Brahim Hadriche 432f87ca52 Fix crash related to web server 2024-08-24 09:13:55 -04:00
Brahim Hadriche e0338a5c05 Fix rare crash related to NavBar 2024-08-24 09:03:24 -04:00
Brahim Hadriche 2c46319b31 [skip ci] Update README.md 2024-08-17 13:12:19 -04:00
Brahim Hadriche 43bce072da [skip ci] Update README.md 2024-08-17 13:08:04 -04:00
Brahim Hadriche b6bd3b52a6 [skip ci] lounge field 2024-08-17 12:40:46 -04:00
Brahim Hadriche b464c40f20 changelog 2024-08-17 11:18:38 -04:00
10b82159d5 Translations update from Hosted Weblate (#442)
* Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (318 of 318 strings)

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

* Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (318 of 318 strings)

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

---------

Co-authored-by: davbrasan <davidbrazps2@gmail.com>
Co-authored-by: Brahim Hadriche <brahim.hadriche@gmail.com>
2024-08-17 11:18:09 -04:00
Brahim Hadriche cb9cdb8112 update dependencies (#441) 2024-08-16 22:31:53 -04:00
Brahim Hadriche 6eedeb375b [skip ci] Update README.md 2024-08-16 18:25:43 -04:00
Brahim Hadriche dc5913883b changelog 2024-08-15 11:06:28 -04:00
Weblate (bot)anddavbrasan 0c386cda02 Translated using Weblate (Portuguese (Brazil)) (#440)
Currently translated at 18.8% (60 of 318 strings)

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

Co-authored-by: davbrasan <davidbrazps2@gmail.com>
2024-08-15 11:06:09 -04:00
Brahim Hadriche feebf2b229 Release v0.25.3 (#439) 2024-08-13 20:58:02 -04:00
Brahim Hadriche 7d6f7f6314 added uri_resolution_autosub to manifest (needed to fix 720p UI) 2024-08-13 20:48:30 -04:00
Brahim Hadriche 088377fd82 Fix a bug where the web app qrcode doesn't show up 2024-08-11 17:11:03 -04:00
Brahim Hadriche 825b9e567b [chore] update dependencies (#438)
* update dependencies

* docs fix
2024-08-10 13:35:36 -04:00
22 changed files with 1990 additions and 634 deletions

No files matched your search

+18
View File
@@ -5,6 +5,24 @@ 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.25.4] - 2024-08-24
### Added
- Portuguese (Brazil) translations (Thanks to davbrasan)
### Fixed
- Rare crash related to NavBar
- Crash related to web server
## [0.25.3] - 2024-08-14
### Fixed
- a bug where the web app qrcode doesn't show up
- added `uri_resolution_autosub` to manifest (needed to fix 720p UI)
## [0.25.2] - 2024-08-05
### Added
+4 -2
View File
@@ -15,7 +15,7 @@
<a href="/LICENSE">
<img alt="AGPL-3.0 license" src="https://img.shields.io/github/license/iBicha/playlet.svg"/>
</a>
<a href="https://channelstore.roku.com/en-ca/details/840aec36f51bfe6d96cf6db9055a372a/playlet">
<a href="https://channelstore.roku.com/details/840aec36f51bfe6d96cf6db9055a372a/playlet">
<img alt="Roku Channel Store" src="https://img.shields.io/badge/Roku%20Store-Install-blueviolet?logo=roku&logoColor=blueviolet&labelColor=white"/>
</a>
<a href="https://github.com/iBicha/playlet/wiki">
@@ -40,7 +40,9 @@ More under [Screenshots](./docs/screenshots/README.md)
## Installation
[Playlet on Roku channel store](https://channelstore.roku.com/en-ca/details/840aec36f51bfe6d96cf6db9055a372a/playlet)
[Playlet on Roku channel store](https://channelstore.roku.com/details/840aec36f51bfe6d96cf6db9055a372a/playlet)
Note: sometimes a bug in Roku channel store redirects to a random app instead of Playlet. If this happens to you, you can install Playlet from your Roku TV directly, by searching "Playlet" in the store.
## Features
+3 -2
View File
@@ -145,7 +145,7 @@ There are a few reasons we made this separation:
- Playlet relies on [Invidious](https://github.com/iv-org/invidious). Invidious tries to keep up with YouTube making changes to their platform, but sometimes, a breaking change happens that requires Playlet to react quickly. Releasing through the Roku Channel store can take days, or a week. During this time, Playlet would be not functional, and that's not acceptable.
- The ability to roll back: Sometimes an app breaking bug gets released. Allowing users to choose a seperate version is a flexible way to keep things working. For example, it's possible to choose a different verrsion from the developer settings in the web app.
- It is simply easier to release: Releasing Playlet Lib on Github, and everyone receives the latest version immediately, is very conveninct and less of a hassle, than going through the Roku Channel store.
- It is simply easier to release: Releasing Playlet Lib on Github, and everyone receives the latest version immediately, is very convenient and less of a hassle, than going through the Roku Channel store.
- I've had instances where I was trying to pass the certfication for Playlet to publish it. One of the criterias is to pass a some automated tests. But the tests were failing because their system could not connect to their Roku test devices (connection keeps timing out). My only option was to keep trying over and over until it worked.
- It might sound that Playlet Lib is just a workaround for the Roku Channel release process. But phrased differently, Roku Channel release process is not good enough of what we need for Playlet.
- Canary builds: The latest version of Playlet can be tested as soon as it lands in the main branch. This is a great way to test newer features in production, without affecting the stability of the released version. Roku has the concept of "beta" channels, but they are more cumbersome.
@@ -182,7 +182,8 @@ These are useful to see if the files and caching are working as expected.
### Releases from Github
Since Component Libraries are simply zip files hosted at some https endpoint, Github releases are used to host and deliver Playet Lib to users. By default, Playlet grabs `https://github.com/iBicha/playlet/releases/latest/download/playlet-lib.zip` and loads it, but this can be pointed to somewhere else, if for some reason the Github repository becomes unavailable.
Since Component Libraries are simply zip/squashfs files hosted at some HTTPS endpoint, Github releases are used to host and deliver Playet Lib to users. By default, Playlet grabs `https://github.com/iBicha/playlet/releases/latest/download/playlet-lib.squashfs.pkg` and loads it, but this can be pointed to somewhere else, if for some reason the Github repository becomes unavailable.
Squashfs files are faster to load, but they require signing. Zip files can be used without signing if they are served from an HTTPS endpoint.
### Dev library hosted by VS Code Extension
+1 -1
View File
@@ -2,7 +2,7 @@ openapi: 3.0.0
info:
title: Playlet Web API
version: 0.25.2
version: 0.25.4
description:
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
+10 -10
View File
@@ -1,18 +1,18 @@
{
"name": "playlet",
"version": "0.25.2",
"version": "0.25.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "playlet",
"version": "0.25.2",
"version": "0.25.4",
"hasInstallScript": true,
"devDependencies": {
"@rokucommunity/bslint": "^0.8.22",
"@types/crypto-js": "^4.2.2",
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.1.0",
"@types/node": "^22.4.0",
"@types/xml2js": "^0.4.14",
"argparse": "^2.0.1",
"brighterscript": "0.67.5",
@@ -514,13 +514,13 @@
"dev": true
},
"node_modules/@types/node": {
"version": "22.1.0",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.1.0.tgz",
"integrity": "sha512-AOmuRF0R2/5j1knA3c6G3HOk523Ga+l+ZXltX8SF1+5oqcXijjfTd8fY3XRZqSihEu9XhtQnKYLmkFaoxgsJHw==",
"version": "22.4.0",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.4.0.tgz",
"integrity": "sha512-49AbMDwYUz7EXxKU/r7mXOsxwFr4BYbvB7tWYxVuLdb2ibd30ijjXINSMAHiEEZk5PCRBmW1gUeisn2VMKt3cQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"undici-types": "~6.13.0"
"undici-types": "~6.19.2"
}
},
"node_modules/@types/xml2js": {
@@ -5170,9 +5170,9 @@
"dev": true
},
"node_modules/undici-types": {
"version": "6.13.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.13.0.tgz",
"integrity": "sha512-xtFJHudx8S2DSoujjMd1WeWvn7KKWFRESZTMeL1RptAYERu29D6jphMjjY+vn96jvN3kVPDNxU/E13VTaXj6jg==",
"version": "6.19.6",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.6.tgz",
"integrity": "sha512-e/vggGopEfTKSvj4ihnOLTsqhrKRN3LeO6qSN/GxohhuRv8qH9bNQ4B8W7e/vFL+0XTnmHPB4/kegunZGA4Org==",
"dev": true,
"license": "MIT"
},
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "playlet",
"version": "0.25.2",
"version": "0.25.4",
"description": "Unofficial YouTube client for Roku",
"devDependencies": {
"@rokucommunity/bslint": "^0.8.22",
"@types/crypto-js": "^4.2.2",
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.1.0",
"@types/node": "^22.4.0",
"@types/xml2js": "^0.4.14",
"argparse": "^2.0.1",
"brighterscript": "0.67.5",
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "playlet-app",
"version": "0.25.2",
"version": "0.25.4",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "playlet-app",
"version": "0.25.2"
"version": "0.25.4"
}
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "playlet-app",
"version": "0.25.2",
"version": "0.25.4",
"description": "Unofficial YouTube client for Roku",
"scripts": {
"prebuild": "rm -rf ../build/playlet-app",
+2 -1
View File
@@ -3,9 +3,10 @@ title=Playlet
# Do not update version manually, it is auto updated from package.json
major_version=0
minor_version=25
build_version=00002
build_version=00004
ui_resolutions=hd
uri_resolution_autosub=$$RES$$,480p,720p,1080p
## Channel Assets
### Main Menu Icons / Channel Poster Artwork
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "playlet-lib",
"version": "0.25.2",
"version": "0.25.4",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "playlet-lib",
"version": "0.25.2"
"version": "0.25.4"
}
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "playlet-lib",
"version": "0.25.2",
"version": "0.25.4",
"description": "Unofficial YouTube client for Roku",
"scripts": {
"prebuild": "rm -rf ../build/playlet-lib",
@@ -1,27 +1,20 @@
function Init()
m.titleLabel = m.top.findNode("TitleLabel")
m.titleLabelFocused = m.top.findNode("TitleLabelFocused")
m.iconPoster = m.top.findNode("IconPoster")
m.profileIcon = m.top.findNode("ProfileIcon")
end function
function OnContentSet() as void
content = m.top.itemContent
if content = invalid
return
end if
m.titleLabel.text = content.text
m.titleLabelFocused.text = content.text
m.top.titleLabelText = content.text
m.top.titleLabelFocusedText = content.text
isProfile = content.isProfile
if isProfile
m.iconPoster.visible = false
m.profileIcon.visible = true
m.top.iconPosterVisible = false
m.top.profileIconVisible = true
else
m.iconPoster.visible = true
m.profileIcon.visible = false
m.iconPoster.uri = content.icon
m.top.iconPosterVisible = true
m.top.profileIconVisible = false
m.top.iconPosterUri = content.icon
end if
OnListHasFocusChange()
@@ -29,15 +22,15 @@ end function
function OnItemHasFocusChange() as void
itemHasFocus = m.top.itemHasFocus
m.titleLabelFocused.visible = itemHasFocus
m.titleLabel.visible = not itemHasFocus
m.top.titleLabelFocusedVisible = itemHasFocus
m.top.titleLabelVisible = not itemHasFocus
end function
function OnListHasFocusChange()
listHasFocus = m.top.listHasFocus
if not listHasFocus
m.titleLabelFocused.visible = false
m.titleLabel.visible = false
m.top.titleLabelFocusedVisible = false
m.top.titleLabelVisible = false
m.top.opacity = 0.8
else
OnItemHasFocusChange()
@@ -3,6 +3,14 @@
<field id="itemContent" type="node" onChange="OnContentSet" />
<field id="itemHasFocus" type="boolean" onChange="OnItemHasFocusChange" />
<field id="listHasFocus" type="boolean" onChange="OnListHasFocusChange" />
<field id="titleLabelText" type="string" alias="TitleLabel.text" />
<field id="titleLabelFocusedText" type="string" alias="TitleLabelFocused.text" />
<field id="titleLabelVisible" type="boolean" alias="TitleLabel.visible" />
<field id="titleLabelFocusedVisible" type="boolean" alias="TitleLabelFocused.visible" />
<field id="iconPosterVisible" type="boolean" alias="IconPoster.visible" />
<field id="iconPosterUri" type="uri" alias="IconPoster.uri" />
<field id="profileIconVisible" type="boolean" alias="ProfileIcon.visible" />
</interface>
<children>
@@ -1,5 +1,6 @@
import "pkg:/source/AsyncTask/AsyncTask.bs"
import "pkg:/source/AsyncTask/Tasks.bs"
import "pkg:/source/utils/Logging.bs"
import "pkg:/source/utils/StringUtils.bs"
import "pkg:/source/utils/Types.bs"
@@ -13,6 +14,8 @@ function Init()
OnSizeChange()
m.busySpinnerPoster.uri = "pkg:/images/spinner.png"
m.top.observeField("loadStatus", FuncName(OnLoadStatusChange))
end function
function OnSizeChange()
@@ -26,6 +29,21 @@ function OnSizeChange()
end function
function OnTextChange() as void
GenerateQrCode()
end function
function OnLoadStatusChange() as void
if m.top.loadStatus <> "failed"
return
end if
' If the image failed to load, it might have been deleted from cachefs:
' Try to generate it again
LogInfo("QrCode image failed to load, trying to generate it again")
GenerateQrCode()
end function
function GenerateQrCode() as void
if m.qrCodeGenTask <> invalid
m.qrCodeGenTask.cancel = true
end if
@@ -103,7 +103,9 @@ end function
function OnEditButtonSelected()
keyboardDialog = createObject("roSGNode", "StandardKeyboardDialog")
SetPalette(keyboardDialog)
' TODO:P2 localize
keyboardDialog.title = "Edit Instance"
' TODO:P2 localize
keyboardDialog.message = [`Enter the instance url (e.g. ${Invidious.DEFAULT_INSTANCE})`]
keyboardDialog.text = m.top.text
keyboardDialog.buttons = [Tr(Locale.Buttons.OK), Tr(Locale.Buttons.Cancel)]
@@ -44,6 +44,7 @@ const FIELD_VIDEO_ID = "videoId"
const FIELD_VIDEO_IDS = "videoIds"
const FIELD_EVENT_DETAILS = "eventDetails"
const FIELD_LIST_ID = "listId"
const FIELD_MDX_EXPANDED_RECEIVER_VIDEO_ID_LIST = "mdxExpandedReceiverVideoIdList"
const FIELD_CURRENT_TIME = "currentTime"
const FIELD_DURATION = "duration"
const FIELD_VOLUME = "volume"
@@ -6,7 +6,14 @@ namespace Http
function MimeType(uri = "" as string) as string
map = m.MimeTypes
if map = invalid
map = ParseJson(ReadAsciiFile("libpkg:/config/mime-types.json5"))
json = ReadAsciiFile("libpkg:/config/mime-types.json5")
if StringUtils.IsNullOrEmpty(json)
return "application/octet-stream"
end if
map = ParseJson(json)
if not IsAssociativeArray(map)
return "application/octet-stream"
end if
m.MimeTypes = map
end if
ext = m.GetExtension(uri)
@@ -29,7 +36,14 @@ namespace Http
function HttpTitle(code = 0 as integer) as string
map = m.httpCodesMap
if map = invalid
map = ParseJson(ReadAsciiFile("libpkg:/config/http-codes.json5"))
json = ReadAsciiFile("libpkg:/config/http-codes.json5")
if StringUtils.IsNullOrEmpty(json)
return ""
end if
map = ParseJson(json)
if not IsAssociativeArray(map)
return ""
end if
m.httpCodesMap = map
end if
return ValidString(map[`${code}`])
File diff suppressed because it is too large. Load diff
+2 -1
View File
@@ -3,9 +3,10 @@ title=PlayletLib
# Do not update version manually, it is auto updated from package.json
major_version=0
minor_version=25
build_version=00002
build_version=00004
ui_resolutions=hd
uri_resolution_autosub=$$RES$$,480p,720p,1080p
sg_component_libs_provided=PlayletLib
hidden=1
+2 -2
View File
@@ -11,9 +11,9 @@ namespace QrCode
function Generate(text as string, size as integer, padding as integer, mode = QrCode.QrMode.Byte as QrCode.QrMode) as string
fileName = m.GetFileName(text, mode, size, padding)
#if DEBUG
#if DISABLE_CACHE
#else
#if DISABLE_CACHE
#if DEBUG
#else
fs = CreateObject("roFileSystem")
if fs.exists(fileName)
+714 -577
View File
File diff suppressed because it is too large. Load diff
+8 -8
View File
@@ -1,6 +1,6 @@
{
"name": "playlet-web",
"version": "0.25.2",
"version": "0.25.4",
"type": "module",
"scripts": {
"dev": "vite",
@@ -10,22 +10,22 @@
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^3.1.1",
"@tailwindcss/typography": "^0.5.13",
"@tailwindcss/typography": "^0.5.14",
"@tsconfig/svelte": "^5.0.4",
"@vitejs/plugin-legacy": "^5.4.1",
"@vitejs/plugin-legacy": "^5.4.2",
"autoprefixer": "^10.4.20",
"daisyui": "^4.12.10",
"dotenv": "^16.4.5",
"ip": "^2.0.1",
"postcss": "^8.4.40",
"postcss": "^8.4.41",
"svelte": "^4.2.18",
"svelte-check": "^3.8.5",
"svelte-preprocess": "^6.0.2",
"tailwindcss": "^3.4.7",
"terser": "^5.31.3",
"tailwindcss": "^3.4.10",
"terser": "^5.31.6",
"tslib": "^2.6.3",
"typescript": "^5.5.4",
"vite": "^5.3.5",
"vite-tsconfig-paths": "^4.3.2"
"vite": "^5.4.1",
"vite-tsconfig-paths": "^5.0.1"
}
}