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 |
No files matched your search
@@ -5,6 +5,34 @@ 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.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
|
## [0.25.3] - 2024-08-14
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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.6
|
||||||
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
|
||||||
|
|||||||
Generated
+24
-22
@@ -1,21 +1,21 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.25.3",
|
"version": "0.25.6",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.25.3",
|
"version": "0.25.6",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rokucommunity/bslint": "^0.8.22",
|
"@rokucommunity/bslint": "^0.8.24",
|
||||||
"@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.5.4",
|
||||||
"@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.6",
|
||||||
"brighterscript-formatter": "^1.7.4",
|
"brighterscript-formatter": "^1.7.4",
|
||||||
"convert-svg-to-png": "^0.6.4",
|
"convert-svg-to-png": "^0.6.4",
|
||||||
"cross-fetch": "^4.0.0",
|
"cross-fetch": "^4.0.0",
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
"ts-node": "^10.9.2",
|
"ts-node": "^10.9.2",
|
||||||
"typescript": "^5.5.4",
|
"typescript": "^5.5.4",
|
||||||
"xml2js": "^0.6.2",
|
"xml2js": "^0.6.2",
|
||||||
"yaml": "^2.5.0"
|
"yaml": "^2.5.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "20"
|
"node": "20"
|
||||||
@@ -289,10 +289,11 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@rokucommunity/bslint": {
|
"node_modules/@rokucommunity/bslint": {
|
||||||
"version": "0.8.22",
|
"version": "0.8.24",
|
||||||
"resolved": "https://registry.npmjs.org/@rokucommunity/bslint/-/bslint-0.8.22.tgz",
|
"resolved": "https://registry.npmjs.org/@rokucommunity/bslint/-/bslint-0.8.24.tgz",
|
||||||
"integrity": "sha512-ulHGouWoIUuJ7lMRpTGWGjM9lcI/9tfas4hrXifDePZfga65DsBvnDh1aLgHp79X1SUtpV/QpWR3ymKCwlG0Yw==",
|
"integrity": "sha512-1EbA6VeW3QC2QQ/Tqf9qTTcCdZ2ZP9q7H9ZvkeN9gzWYiXFSpJo9AnS41LzEsjRKUtC95UXxIhNhIt4Y+x5szg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"fs-extra": "^10.0.0",
|
"fs-extra": "^10.0.0",
|
||||||
"jsonc-parser": "^2.3.0",
|
"jsonc-parser": "^2.3.0",
|
||||||
@@ -514,13 +515,13 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "22.2.0",
|
"version": "22.5.4",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.4.tgz",
|
||||||
"integrity": "sha512-bm6EG6/pCpkxDf/0gDNDdtDILMOHgaQBVOJGdwsqClnxA3xL6jtMv76rLBc006RVMWbmaf0xbmom4Z/5o2nRkQ==",
|
"integrity": "sha512-FDuKUJQm/ju9fT/SeX/6+gBzoPzlVCzfzmGkwKvRHQVxi4BntVbyIwf6a4Xn62mrvndLiml6z/UBXIdEVjQLXg==",
|
||||||
"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": {
|
||||||
@@ -888,9 +889,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/brighterscript": {
|
"node_modules/brighterscript": {
|
||||||
"version": "0.67.5",
|
"version": "0.67.6",
|
||||||
"resolved": "https://registry.npmjs.org/brighterscript/-/brighterscript-0.67.5.tgz",
|
"resolved": "https://registry.npmjs.org/brighterscript/-/brighterscript-0.67.6.tgz",
|
||||||
"integrity": "sha512-OUJ5xLymzKXir8/RdWKamRIYbcqFy2JgqSp6eu2F+wdlCp3rlKCrP83pjEJ9kuqwJCo/V2pjTUcilcNBLkvuIg==",
|
"integrity": "sha512-MsqPOTJSzvVaOY4R5aykdg9jqesBPZbIXZZvmBKHI5DYwBWtY9SMDe2G+AwTwQ3q8KJvmsPQ6Yw/UbL8tReizQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -5170,9 +5171,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"
|
||||||
},
|
},
|
||||||
@@ -5536,10 +5537,11 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/yaml": {
|
"node_modules/yaml": {
|
||||||
"version": "2.5.0",
|
"version": "2.5.1",
|
||||||
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.5.0.tgz",
|
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.5.1.tgz",
|
||||||
"integrity": "sha512-2wWLbGbYDiSqqIKoPjar3MPgB94ErzCtrNE1FdqGuaO0pi2JGjmE8aW8TDZwzU7vuxcGRdL/4gPQwQ7hD5AMSw==",
|
"integrity": "sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
"license": "ISC",
|
||||||
"bin": {
|
"bin": {
|
||||||
"yaml": "bin.mjs"
|
"yaml": "bin.mjs"
|
||||||
},
|
},
|
||||||
|
|||||||
+5
-5
@@ -1,15 +1,15 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.25.3",
|
"version": "0.25.6",
|
||||||
"description": "Unofficial YouTube client for Roku",
|
"description": "Unofficial YouTube client for Roku",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rokucommunity/bslint": "^0.8.22",
|
"@rokucommunity/bslint": "^0.8.24",
|
||||||
"@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.5.4",
|
||||||
"@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.6",
|
||||||
"brighterscript-formatter": "^1.7.4",
|
"brighterscript-formatter": "^1.7.4",
|
||||||
"convert-svg-to-png": "^0.6.4",
|
"convert-svg-to-png": "^0.6.4",
|
||||||
"cross-fetch": "^4.0.0",
|
"cross-fetch": "^4.0.0",
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
"ts-node": "^10.9.2",
|
"ts-node": "^10.9.2",
|
||||||
"typescript": "^5.5.4",
|
"typescript": "^5.5.4",
|
||||||
"xml2js": "^0.6.2",
|
"xml2js": "^0.6.2",
|
||||||
"yaml": "^2.5.0"
|
"yaml": "^2.5.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "20"
|
"node": "20"
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-app",
|
"name": "playlet-app",
|
||||||
"version": "0.25.3",
|
"version": "0.25.6",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet-app",
|
"name": "playlet-app",
|
||||||
"version": "0.25.3"
|
"version": "0.25.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-app",
|
"name": "playlet-app",
|
||||||
"version": "0.25.3",
|
"version": "0.25.6",
|
||||||
"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",
|
||||||
|
|||||||
@@ -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=00006
|
||||||
|
|
||||||
ui_resolutions=hd
|
ui_resolutions=hd
|
||||||
uri_resolution_autosub=$$RES$$,480p,720p,1080p
|
uri_resolution_autosub=$$RES$$,480p,720p,1080p
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-lib",
|
"name": "playlet-lib",
|
||||||
"version": "0.25.3",
|
"version": "0.25.6",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet-lib",
|
"name": "playlet-lib",
|
||||||
"version": "0.25.3"
|
"version": "0.25.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-lib",
|
"name": "playlet-lib",
|
||||||
"version": "0.25.3",
|
"version": "0.25.6",
|
||||||
"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",
|
||||||
|
|||||||
@@ -7,13 +7,13 @@ import "pkg:/source/utils/Locale.bs"
|
|||||||
import "pkg:/source/utils/Logging.bs"
|
import "pkg:/source/utils/Logging.bs"
|
||||||
|
|
||||||
function LoadChannel(invidiousNode as object) as void
|
function LoadChannel(invidiousNode as object) as void
|
||||||
if m.contentTask <> invalid
|
loadState = m.top.loadState
|
||||||
m.contentTask.cancel = true
|
if loadState = FeedLoadState.Loading or loadState = FeedLoadState.Loaded or loadState = FeedLoadState.Error
|
||||||
|
return
|
||||||
end if
|
end if
|
||||||
|
|
||||||
loadState = m.top.loadState
|
if m.contentTask <> invalid
|
||||||
if loadState = FeedLoadState.Loading or loadState = FeedLoadState.Loaded
|
m.contentTask.cancel = true
|
||||||
return
|
|
||||||
end if
|
end if
|
||||||
|
|
||||||
m.top.loadState = FeedLoadState.Loading
|
m.top.loadState = FeedLoadState.Loading
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ function ShowAnnouncement()
|
|||||||
message = [
|
message = [
|
||||||
"Hello again!",
|
"Hello again!",
|
||||||
"Invidious servers are actively getting blocked by YouTube.",
|
"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."
|
"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"
|
"See more information at https://github.com/iv-org/invidious/issues/4734"
|
||||||
"We apologize for the inconvenience."
|
"We apologize for the inconvenience."
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ function ShowAnnouncement()
|
|||||||
message = [
|
message = [
|
||||||
"Hello again!"
|
"Hello again!"
|
||||||
"Invidious servers are actively getting blocked by YouTube."
|
"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."
|
"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"
|
"See more information at https://github.com/iv-org/invidious/issues/4734"
|
||||||
"We apologize for the inconvenience."
|
"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
|
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>
|
||||||
|
|||||||
+2
@@ -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
@@ -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=00006
|
||||||
|
|
||||||
ui_resolutions=hd
|
ui_resolutions=hd
|
||||||
uri_resolution_autosub=$$RES$$,480p,720p,1080p
|
uri_resolution_autosub=$$RES$$,480p,720p,1080p
|
||||||
|
|||||||
Generated
+866
-845
File diff suppressed because it is too large.
Load diff
+11
-11
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-web",
|
"name": "playlet-web",
|
||||||
"version": "0.25.3",
|
"version": "0.25.6",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
@@ -9,23 +9,23 @@
|
|||||||
"check": "svelte-check --tsconfig ./tsconfig.json"
|
"check": "svelte-check --tsconfig ./tsconfig.json"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sveltejs/vite-plugin-svelte": "^3.1.1",
|
"@sveltejs/vite-plugin-svelte": "^3.1.2",
|
||||||
"@tailwindcss/typography": "^0.5.14",
|
"@tailwindcss/typography": "^0.5.15",
|
||||||
"@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",
|
||||||
"ip": "^2.0.1",
|
"ip": "^2.0.1",
|
||||||
"postcss": "^8.4.41",
|
"postcss": "^8.4.45",
|
||||||
"svelte": "^4.2.18",
|
"svelte": "^4.2.19",
|
||||||
"svelte-check": "^3.8.5",
|
"svelte-check": "^4.0.1",
|
||||||
"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.7.0",
|
||||||
"typescript": "^5.5.4",
|
"typescript": "^5.5.4",
|
||||||
"vite": "^5.4.0",
|
"vite": "^5.4.3",
|
||||||
"vite-tsconfig-paths": "^5.0.1"
|
"vite-tsconfig-paths": "^5.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -57,6 +57,15 @@ export class InvidiousApi {
|
|||||||
return await response.json();
|
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) {
|
public async resolveUrl(url: string) {
|
||||||
const response = await fetch(`${this.instance}/api/v1/resolveurl?url=${encodeURIComponent(url)}`);
|
const response = await fetch(`${this.instance}/api/v1/resolveurl?url=${encodeURIComponent(url)}`);
|
||||||
return await response.json();
|
return await response.json();
|
||||||
|
|||||||
@@ -4,9 +4,11 @@
|
|||||||
import { InvidiousApi } from "lib/Api/InvidiousApi";
|
import { InvidiousApi } from "lib/Api/InvidiousApi";
|
||||||
import VideoCastDialog from "./VideoFeed/VideoCastDialog.svelte";
|
import VideoCastDialog from "./VideoFeed/VideoCastDialog.svelte";
|
||||||
import ChannelCastDialog from "./VideoFeed/ChannelCastDialog.svelte";
|
import ChannelCastDialog from "./VideoFeed/ChannelCastDialog.svelte";
|
||||||
|
import PlaylistCastDialog from "./VideoFeed/PlaylistCastDialog.svelte";
|
||||||
|
|
||||||
let videoModal;
|
let videoModal;
|
||||||
let channelModal;
|
let channelModal;
|
||||||
|
let playlistModal;
|
||||||
let isDragging;
|
let isDragging;
|
||||||
let isLoading;
|
let isLoading;
|
||||||
let dragEndTimeout;
|
let dragEndTimeout;
|
||||||
@@ -16,6 +18,7 @@
|
|||||||
|
|
||||||
let videoMetadata;
|
let videoMetadata;
|
||||||
let channelMetadata;
|
let channelMetadata;
|
||||||
|
let playlistMetadata;
|
||||||
|
|
||||||
let invidiousApi = new InvidiousApi();
|
let invidiousApi = new InvidiousApi();
|
||||||
|
|
||||||
@@ -71,6 +74,9 @@
|
|||||||
if (urlInfo && urlInfo.pageType === "WEB_PAGE_TYPE_CHANNEL") {
|
if (urlInfo && urlInfo.pageType === "WEB_PAGE_TYPE_CHANNEL") {
|
||||||
searchForChannelById(urlInfo.ucid);
|
searchForChannelById(urlInfo.ucid);
|
||||||
return;
|
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) {
|
function onDragOver(event) {
|
||||||
closeModal();
|
closeModal();
|
||||||
clearTimeout(dragEndTimeout);
|
clearTimeout(dragEndTimeout);
|
||||||
@@ -183,8 +199,10 @@
|
|||||||
function closeModal() {
|
function closeModal() {
|
||||||
videoModal?.close();
|
videoModal?.close();
|
||||||
channelModal?.close();
|
channelModal?.close();
|
||||||
|
playlistModal?.close();
|
||||||
videoMetadata = undefined;
|
videoMetadata = undefined;
|
||||||
channelMetadata = undefined;
|
channelMetadata = undefined;
|
||||||
|
playlistMetadata = undefined;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -221,3 +239,12 @@
|
|||||||
authorId={channelMetadata?.authorId}
|
authorId={channelMetadata?.authorId}
|
||||||
authorThumbnails={channelMetadata?.authorThumbnails}
|
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);
|
writeMarkDownFile(images);
|
||||||
|
|
||||||
await moveToTrash('bdp_noreply@data.roku.com', 'Channel Health', yesterdayString);
|
// TODO:P0 deleting emails hangs the process, so it's disabled for now
|
||||||
await moveToTrash('bdp_noreply@data.roku.com', 'Channel Engagement', yesterdayString);
|
// await moveToTrash('bdp_noreply@data.roku.com', 'Channel Health', yesterdayString);
|
||||||
await moveToTrash('bdp_noreply@data.roku.com', 'Viewership Summary', yesterdayString);
|
// await moveToTrash('bdp_noreply@data.roku.com', 'Channel Engagement', yesterdayString);
|
||||||
await moveToTrash('bdp_noreply@data.roku.com', 'Channel Stability', yesterdayString);
|
// await moveToTrash('bdp_noreply@data.roku.com', 'Viewership Summary', yesterdayString);
|
||||||
|
// await moveToTrash('bdp_noreply@data.roku.com', 'Channel Stability', yesterdayString);
|
||||||
|
|
||||||
imap.end();
|
imap.end();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in new issue
Block a user