Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a0efb3bd76 | ||
|
|
026a1d49d9 | ||
|
|
2dc52cca04 | ||
|
|
5d100fb6eb | ||
|
|
8cd3264766 | ||
|
|
46c7f3ebf6 | ||
|
|
f4ebb9068a | ||
|
|
d43d807f11 | ||
|
|
d41d4d990b | ||
|
|
20faa017fd | ||
|
|
e7234c38cd | ||
|
|
77314aaf30 | ||
|
|
432f87ca52 | ||
|
|
e0338a5c05 | ||
|
|
2c46319b31 | ||
|
|
43bce072da | ||
|
|
b6bd3b52a6 | ||
|
|
b464c40f20 | ||
|
|
10b82159d5 | ||
|
|
cb9cdb8112 | ||
|
|
6eedeb375b | ||
|
|
dc5913883b | ||
|
|
0c386cda02 | ||
|
|
feebf2b229 | ||
|
|
7d6f7f6314 | ||
|
|
088377fd82 | ||
|
|
825b9e567b |
No files matched your search
@@ -5,6 +5,41 @@ 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.6] - 2024-09-12
|
||||
|
||||
### Added
|
||||
|
||||
- Support for parsing playlist urls in web app (`https://www.youtube.com/playlist?list=ID`)
|
||||
- Back the announcement for the `This helps protect our community` error message
|
||||
|
||||
## [0.25.5] - 2024-09-06
|
||||
|
||||
### Fixed
|
||||
|
||||
- A bug where channel view infinitely tries to load a `Topic` channel
|
||||
|
||||
### Changed
|
||||
|
||||
- Removed announcement
|
||||
|
||||
## [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
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ openapi: 3.0.0
|
||||
|
||||
info:
|
||||
title: Playlet Web API
|
||||
version: 0.25.2
|
||||
version: 0.25.6
|
||||
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
|
||||
|
||||
Generated
+24
-22
@@ -1,21 +1,21 @@
|
||||
{
|
||||
"name": "playlet",
|
||||
"version": "0.25.2",
|
||||
"version": "0.25.6",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "playlet",
|
||||
"version": "0.25.2",
|
||||
"version": "0.25.6",
|
||||
"hasInstallScript": true,
|
||||
"devDependencies": {
|
||||
"@rokucommunity/bslint": "^0.8.22",
|
||||
"@rokucommunity/bslint": "^0.8.24",
|
||||
"@types/crypto-js": "^4.2.2",
|
||||
"@types/fs-extra": "^11.0.4",
|
||||
"@types/node": "^22.1.0",
|
||||
"@types/node": "^22.5.4",
|
||||
"@types/xml2js": "^0.4.14",
|
||||
"argparse": "^2.0.1",
|
||||
"brighterscript": "0.67.5",
|
||||
"brighterscript": "0.67.6",
|
||||
"brighterscript-formatter": "^1.7.4",
|
||||
"convert-svg-to-png": "^0.6.4",
|
||||
"cross-fetch": "^4.0.0",
|
||||
@@ -36,7 +36,7 @@
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "^5.5.4",
|
||||
"xml2js": "^0.6.2",
|
||||
"yaml": "^2.5.0"
|
||||
"yaml": "^2.5.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": "20"
|
||||
@@ -289,10 +289,11 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/@rokucommunity/bslint": {
|
||||
"version": "0.8.22",
|
||||
"resolved": "https://registry.npmjs.org/@rokucommunity/bslint/-/bslint-0.8.22.tgz",
|
||||
"integrity": "sha512-ulHGouWoIUuJ7lMRpTGWGjM9lcI/9tfas4hrXifDePZfga65DsBvnDh1aLgHp79X1SUtpV/QpWR3ymKCwlG0Yw==",
|
||||
"version": "0.8.24",
|
||||
"resolved": "https://registry.npmjs.org/@rokucommunity/bslint/-/bslint-0.8.24.tgz",
|
||||
"integrity": "sha512-1EbA6VeW3QC2QQ/Tqf9qTTcCdZ2ZP9q7H9ZvkeN9gzWYiXFSpJo9AnS41LzEsjRKUtC95UXxIhNhIt4Y+x5szg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"fs-extra": "^10.0.0",
|
||||
"jsonc-parser": "^2.3.0",
|
||||
@@ -514,13 +515,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.5.4",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.4.tgz",
|
||||
"integrity": "sha512-FDuKUJQm/ju9fT/SeX/6+gBzoPzlVCzfzmGkwKvRHQVxi4BntVbyIwf6a4Xn62mrvndLiml6z/UBXIdEVjQLXg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"undici-types": "~6.13.0"
|
||||
"undici-types": "~6.19.2"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/xml2js": {
|
||||
@@ -888,9 +889,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/brighterscript": {
|
||||
"version": "0.67.5",
|
||||
"resolved": "https://registry.npmjs.org/brighterscript/-/brighterscript-0.67.5.tgz",
|
||||
"integrity": "sha512-OUJ5xLymzKXir8/RdWKamRIYbcqFy2JgqSp6eu2F+wdlCp3rlKCrP83pjEJ9kuqwJCo/V2pjTUcilcNBLkvuIg==",
|
||||
"version": "0.67.6",
|
||||
"resolved": "https://registry.npmjs.org/brighterscript/-/brighterscript-0.67.6.tgz",
|
||||
"integrity": "sha512-MsqPOTJSzvVaOY4R5aykdg9jqesBPZbIXZZvmBKHI5DYwBWtY9SMDe2G+AwTwQ3q8KJvmsPQ6Yw/UbL8tReizQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
@@ -5170,9 +5171,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"
|
||||
},
|
||||
@@ -5536,10 +5537,11 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/yaml": {
|
||||
"version": "2.5.0",
|
||||
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.5.0.tgz",
|
||||
"integrity": "sha512-2wWLbGbYDiSqqIKoPjar3MPgB94ErzCtrNE1FdqGuaO0pi2JGjmE8aW8TDZwzU7vuxcGRdL/4gPQwQ7hD5AMSw==",
|
||||
"version": "2.5.1",
|
||||
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.5.1.tgz",
|
||||
"integrity": "sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==",
|
||||
"dev": true,
|
||||
"license": "ISC",
|
||||
"bin": {
|
||||
"yaml": "bin.mjs"
|
||||
},
|
||||
|
||||
+5
-5
@@ -1,15 +1,15 @@
|
||||
{
|
||||
"name": "playlet",
|
||||
"version": "0.25.2",
|
||||
"version": "0.25.6",
|
||||
"description": "Unofficial YouTube client for Roku",
|
||||
"devDependencies": {
|
||||
"@rokucommunity/bslint": "^0.8.22",
|
||||
"@rokucommunity/bslint": "^0.8.24",
|
||||
"@types/crypto-js": "^4.2.2",
|
||||
"@types/fs-extra": "^11.0.4",
|
||||
"@types/node": "^22.1.0",
|
||||
"@types/node": "^22.5.4",
|
||||
"@types/xml2js": "^0.4.14",
|
||||
"argparse": "^2.0.1",
|
||||
"brighterscript": "0.67.5",
|
||||
"brighterscript": "0.67.6",
|
||||
"brighterscript-formatter": "^1.7.4",
|
||||
"convert-svg-to-png": "^0.6.4",
|
||||
"cross-fetch": "^4.0.0",
|
||||
@@ -30,7 +30,7 @@
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "^5.5.4",
|
||||
"xml2js": "^0.6.2",
|
||||
"yaml": "^2.5.0"
|
||||
"yaml": "^2.5.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": "20"
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "playlet-app",
|
||||
"version": "0.25.2",
|
||||
"version": "0.25.6",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "playlet-app",
|
||||
"version": "0.25.2"
|
||||
"version": "0.25.6"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "playlet-app",
|
||||
"version": "0.25.2",
|
||||
"version": "0.25.6",
|
||||
"description": "Unofficial YouTube client for Roku",
|
||||
"scripts": {
|
||||
"prebuild": "rm -rf ../build/playlet-app",
|
||||
|
||||
@@ -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=00006
|
||||
|
||||
ui_resolutions=hd
|
||||
uri_resolution_autosub=$$RES$$,480p,720p,1080p
|
||||
|
||||
## Channel Assets
|
||||
### Main Menu Icons / Channel Poster Artwork
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "playlet-lib",
|
||||
"version": "0.25.2",
|
||||
"version": "0.25.6",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "playlet-lib",
|
||||
"version": "0.25.2"
|
||||
"version": "0.25.6"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "playlet-lib",
|
||||
"version": "0.25.2",
|
||||
"version": "0.25.6",
|
||||
"description": "Unofficial YouTube client for Roku",
|
||||
"scripts": {
|
||||
"prebuild": "rm -rf ../build/playlet-lib",
|
||||
|
||||
@@ -7,13 +7,13 @@ import "pkg:/source/utils/Locale.bs"
|
||||
import "pkg:/source/utils/Logging.bs"
|
||||
|
||||
function LoadChannel(invidiousNode as object) as void
|
||||
if m.contentTask <> invalid
|
||||
m.contentTask.cancel = true
|
||||
loadState = m.top.loadState
|
||||
if loadState = FeedLoadState.Loading or loadState = FeedLoadState.Loaded or loadState = FeedLoadState.Error
|
||||
return
|
||||
end if
|
||||
|
||||
loadState = m.top.loadState
|
||||
if loadState = FeedLoadState.Loading or loadState = FeedLoadState.Loaded
|
||||
return
|
||||
if m.contentTask <> invalid
|
||||
m.contentTask.cancel = true
|
||||
end if
|
||||
|
||||
m.top.loadState = FeedLoadState.Loading
|
||||
|
||||
@@ -39,7 +39,7 @@ function ShowAnnouncement()
|
||||
message = [
|
||||
"Hello again!",
|
||||
"Invidious servers are actively getting blocked by YouTube.",
|
||||
`If you see the error message "This helps protect our community. Learn more" when playing a video, try changing the Invidious instance in the settings.`,
|
||||
`You might see the error message "This helps protect our community. Learn more" when playing a video.`,
|
||||
"This is a known issue and the Invidious dev team is working to fix it."
|
||||
"See more information at https://github.com/iv-org/invidious/issues/4734"
|
||||
"We apologize for the inconvenience."
|
||||
|
||||
@@ -37,7 +37,7 @@ function ShowAnnouncement()
|
||||
message = [
|
||||
"Hello again!"
|
||||
"Invidious servers are actively getting blocked by YouTube."
|
||||
"If you see the error message " + chr(34) + "This helps protect our community. Learn more" + chr(34) + " when playing a video, try changing the Invidious instance in the settings."
|
||||
"You might see the error message " + chr(34) + "This helps protect our community. Learn more" + chr(34) + " when playing a video."
|
||||
"This is a known issue and the Invidious dev team is working to fix it."
|
||||
"See more information at https://github.com/iv-org/invidious/issues/4734"
|
||||
"We apologize for the inconvenience."
|
||||
|
||||
@@ -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
|
||||
|
||||
+2
@@ -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
@@ -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=00006
|
||||
|
||||
ui_resolutions=hd
|
||||
uri_resolution_autosub=$$RES$$,480p,720p,1080p
|
||||
|
||||
sg_component_libs_provided=PlayletLib
|
||||
hidden=1
|
||||
|
||||
@@ -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)
|
||||
|
||||
Generated
+880
-849
File diff suppressed because it is too large.
Load diff
+12
-12
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "playlet-web",
|
||||
"version": "0.25.2",
|
||||
"version": "0.25.6",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
@@ -9,23 +9,23 @@
|
||||
"check": "svelte-check --tsconfig ./tsconfig.json"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/vite-plugin-svelte": "^3.1.1",
|
||||
"@tailwindcss/typography": "^0.5.13",
|
||||
"@sveltejs/vite-plugin-svelte": "^3.1.2",
|
||||
"@tailwindcss/typography": "^0.5.15",
|
||||
"@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",
|
||||
"svelte": "^4.2.18",
|
||||
"svelte-check": "^3.8.5",
|
||||
"postcss": "^8.4.45",
|
||||
"svelte": "^4.2.19",
|
||||
"svelte-check": "^4.0.1",
|
||||
"svelte-preprocess": "^6.0.2",
|
||||
"tailwindcss": "^3.4.7",
|
||||
"terser": "^5.31.3",
|
||||
"tslib": "^2.6.3",
|
||||
"tailwindcss": "^3.4.10",
|
||||
"terser": "^5.31.6",
|
||||
"tslib": "^2.7.0",
|
||||
"typescript": "^5.5.4",
|
||||
"vite": "^5.3.5",
|
||||
"vite-tsconfig-paths": "^4.3.2"
|
||||
"vite": "^5.4.3",
|
||||
"vite-tsconfig-paths": "^5.0.1"
|
||||
}
|
||||
}
|
||||
@@ -57,6 +57,15 @@ export class InvidiousApi {
|
||||
return await response.json();
|
||||
}
|
||||
|
||||
public async getPlaylistMetadata(plid: string) {
|
||||
if (plid.startsWith("VLPL")) {
|
||||
plid = plid.substring(2);
|
||||
}
|
||||
|
||||
const response = await fetch(`${this.instance}/api/v1/playlists/${plid}`);
|
||||
return await response.json();
|
||||
}
|
||||
|
||||
public async resolveUrl(url: string) {
|
||||
const response = await fetch(`${this.instance}/api/v1/resolveurl?url=${encodeURIComponent(url)}`);
|
||||
return await response.json();
|
||||
|
||||
@@ -4,9 +4,11 @@
|
||||
import { InvidiousApi } from "lib/Api/InvidiousApi";
|
||||
import VideoCastDialog from "./VideoFeed/VideoCastDialog.svelte";
|
||||
import ChannelCastDialog from "./VideoFeed/ChannelCastDialog.svelte";
|
||||
import PlaylistCastDialog from "./VideoFeed/PlaylistCastDialog.svelte";
|
||||
|
||||
let videoModal;
|
||||
let channelModal;
|
||||
let playlistModal;
|
||||
let isDragging;
|
||||
let isLoading;
|
||||
let dragEndTimeout;
|
||||
@@ -16,6 +18,7 @@
|
||||
|
||||
let videoMetadata;
|
||||
let channelMetadata;
|
||||
let playlistMetadata;
|
||||
|
||||
let invidiousApi = new InvidiousApi();
|
||||
|
||||
@@ -71,6 +74,9 @@
|
||||
if (urlInfo && urlInfo.pageType === "WEB_PAGE_TYPE_CHANNEL") {
|
||||
searchForChannelById(urlInfo.ucid);
|
||||
return;
|
||||
} else if (urlInfo && urlInfo.pageType === "WEB_PAGE_TYPE_PLAYLIST") {
|
||||
searchForPlaylistById(urlInfo.ucid);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -100,6 +106,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
async function searchForPlaylistById(playlistId) {
|
||||
try {
|
||||
isLoading = true;
|
||||
playlistMetadata = await invidiousApi.getPlaylistMetadata(playlistId);
|
||||
playlistModal.show();
|
||||
} finally {
|
||||
isLoading = false;
|
||||
}
|
||||
}
|
||||
|
||||
function onDragOver(event) {
|
||||
closeModal();
|
||||
clearTimeout(dragEndTimeout);
|
||||
@@ -183,8 +199,10 @@
|
||||
function closeModal() {
|
||||
videoModal?.close();
|
||||
channelModal?.close();
|
||||
playlistModal?.close();
|
||||
videoMetadata = undefined;
|
||||
channelMetadata = undefined;
|
||||
playlistMetadata = undefined;
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -221,3 +239,12 @@
|
||||
authorId={channelMetadata?.authorId}
|
||||
authorThumbnails={channelMetadata?.authorThumbnails}
|
||||
/>
|
||||
|
||||
<PlaylistCastDialog
|
||||
bind:this={playlistModal}
|
||||
title={playlistMetadata?.title}
|
||||
playlistId={playlistMetadata?.playlistId}
|
||||
playlistThumbnail={playlistMetadata?.playlistThumbnail}
|
||||
videoCount={playlistMetadata?.videoCount}
|
||||
videos={playlistMetadata?.videos}
|
||||
/>
|
||||
@@ -183,10 +183,11 @@ imap.once('ready', async () => {
|
||||
|
||||
writeMarkDownFile(images);
|
||||
|
||||
await moveToTrash('bdp_noreply@data.roku.com', 'Channel Health', yesterdayString);
|
||||
await moveToTrash('bdp_noreply@data.roku.com', 'Channel Engagement', yesterdayString);
|
||||
await moveToTrash('bdp_noreply@data.roku.com', 'Viewership Summary', yesterdayString);
|
||||
await moveToTrash('bdp_noreply@data.roku.com', 'Channel Stability', yesterdayString);
|
||||
// TODO:P0 deleting emails hangs the process, so it's disabled for now
|
||||
// await moveToTrash('bdp_noreply@data.roku.com', 'Channel Health', yesterdayString);
|
||||
// await moveToTrash('bdp_noreply@data.roku.com', 'Channel Engagement', yesterdayString);
|
||||
// await moveToTrash('bdp_noreply@data.roku.com', 'Viewership Summary', yesterdayString);
|
||||
// await moveToTrash('bdp_noreply@data.roku.com', 'Channel Stability', yesterdayString);
|
||||
|
||||
imap.end();
|
||||
} catch (error) {
|
||||
|
||||
Reference in new issue
Block a user