Compare commits

..
12 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
19 changed files with 1933 additions and 615 deletions

No files matched your search

+11
View File
@@ -5,6 +5,17 @@ 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.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 ## [0.25.3] - 2024-08-14
### Fixed ### Fixed
+4 -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/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"/> <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,9 @@ More under [Screenshots](./docs/screenshots/README.md)
## Installation ## 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 ## Features
+1 -1
View File
@@ -2,7 +2,7 @@ openapi: 3.0.0
info: info:
title: Playlet Web API title: Playlet Web API
version: 0.25.3 version: 0.25.4
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
+10 -10
View File
@@ -1,18 +1,18 @@
{ {
"name": "playlet", "name": "playlet",
"version": "0.25.3", "version": "0.25.4",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playlet", "name": "playlet",
"version": "0.25.3", "version": "0.25.4",
"hasInstallScript": true, "hasInstallScript": true,
"devDependencies": { "devDependencies": {
"@rokucommunity/bslint": "^0.8.22", "@rokucommunity/bslint": "^0.8.22",
"@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.2.0", "@types/node": "^22.4.0",
"@types/xml2js": "^0.4.14", "@types/xml2js": "^0.4.14",
"argparse": "^2.0.1", "argparse": "^2.0.1",
"brighterscript": "0.67.5", "brighterscript": "0.67.5",
@@ -514,13 +514,13 @@
"dev": true "dev": true
}, },
"node_modules/@types/node": { "node_modules/@types/node": {
"version": "22.2.0", "version": "22.4.0",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.2.0.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-22.4.0.tgz",
"integrity": "sha512-bm6EG6/pCpkxDf/0gDNDdtDILMOHgaQBVOJGdwsqClnxA3xL6jtMv76rLBc006RVMWbmaf0xbmom4Z/5o2nRkQ==", "integrity": "sha512-49AbMDwYUz7EXxKU/r7mXOsxwFr4BYbvB7tWYxVuLdb2ibd30ijjXINSMAHiEEZk5PCRBmW1gUeisn2VMKt3cQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"undici-types": "~6.13.0" "undici-types": "~6.19.2"
} }
}, },
"node_modules/@types/xml2js": { "node_modules/@types/xml2js": {
@@ -5170,9 +5170,9 @@
"dev": true "dev": true
}, },
"node_modules/undici-types": { "node_modules/undici-types": {
"version": "6.13.0", "version": "6.19.6",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.13.0.tgz", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.6.tgz",
"integrity": "sha512-xtFJHudx8S2DSoujjMd1WeWvn7KKWFRESZTMeL1RptAYERu29D6jphMjjY+vn96jvN3kVPDNxU/E13VTaXj6jg==", "integrity": "sha512-e/vggGopEfTKSvj4ihnOLTsqhrKRN3LeO6qSN/GxohhuRv8qH9bNQ4B8W7e/vFL+0XTnmHPB4/kegunZGA4Org==",
"dev": true, "dev": true,
"license": "MIT" "license": "MIT"
}, },
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "playlet", "name": "playlet",
"version": "0.25.3", "version": "0.25.4",
"description": "Unofficial YouTube client for Roku", "description": "Unofficial YouTube client for Roku",
"devDependencies": { "devDependencies": {
"@rokucommunity/bslint": "^0.8.22", "@rokucommunity/bslint": "^0.8.22",
"@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.2.0", "@types/node": "^22.4.0",
"@types/xml2js": "^0.4.14", "@types/xml2js": "^0.4.14",
"argparse": "^2.0.1", "argparse": "^2.0.1",
"brighterscript": "0.67.5", "brighterscript": "0.67.5",
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "playlet-app", "name": "playlet-app",
"version": "0.25.3", "version": "0.25.4",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playlet-app", "name": "playlet-app",
"version": "0.25.3" "version": "0.25.4"
} }
} }
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "playlet-app", "name": "playlet-app",
"version": "0.25.3", "version": "0.25.4",
"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=25 minor_version=25
build_version=00003 build_version=00004
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.25.3", "version": "0.25.4",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playlet-lib", "name": "playlet-lib",
"version": "0.25.3" "version": "0.25.4"
} }
} }
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "playlet-lib", "name": "playlet-lib",
"version": "0.25.3", "version": "0.25.4",
"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",
@@ -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 function OnContentSet() as void
content = m.top.itemContent content = m.top.itemContent
if content = invalid if content = invalid
return return
end if end if
m.titleLabel.text = content.text m.top.titleLabelText = content.text
m.titleLabelFocused.text = content.text m.top.titleLabelFocusedText = content.text
isProfile = content.isProfile isProfile = content.isProfile
if isProfile if isProfile
m.iconPoster.visible = false m.top.iconPosterVisible = false
m.profileIcon.visible = true m.top.profileIconVisible = true
else else
m.iconPoster.visible = true m.top.iconPosterVisible = true
m.profileIcon.visible = false m.top.profileIconVisible = false
m.iconPoster.uri = content.icon m.top.iconPosterUri = content.icon
end if end if
OnListHasFocusChange() OnListHasFocusChange()
@@ -29,15 +22,15 @@ end function
function OnItemHasFocusChange() as void function OnItemHasFocusChange() as void
itemHasFocus = m.top.itemHasFocus itemHasFocus = m.top.itemHasFocus
m.titleLabelFocused.visible = itemHasFocus m.top.titleLabelFocusedVisible = itemHasFocus
m.titleLabel.visible = not itemHasFocus m.top.titleLabelVisible = not itemHasFocus
end function end function
function OnListHasFocusChange() function OnListHasFocusChange()
listHasFocus = m.top.listHasFocus listHasFocus = m.top.listHasFocus
if not listHasFocus if not listHasFocus
m.titleLabelFocused.visible = false m.top.titleLabelFocusedVisible = false
m.titleLabel.visible = false m.top.titleLabelVisible = false
m.top.opacity = 0.8 m.top.opacity = 0.8
else else
OnItemHasFocusChange() OnItemHasFocusChange()
@@ -3,6 +3,14 @@
<field id="itemContent" type="node" onChange="OnContentSet" /> <field id="itemContent" type="node" onChange="OnContentSet" />
<field id="itemHasFocus" type="boolean" onChange="OnItemHasFocusChange" /> <field id="itemHasFocus" type="boolean" onChange="OnItemHasFocusChange" />
<field id="listHasFocus" type="boolean" onChange="OnListHasFocusChange" /> <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> </interface>
<children> <children>
@@ -103,7 +103,9 @@ end function
function OnEditButtonSelected() function OnEditButtonSelected()
keyboardDialog = createObject("roSGNode", "StandardKeyboardDialog") keyboardDialog = createObject("roSGNode", "StandardKeyboardDialog")
SetPalette(keyboardDialog) SetPalette(keyboardDialog)
' TODO:P2 localize
keyboardDialog.title = "Edit Instance" keyboardDialog.title = "Edit Instance"
' TODO:P2 localize
keyboardDialog.message = [`Enter the instance url (e.g. ${Invidious.DEFAULT_INSTANCE})`] keyboardDialog.message = [`Enter the instance url (e.g. ${Invidious.DEFAULT_INSTANCE})`]
keyboardDialog.text = m.top.text keyboardDialog.text = m.top.text
keyboardDialog.buttons = [Tr(Locale.Buttons.OK), Tr(Locale.Buttons.Cancel)] 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_VIDEO_IDS = "videoIds"
const FIELD_EVENT_DETAILS = "eventDetails" const FIELD_EVENT_DETAILS = "eventDetails"
const FIELD_LIST_ID = "listId" const FIELD_LIST_ID = "listId"
const FIELD_MDX_EXPANDED_RECEIVER_VIDEO_ID_LIST = "mdxExpandedReceiverVideoIdList"
const FIELD_CURRENT_TIME = "currentTime" const FIELD_CURRENT_TIME = "currentTime"
const FIELD_DURATION = "duration" const FIELD_DURATION = "duration"
const FIELD_VOLUME = "volume" const FIELD_VOLUME = "volume"
@@ -6,7 +6,14 @@ namespace Http
function MimeType(uri = "" as string) as string function MimeType(uri = "" as string) as string
map = m.MimeTypes map = m.MimeTypes
if map = invalid 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 m.MimeTypes = map
end if end if
ext = m.GetExtension(uri) ext = m.GetExtension(uri)
@@ -29,7 +36,14 @@ namespace Http
function HttpTitle(code = 0 as integer) as string function HttpTitle(code = 0 as integer) as string
map = m.httpCodesMap map = m.httpCodesMap
if map = invalid 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 m.httpCodesMap = map
end if end if
return ValidString(map[`${code}`]) return ValidString(map[`${code}`])
File diff suppressed because it is too large. Load diff
+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=25 minor_version=25
build_version=00003 build_version=00004
ui_resolutions=hd ui_resolutions=hd
uri_resolution_autosub=$$RES$$,480p,720p,1080p uri_resolution_autosub=$$RES$$,480p,720p,1080p
+692 -565
View File
File diff suppressed because it is too large. Load diff
+5 -5
View File
@@ -1,6 +1,6 @@
{ {
"name": "playlet-web", "name": "playlet-web",
"version": "0.25.3", "version": "0.25.4",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
@@ -12,7 +12,7 @@
"@sveltejs/vite-plugin-svelte": "^3.1.1", "@sveltejs/vite-plugin-svelte": "^3.1.1",
"@tailwindcss/typography": "^0.5.14", "@tailwindcss/typography": "^0.5.14",
"@tsconfig/svelte": "^5.0.4", "@tsconfig/svelte": "^5.0.4",
"@vitejs/plugin-legacy": "^5.4.1", "@vitejs/plugin-legacy": "^5.4.2",
"autoprefixer": "^10.4.20", "autoprefixer": "^10.4.20",
"daisyui": "^4.12.10", "daisyui": "^4.12.10",
"dotenv": "^16.4.5", "dotenv": "^16.4.5",
@@ -21,11 +21,11 @@
"svelte": "^4.2.18", "svelte": "^4.2.18",
"svelte-check": "^3.8.5", "svelte-check": "^3.8.5",
"svelte-preprocess": "^6.0.2", "svelte-preprocess": "^6.0.2",
"tailwindcss": "^3.4.9", "tailwindcss": "^3.4.10",
"terser": "^5.31.5", "terser": "^5.31.6",
"tslib": "^2.6.3", "tslib": "^2.6.3",
"typescript": "^5.5.4", "typescript": "^5.5.4",
"vite": "^5.4.0", "vite": "^5.4.1",
"vite-tsconfig-paths": "^5.0.1" "vite-tsconfig-paths": "^5.0.1"
} }
} }