Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf54a10803 | ||
|
|
980781c453 | ||
|
|
657b6c9818 | ||
|
|
b49557a5a6 | ||
|
|
c2abcc5478 | ||
|
|
8307f577fd | ||
|
|
0ce0dc43c3 | ||
|
|
357019d74b | ||
|
|
bfc1439d1a | ||
|
|
dd2262ec28 | ||
|
|
0c3f8cea2a | ||
|
|
4682d4f3e4 | ||
|
|
1e161e8a77 | ||
|
|
ee239c3ea9 | ||
|
|
1daddc9b91 | ||
|
|
335761aa8e | ||
|
|
d3f443e304 | ||
|
|
0efc1c2969 | ||
|
|
9093e99e10 | ||
|
|
3c41d90b67 | ||
|
|
eaf4c000b1 | ||
|
|
830889bd90 | ||
|
|
4ef35b0ae7 | ||
|
|
fa908c1f53 | ||
|
|
944a785dc3 |
No files matched your search
@@ -5,6 +5,40 @@ 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.33.1] - 2024-12-17
|
||||
|
||||
### Added
|
||||
|
||||
- Compression (gzip) to static web app files. Reduces app size significantly
|
||||
- UI to clarify how to enable `Control by mobile apps` in the web app
|
||||
|
||||
### Fixed
|
||||
|
||||
- Error when opening a mix
|
||||
|
||||
## [0.33.0] - 2024-12-14
|
||||
|
||||
### Added
|
||||
|
||||
- Search suggestions to Playlet backend
|
||||
- Support for age restrcited videos and private videos when cast from YouTube app (logged in)
|
||||
- Note: it works when the video is explicitely cast. If it was added to queue, or added as part of a playlist, this might not work.
|
||||
|
||||
### Fixed
|
||||
|
||||
- Improved on issue with long videos (10+ hours) showing as 2:30 only. They now show about 5 hours.
|
||||
|
||||
## [0.32.1] - 2024-12-03
|
||||
|
||||
### Fixed
|
||||
|
||||
- Hls hanging on HDR videos
|
||||
- [Perf] Small optimization to json payload size in Innertube
|
||||
|
||||
### Changed
|
||||
|
||||
- Default Invidious instance
|
||||
|
||||
## [0.32.0] - 2024-11-29
|
||||
|
||||
### Added
|
||||
|
||||
@@ -42,8 +42,6 @@ More under [Screenshots](./docs/screenshots/README.md)
|
||||
|
||||
[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.
|
||||
|
||||
Can't install from the store? See [How to install Playlet as a sideloaded/dev app](https://github.com/iBicha/playlet/discussions/371)
|
||||
|
||||
## Features
|
||||
|
||||
@@ -2,7 +2,7 @@ openapi: 3.0.0
|
||||
|
||||
info:
|
||||
title: Playlet Web API
|
||||
version: 0.32.0
|
||||
version: 0.33.1
|
||||
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
+82
-133
@@ -1,34 +1,34 @@
|
||||
{
|
||||
"name": "playlet",
|
||||
"version": "0.32.0",
|
||||
"version": "0.33.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "playlet",
|
||||
"version": "0.32.0",
|
||||
"version": "0.33.1",
|
||||
"hasInstallScript": true,
|
||||
"devDependencies": {
|
||||
"@rokucommunity/bslint": "^0.8.26",
|
||||
"@types/crypto-js": "^4.2.2",
|
||||
"@types/fs-extra": "^11.0.4",
|
||||
"@types/node": "^22.9.3",
|
||||
"@types/node": "^22.10.2",
|
||||
"@types/xml2js": "^0.4.14",
|
||||
"argparse": "^2.0.1",
|
||||
"brighterscript": "0.68.0",
|
||||
"brighterscript": "0.68.2",
|
||||
"brighterscript-formatter": "^1.7.6",
|
||||
"convert-svg-to-png": "^0.6.4",
|
||||
"cross-fetch": "^4.0.0",
|
||||
"crypto-js": "^4.2.0",
|
||||
"dotenv": "^16.4.5",
|
||||
"express": "^4.21.1",
|
||||
"dotenv": "^16.4.7",
|
||||
"express": "^4.21.2",
|
||||
"fs-extra": "^11.2.0",
|
||||
"glob": "^11.0.0",
|
||||
"imap": "^0.8.19",
|
||||
"ip": "^2.0.1",
|
||||
"json5": "^2.2.3",
|
||||
"mailparser": "^3.7.1",
|
||||
"roku-deploy": "^3.12.2",
|
||||
"mailparser": "^3.7.2",
|
||||
"roku-deploy": "^3.12.3",
|
||||
"rooibos-roku": "5.14.0",
|
||||
"rounded-rect-9patch": "^1.0.1",
|
||||
"semver": "^7.6.3",
|
||||
@@ -271,9 +271,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@postman/tunnel-agent": {
|
||||
"version": "0.6.3",
|
||||
"resolved": "https://registry.npmjs.org/@postman/tunnel-agent/-/tunnel-agent-0.6.3.tgz",
|
||||
"integrity": "sha512-k57fzmAZ2PJGxfOA4SGR05ejorHbVAa/84Hxh/2nAztjNXc4ZjOm9NUIk6/Z6LCrBvJZqjRZbN8e/nROVUPVdg==",
|
||||
"version": "0.6.4",
|
||||
"resolved": "https://registry.npmjs.org/@postman/tunnel-agent/-/tunnel-agent-0.6.4.tgz",
|
||||
"integrity": "sha512-CJJlq8V7rNKhAw4sBfjixKpJW00SHqebqNUQKxMoepgeWZIbdPcD+rguRcivGhS4N12PymDcKgUgSD4rVC+RjQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"safe-buffer": "^5.0.1"
|
||||
@@ -522,12 +522,13 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "22.9.3",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.9.3.tgz",
|
||||
"integrity": "sha512-F3u1fs/fce3FFk+DAxbxc78DF8x0cY09RRL8GnXLmkJ1jvx3TtPdWoTT5/NiYfI5ASqXBmfqJi9dZ3gxMx4lzw==",
|
||||
"version": "22.10.2",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.2.tgz",
|
||||
"integrity": "sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"undici-types": "~6.19.8"
|
||||
"undici-types": "~6.20.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/request": {
|
||||
@@ -926,9 +927,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/brighterscript": {
|
||||
"version": "0.68.0",
|
||||
"resolved": "https://registry.npmjs.org/brighterscript/-/brighterscript-0.68.0.tgz",
|
||||
"integrity": "sha512-UKxzMHJo9QhOmcIrfjB0ICjWoK3b6PGJ4AnKPCg8GYF1FR6IW+03Q8MinTR0iTjlC0DbiXTvc9GS+1tUTAOi4Q==",
|
||||
"version": "0.68.2",
|
||||
"resolved": "https://registry.npmjs.org/brighterscript/-/brighterscript-0.68.2.tgz",
|
||||
"integrity": "sha512-KV7CcvpPRqFtlBBVNWYPR8dq7KmmKB6Ymkd6pTt1uztm1c3Fgm3DaqfT842I0yW2LZz3uIb2EKmoLDdnnjEQFQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@rokucommunity/bslib": "^0.1.1",
|
||||
@@ -954,7 +955,7 @@
|
||||
"parse-ms": "^2.1.0",
|
||||
"readline": "^1.3.0",
|
||||
"require-relative": "^0.8.7",
|
||||
"roku-deploy": "^3.12.2",
|
||||
"roku-deploy": "^3.12.3",
|
||||
"serialize-error": "^7.0.1",
|
||||
"source-map": "^0.7.4",
|
||||
"vscode-languageserver": "^9.0.1",
|
||||
@@ -2115,9 +2116,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/dotenv": {
|
||||
"version": "16.4.5",
|
||||
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz",
|
||||
"integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==",
|
||||
"version": "16.4.7",
|
||||
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz",
|
||||
"integrity": "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
@@ -2186,9 +2187,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/encoding-japanese": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/encoding-japanese/-/encoding-japanese-2.0.0.tgz",
|
||||
"integrity": "sha512-++P0RhebUC8MJAwJOsT93dT+5oc5oPImp1HubZpAuCZ5kTLnhuuBhKHj2jJeO/Gj93idPBWmIuQ9QWMe5rX3pQ==",
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/encoding-japanese/-/encoding-japanese-2.2.0.tgz",
|
||||
"integrity": "sha512-EuJWwlHPZ1LbADuKTClvHtwbaFn4rOD+dRAbWysqEOXRc2Uui0hJInNJrsdH0c+OhJA4nrCBdSkW4DD5YxAo6A==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=8.10.0"
|
||||
@@ -2301,11 +2302,10 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/express": {
|
||||
"version": "4.21.1",
|
||||
"resolved": "https://registry.npmjs.org/express/-/express-4.21.1.tgz",
|
||||
"integrity": "sha512-YSFlK1Ee0/GC8QaO91tHcDxJiE/X4FbpAyQWkxAvG6AXCuR65YzK8ua6D9hvi/TzUfZMpc+BwuM1IPw8fmQBiQ==",
|
||||
"version": "4.21.2",
|
||||
"resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz",
|
||||
"integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"accepts": "~1.3.8",
|
||||
"array-flatten": "1.1.1",
|
||||
@@ -2326,7 +2326,7 @@
|
||||
"methods": "~1.1.2",
|
||||
"on-finished": "2.4.1",
|
||||
"parseurl": "~1.3.3",
|
||||
"path-to-regexp": "0.1.10",
|
||||
"path-to-regexp": "0.1.12",
|
||||
"proxy-addr": "~2.0.7",
|
||||
"qs": "6.13.0",
|
||||
"range-parser": "~1.2.1",
|
||||
@@ -2341,6 +2341,10 @@
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.10.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/extend": {
|
||||
@@ -3365,30 +3369,21 @@
|
||||
}
|
||||
},
|
||||
"node_modules/libbase64": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/libbase64/-/libbase64-1.2.1.tgz",
|
||||
"integrity": "sha512-l+nePcPbIG1fNlqMzrh68MLkX/gTxk/+vdvAb388Ssi7UuUN31MI44w4Yf33mM3Cm4xDfw48mdf3rkdHszLNew==",
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/libbase64/-/libbase64-1.3.0.tgz",
|
||||
"integrity": "sha512-GgOXd0Eo6phYgh0DJtjQ2tO8dc0IVINtZJeARPeiIJqge+HdsWSuaDTe8ztQ7j/cONByDZ3zeB325AHiv5O0dg==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/libmime": {
|
||||
"version": "5.3.5",
|
||||
"resolved": "https://registry.npmjs.org/libmime/-/libmime-5.3.5.tgz",
|
||||
"integrity": "sha512-nSlR1yRZ43L3cZCiWEw7ali3jY29Hz9CQQ96Oy+sSspYnIP5N54ucOPHqooBsXzwrX1pwn13VUE05q4WmzfaLg==",
|
||||
"version": "5.3.6",
|
||||
"resolved": "https://registry.npmjs.org/libmime/-/libmime-5.3.6.tgz",
|
||||
"integrity": "sha512-j9mBC7eiqi6fgBPAGvKCXJKJSIASanYF4EeA4iBzSG0HxQxmXnR3KbyWqTn4CwsKSebqCv2f5XZfAO6sKzgvwA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"encoding-japanese": "2.1.0",
|
||||
"encoding-japanese": "2.2.0",
|
||||
"iconv-lite": "0.6.3",
|
||||
"libbase64": "1.3.0",
|
||||
"libqp": "2.1.0"
|
||||
}
|
||||
},
|
||||
"node_modules/libmime/node_modules/encoding-japanese": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/encoding-japanese/-/encoding-japanese-2.1.0.tgz",
|
||||
"integrity": "sha512-58XySVxUgVlBikBTbQ8WdDxBDHIdXucB16LO5PBHR8t75D54wQrNo4cg+58+R1CtJfKnsVsvt9XlteRaR8xw1w==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=8.10.0"
|
||||
"libqp": "2.1.1"
|
||||
}
|
||||
},
|
||||
"node_modules/libmime/node_modules/iconv-lite": {
|
||||
@@ -3403,22 +3398,10 @@
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/libmime/node_modules/libbase64": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/libbase64/-/libbase64-1.3.0.tgz",
|
||||
"integrity": "sha512-GgOXd0Eo6phYgh0DJtjQ2tO8dc0IVINtZJeARPeiIJqge+HdsWSuaDTe8ztQ7j/cONByDZ3zeB325AHiv5O0dg==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/libmime/node_modules/libqp": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/libqp/-/libqp-2.1.0.tgz",
|
||||
"integrity": "sha512-O6O6/fsG5jiUVbvdgT7YX3xY3uIadR6wEZ7+vy9u7PKHAlSEB6blvC1o5pHBjgsi95Uo0aiBBdkyFecj6jtb7A==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/libqp": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/libqp/-/libqp-2.0.1.tgz",
|
||||
"integrity": "sha512-Ka0eC5LkF3IPNQHJmYBWljJsw0UvM6j+QdKRbWyCdTmYwvIDE6a7bCm0UkTAL/K+3KXK5qXT/ClcInU01OpdLg==",
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/libqp/-/libqp-2.1.1.tgz",
|
||||
"integrity": "sha512-0Wd+GPz1O134cP62YU2GTOPNA7Qgl09XwCqM5zpBv87ERCXdfDtyKXvV7c9U22yWJh44QZqBocFnXN11K96qow==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/lie": {
|
||||
@@ -3497,30 +3480,21 @@
|
||||
}
|
||||
},
|
||||
"node_modules/mailparser": {
|
||||
"version": "3.7.1",
|
||||
"resolved": "https://registry.npmjs.org/mailparser/-/mailparser-3.7.1.tgz",
|
||||
"integrity": "sha512-RCnBhy5q8XtB3mXzxcAfT1huNqN93HTYYyL6XawlIKycfxM/rXPg9tXoZ7D46+SgCS1zxKzw+BayDQSvncSTTw==",
|
||||
"version": "3.7.2",
|
||||
"resolved": "https://registry.npmjs.org/mailparser/-/mailparser-3.7.2.tgz",
|
||||
"integrity": "sha512-iI0p2TCcIodR1qGiRoDBBwboSSff50vQAWytM5JRggLfABa4hHYCf3YVujtuzV454xrOP352VsAPIzviqMTo4Q==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"encoding-japanese": "2.1.0",
|
||||
"encoding-japanese": "2.2.0",
|
||||
"he": "1.2.0",
|
||||
"html-to-text": "9.0.5",
|
||||
"iconv-lite": "0.6.3",
|
||||
"libmime": "5.3.5",
|
||||
"libmime": "5.3.6",
|
||||
"linkify-it": "5.0.0",
|
||||
"mailsplit": "5.4.0",
|
||||
"nodemailer": "6.9.13",
|
||||
"mailsplit": "5.4.2",
|
||||
"nodemailer": "6.9.16",
|
||||
"punycode.js": "2.3.1",
|
||||
"tlds": "1.252.0"
|
||||
}
|
||||
},
|
||||
"node_modules/mailparser/node_modules/encoding-japanese": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/encoding-japanese/-/encoding-japanese-2.1.0.tgz",
|
||||
"integrity": "sha512-58XySVxUgVlBikBTbQ8WdDxBDHIdXucB16LO5PBHR8t75D54wQrNo4cg+58+R1CtJfKnsVsvt9XlteRaR8xw1w==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=8.10.0"
|
||||
"tlds": "1.255.0"
|
||||
}
|
||||
},
|
||||
"node_modules/mailparser/node_modules/iconv-lite": {
|
||||
@@ -3536,38 +3510,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/mailsplit": {
|
||||
"version": "5.4.0",
|
||||
"resolved": "https://registry.npmjs.org/mailsplit/-/mailsplit-5.4.0.tgz",
|
||||
"integrity": "sha512-wnYxX5D5qymGIPYLwnp6h8n1+6P6vz/MJn5AzGjZ8pwICWssL+CCQjWBIToOVHASmATot4ktvlLo6CyLfOXWYA==",
|
||||
"version": "5.4.2",
|
||||
"resolved": "https://registry.npmjs.org/mailsplit/-/mailsplit-5.4.2.tgz",
|
||||
"integrity": "sha512-4cczG/3Iu3pyl8JgQ76dKkisurZTmxMrA4dj/e8d2jKYcFTZ7MxOzg1gTioTDMPuFXwTrVuN/gxhkrO7wLg7qA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"libbase64": "1.2.1",
|
||||
"libmime": "5.2.0",
|
||||
"libqp": "2.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/mailsplit/node_modules/iconv-lite": {
|
||||
"version": "0.6.3",
|
||||
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
|
||||
"integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"safer-buffer": ">= 2.1.2 < 3.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/mailsplit/node_modules/libmime": {
|
||||
"version": "5.2.0",
|
||||
"resolved": "https://registry.npmjs.org/libmime/-/libmime-5.2.0.tgz",
|
||||
"integrity": "sha512-X2U5Wx0YmK0rXFbk67ASMeqYIkZ6E5vY7pNWRKtnNzqjvdYYG8xtPDpCnuUEnPU9vlgNev+JoSrcaKSUaNvfsw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"encoding-japanese": "2.0.0",
|
||||
"iconv-lite": "0.6.3",
|
||||
"libbase64": "1.2.1",
|
||||
"libqp": "2.0.1"
|
||||
"libbase64": "1.3.0",
|
||||
"libmime": "5.3.6",
|
||||
"libqp": "2.1.1"
|
||||
}
|
||||
},
|
||||
"node_modules/make-error": {
|
||||
@@ -3939,9 +3889,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/nodemailer": {
|
||||
"version": "6.9.13",
|
||||
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.9.13.tgz",
|
||||
"integrity": "sha512-7o38Yogx6krdoBf3jCAqnIN4oSQFx+fMa0I7dK1D+me9kBxx12D+/33wSb+fhOCtIxvYJ+4x4IMEhmhCKfAiOA==",
|
||||
"version": "6.9.16",
|
||||
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.9.16.tgz",
|
||||
"integrity": "sha512-psAuZdTIRN08HKVd/E8ObdV6NO7NTBY3KsC30F7M4H1OnmLCUNaS56FpYxyb26zWLSyYF9Ozch9KYHhHegsiOQ==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=6.0.0"
|
||||
@@ -4210,11 +4160,10 @@
|
||||
}
|
||||
},
|
||||
"node_modules/path-to-regexp": {
|
||||
"version": "0.1.10",
|
||||
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.10.tgz",
|
||||
"integrity": "sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
"version": "0.1.12",
|
||||
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz",
|
||||
"integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/peberminta": {
|
||||
"version": "0.9.0",
|
||||
@@ -4300,14 +4249,14 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/postman-request": {
|
||||
"version": "2.88.1-postman.33",
|
||||
"resolved": "https://registry.npmjs.org/postman-request/-/postman-request-2.88.1-postman.33.tgz",
|
||||
"integrity": "sha512-uL9sCML4gPH6Z4hreDWbeinKU0p0Ke261nU7OvII95NU22HN6Dk7T/SaVPaj6T4TsQqGKIFw6/woLZnH7ugFNA==",
|
||||
"version": "2.88.1-postman.40",
|
||||
"resolved": "https://registry.npmjs.org/postman-request/-/postman-request-2.88.1-postman.40.tgz",
|
||||
"integrity": "sha512-uE4AiIqhjtHKp4pj9ei7fkdfNXEX9IqDBlK1plGAQne6y79UUlrTdtYLhwXoO0AMOvqyl9Ar+BU6Eo6P/MPgfg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@postman/form-data": "~3.1.1",
|
||||
"@postman/tough-cookie": "~4.1.3-postman.1",
|
||||
"@postman/tunnel-agent": "^0.6.3",
|
||||
"@postman/tunnel-agent": "^0.6.4",
|
||||
"aws-sign2": "~0.7.0",
|
||||
"aws4": "^1.12.0",
|
||||
"brotli": "^1.3.3",
|
||||
@@ -4329,7 +4278,7 @@
|
||||
"uuid": "^8.3.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 6"
|
||||
"node": ">= 16"
|
||||
}
|
||||
},
|
||||
"node_modules/postman-request/node_modules/qs": {
|
||||
@@ -5247,12 +5196,12 @@
|
||||
}
|
||||
},
|
||||
"node_modules/roku-deploy": {
|
||||
"version": "3.12.2",
|
||||
"resolved": "https://registry.npmjs.org/roku-deploy/-/roku-deploy-3.12.2.tgz",
|
||||
"integrity": "sha512-CePBiVk+6u4Pka/aq7WR4GnTW39BlAveEbhuDHQX2UfR9+4j3+YEvfXqxB0R69RU52eGfnk1ejI7H0HStEKa2Q==",
|
||||
"version": "3.12.3",
|
||||
"resolved": "https://registry.npmjs.org/roku-deploy/-/roku-deploy-3.12.3.tgz",
|
||||
"integrity": "sha512-4gkNW/N4VeP4hKFMNUzMS9tCXm67OdLaJIPj9kBjf81Nqn7EPHfdYLVAa9sQbRV0tSNDUUM7qk5/bSLC1G653A==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@types/request": "^2.47.0",
|
||||
"chalk": "^2.4.2",
|
||||
"dateformat": "^3.0.3",
|
||||
"dayjs": "^1.11.0",
|
||||
@@ -5265,7 +5214,7 @@
|
||||
"micromatch": "^4.0.4",
|
||||
"moment": "^2.29.1",
|
||||
"parse-ms": "^2.1.0",
|
||||
"postman-request": "^2.88.1-postman.32",
|
||||
"postman-request": "^2.88.1-postman.40",
|
||||
"temp-dir": "^2.0.0",
|
||||
"xml2js": "^0.5.0"
|
||||
},
|
||||
@@ -6003,9 +5952,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/tlds": {
|
||||
"version": "1.252.0",
|
||||
"resolved": "https://registry.npmjs.org/tlds/-/tlds-1.252.0.tgz",
|
||||
"integrity": "sha512-GA16+8HXvqtfEnw/DTcwB0UU354QE1n3+wh08oFjr6Znl7ZLAeUgYzCcK+/CCrOyE0vnHR8/pu3XXG3vDijXpQ==",
|
||||
"version": "1.255.0",
|
||||
"resolved": "https://registry.npmjs.org/tlds/-/tlds-1.255.0.tgz",
|
||||
"integrity": "sha512-tcwMRIioTcF/FcxLev8MJWxCp+GUALRhFEqbDoZrnowmKSGqPrl5pqS+Sut2m8BgJ6S4FExCSSpGffZ0Tks6Aw==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"tlds": "bin.js"
|
||||
@@ -6188,9 +6137,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/undici-types": {
|
||||
"version": "6.19.8",
|
||||
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz",
|
||||
"integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==",
|
||||
"version": "6.20.0",
|
||||
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz",
|
||||
"integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/universalify": {
|
||||
|
||||
+8
-8
@@ -1,28 +1,28 @@
|
||||
{
|
||||
"name": "playlet",
|
||||
"version": "0.32.0",
|
||||
"version": "0.33.1",
|
||||
"description": "Unofficial YouTube client for Roku",
|
||||
"devDependencies": {
|
||||
"@rokucommunity/bslint": "^0.8.26",
|
||||
"@types/crypto-js": "^4.2.2",
|
||||
"@types/fs-extra": "^11.0.4",
|
||||
"@types/node": "^22.9.3",
|
||||
"@types/node": "^22.10.2",
|
||||
"@types/xml2js": "^0.4.14",
|
||||
"argparse": "^2.0.1",
|
||||
"brighterscript": "0.68.0",
|
||||
"brighterscript": "0.68.2",
|
||||
"brighterscript-formatter": "^1.7.6",
|
||||
"convert-svg-to-png": "^0.6.4",
|
||||
"cross-fetch": "^4.0.0",
|
||||
"crypto-js": "^4.2.0",
|
||||
"dotenv": "^16.4.5",
|
||||
"express": "^4.21.1",
|
||||
"dotenv": "^16.4.7",
|
||||
"express": "^4.21.2",
|
||||
"fs-extra": "^11.2.0",
|
||||
"glob": "^11.0.0",
|
||||
"imap": "^0.8.19",
|
||||
"ip": "^2.0.1",
|
||||
"json5": "^2.2.3",
|
||||
"mailparser": "^3.7.1",
|
||||
"roku-deploy": "^3.12.2",
|
||||
"mailparser": "^3.7.2",
|
||||
"roku-deploy": "^3.12.3",
|
||||
"rooibos-roku": "5.14.0",
|
||||
"rounded-rect-9patch": "^1.0.1",
|
||||
"semver": "^7.6.3",
|
||||
@@ -64,7 +64,7 @@
|
||||
"generate-sponsorblock-config": "node tools/generate-sponsorblock-config.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",
|
||||
"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 @sveltejs/vite-plugin-svelte,svelte",
|
||||
"update-deps": "npx npm-check-updates --deep --upgrade --install always --reject @sveltejs/vite-plugin-svelte,svelte,vite,@vitejs/plugin-legacy",
|
||||
"registry:write": "node tools/registry.js --input registry.json",
|
||||
"registry:read": "node tools/registry.js --output registry.json",
|
||||
"registry:clear": "node tools/registry.js --clear"
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "playlet-app",
|
||||
"version": "0.32.0",
|
||||
"version": "0.33.1",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "playlet-app",
|
||||
"version": "0.32.0"
|
||||
"version": "0.33.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "playlet-app",
|
||||
"version": "0.32.0",
|
||||
"version": "0.33.1",
|
||||
"description": "Unofficial YouTube client for Roku",
|
||||
"scripts": {
|
||||
"prebuild": "rm -rf ../build/playlet-app",
|
||||
|
||||
@@ -2,8 +2,8 @@ title=Playlet
|
||||
|
||||
# Do not update version manually, it is auto updated from package.json
|
||||
major_version=0
|
||||
minor_version=32
|
||||
build_version=00000
|
||||
minor_version=33
|
||||
build_version=00001
|
||||
|
||||
ui_resolutions=hd
|
||||
uri_resolution_autosub=$$RES$$,480p,720p,1080p
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "playlet-lib",
|
||||
"version": "0.32.0",
|
||||
"version": "0.33.1",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "playlet-lib",
|
||||
"version": "0.32.0"
|
||||
"version": "0.33.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "playlet-lib",
|
||||
"version": "0.32.0",
|
||||
"version": "0.33.1",
|
||||
"description": "Unofficial YouTube client for Roku",
|
||||
"scripts": {
|
||||
"prebuild": "rm -rf ../build/playlet-lib",
|
||||
|
||||
@@ -35,10 +35,23 @@ function PlaylistContentTask(input as object) as object
|
||||
}
|
||||
end if
|
||||
|
||||
' TODO:P2 To remove after https://github.com/iv-org/invidious/pull/5116
|
||||
if IsString(metadata["mixId"]) and IsArray(metadata["videos"])
|
||||
videos = metadata["videos"]
|
||||
for i = 0 to videos.Count() - 1
|
||||
thumbnails = videos[i].videoThumbnails
|
||||
if thumbnails.Count() = 1 and IsArray(thumbnails[0])
|
||||
videos[i].videoThumbnails = thumbnails[0]
|
||||
end if
|
||||
end for
|
||||
end if
|
||||
|
||||
InvidiousContent.ToPlaylistContentNode(contentNode, metadata, instance)
|
||||
childCount = contentNode.getChildCount()
|
||||
|
||||
if metadata.videos.Count() = 0 or childCount >= metadata.videoCount
|
||||
videoCount = ValidInt(metadata.videoCount)
|
||||
|
||||
if metadata.videos.Count() = 0 or childCount >= videoCount
|
||||
contentNode.loadState = FeedLoadState.Loaded
|
||||
return {
|
||||
success: true
|
||||
|
||||
@@ -42,8 +42,13 @@ function OnContentSet() as void
|
||||
end if
|
||||
|
||||
m.titleLabel.text = content.title
|
||||
' NOTE: "_author" not "author". See PlaylistContentNode.xml for explanation.
|
||||
m.subtitleLabel.text = `${content._author} • ${content.videoCountText} • ${content.viewCountText}`
|
||||
' Starts with RD means a mix, not a playlist
|
||||
if content.playlistId.StartsWith("RD")
|
||||
m.subtitleLabel.text = ""
|
||||
else
|
||||
' NOTE: "_author" not "author". See PlaylistContentNode.xml for explanation.
|
||||
m.subtitleLabel.text = `${content._author} • ${content.videoCountText} • ${content.viewCountText}`
|
||||
end if
|
||||
m.updatedLabel.text = content.updatedText
|
||||
m.descriptionLabel.text = content.description
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import "pkg:/components/Services/Innertube/InnertubeService.bs"
|
||||
import "pkg:/components/Services/Invidious/InvidiousService.bs"
|
||||
import "pkg:/components/Services/SearchHistory/SearchHistoryUtils.bs"
|
||||
|
||||
@@ -7,13 +8,17 @@ function SearchSuggestionsTask(input as object) as object
|
||||
invidiousNode = input.invidious
|
||||
preferencesNode = input.preferences
|
||||
|
||||
service = new Invidious.InvidiousService(invidiousNode)
|
||||
|
||||
if m.top.cancel
|
||||
return invalid
|
||||
end if
|
||||
|
||||
searchSuggestsions = StringUtils.IsNullOrEmpty(q) ? invalid : service.SearchSuggestions(q, m.top.cancellation)
|
||||
backend = preferencesNode["playback.backend"]
|
||||
if backend = "playlet"
|
||||
searchSuggestsions = StringUtils.IsNullOrEmpty(q) ? invalid : InnertubeService.GetSearchSuggestions(q, m.top.cancellation)
|
||||
else
|
||||
service = new Invidious.InvidiousService(invidiousNode)
|
||||
searchSuggestsions = StringUtils.IsNullOrEmpty(q) ? invalid : service.SearchSuggestions(q, m.top.cancellation)
|
||||
end if
|
||||
|
||||
if m.top.cancel
|
||||
return invalid
|
||||
|
||||
@@ -2,11 +2,23 @@ import "pkg:/source/services/HttpClient.bs"
|
||||
import "pkg:/source/utils/ObjectUtils.bs"
|
||||
import "pkg:/source/utils/TimeUtils.bs"
|
||||
|
||||
const INNERTUBE_IOS_CLIENT_NAME = "5"
|
||||
const INNERTUBE_IOS_CLIENT_VERSION = "19.09.3"
|
||||
const INNERTUBE_IOS_OS_VERSION = "15.6"
|
||||
const INNERTUBE_IOS_USER_AGENT = "com.google.ios.youtube/19.09.3 (iPhone14,3; U; CPU iOS 15_6 like Mac OS X)"
|
||||
|
||||
const INNERTUBE_WEB_CLIENT_NAME = "1"
|
||||
const INNERTUBE_WEB_CLIENT_VERSION = "2.20241126.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_BROWSER_NAME = "Chrome"
|
||||
const INNERTUBE_WEB_BROWSER_VERSION = "131.0.0.0"
|
||||
|
||||
namespace InnertubeService
|
||||
|
||||
function GetVideoMetadata(videoId as string, options = invalid as object) as object
|
||||
cancellation = invalid
|
||||
fetchNext = true
|
||||
ctt = ""
|
||||
|
||||
if options <> invalid
|
||||
if options.DoesExist("cancellation")
|
||||
@@ -15,16 +27,19 @@ namespace InnertubeService
|
||||
if options.DoesExist("fetchNext")
|
||||
fetchNext = options.fetchNext
|
||||
end if
|
||||
if options.DoesExist("ctt")
|
||||
ctt = options.ctt
|
||||
end if
|
||||
end if
|
||||
|
||||
playerRequest = CreatePlayerRequest(videoId)
|
||||
playerRequest = CreatePlayerRequest(videoId, ctt)
|
||||
playerRequest.Cancellation(cancellation)
|
||||
playerRequest.Send()
|
||||
|
||||
nextRequest = invalid
|
||||
nextResponse = invalid
|
||||
if fetchNext
|
||||
nextRequest = CreateNextRequest(videoId)
|
||||
nextRequest = CreateNextRequest(videoId, ctt)
|
||||
nextRequest.Cancellation(cancellation)
|
||||
nextRequest.Send()
|
||||
end if
|
||||
@@ -56,7 +71,7 @@ namespace InnertubeService
|
||||
return playerResponse
|
||||
end function
|
||||
|
||||
function CreatePlayerRequest(videoId as string) as object
|
||||
function CreatePlayerRequest(videoId as string, ctt as string) as object
|
||||
deviceInfo = CreateObject("roDeviceInfo")
|
||||
|
||||
payload = {
|
||||
@@ -89,9 +104,9 @@ namespace InnertubeService
|
||||
"screenWidthPoints": 2560
|
||||
"visitorData": ""
|
||||
"clientName": "iOS"
|
||||
"clientVersion": "18.06.35"
|
||||
"clientVersion": INNERTUBE_IOS_CLIENT_VERSION
|
||||
"osName": "iOS"
|
||||
"osVersion": "10.0"
|
||||
"osVersion": INNERTUBE_IOS_OS_VERSION
|
||||
"platform": "MOBILE"
|
||||
"clientFormFactor": "UNKNOWN_FORM_FACTOR"
|
||||
"userInterfaceTheme": "USER_INTERFACE_THEME_LIGHT"
|
||||
@@ -101,12 +116,6 @@ namespace InnertubeService
|
||||
"deviceModel": "iPhone10,6"
|
||||
"utcOffsetMinutes": -240
|
||||
"memoryTotalKbytes": "8000000"
|
||||
"mainAppWebInfo": {
|
||||
"graftUrl": "https://www.youtube.com"
|
||||
"pwaInstallabilityStatus": "PWA_INSTALLABILITY_STATUS_UNKNOWN"
|
||||
"webDisplayMode": "WEB_DISPLAY_MODE_BROWSER"
|
||||
"isWebNativeShareAvailable": true
|
||||
}
|
||||
}
|
||||
"user": {
|
||||
"enableSafetyMode": false
|
||||
@@ -119,20 +128,27 @@ namespace InnertubeService
|
||||
}
|
||||
}
|
||||
|
||||
request = HttpClient.Post("https://www.youtube.com/youtubei/v1/player", FormatJson(payload))
|
||||
if not StringUtils.IsNullOrEmpty(ctt)
|
||||
payload["context"]["user"]["credentialTransferTokens"] = [{
|
||||
"token": ctt
|
||||
"scope": "VIDEO"
|
||||
}]
|
||||
end if
|
||||
|
||||
request = HttpClient.Post("https://www.youtube.com/youtubei/v1/player?prettyPrint=false&alt=json", FormatJson(payload))
|
||||
request.Headers({
|
||||
"accept": "*/*"
|
||||
"accept-language": "*"
|
||||
"content-type": "application/json"
|
||||
"user-agent": "com.google.ios.youtube/18.06.35 (iPhone; CPU iPhone OS 14_4 like Mac OS X; en_US)"
|
||||
"x-youtube-client-name": "5"
|
||||
"x-youtube-client-version": "18.06.35"
|
||||
"user-agent": INNERTUBE_IOS_USER_AGENT
|
||||
"x-youtube-client-name": INNERTUBE_IOS_CLIENT_NAME
|
||||
"x-youtube-client-version": INNERTUBE_IOS_CLIENT_VERSION
|
||||
})
|
||||
|
||||
return request
|
||||
end function
|
||||
|
||||
function CreateNextRequest(videoId as string) as object
|
||||
function CreateNextRequest(videoId as string, ctt as string) as object
|
||||
deviceInfo = CreateObject("roDeviceInfo")
|
||||
|
||||
payload = {
|
||||
@@ -148,7 +164,7 @@ namespace InnertubeService
|
||||
"screenWidthPoints": 2560
|
||||
"visitorData": ""
|
||||
"clientName": "WEB"
|
||||
"clientVersion": "2.20241010.09.00"
|
||||
"clientVersion": INNERTUBE_WEB_CLIENT_VERSION
|
||||
"osName": "Windows"
|
||||
"osVersion": "10.0"
|
||||
"platform": "DESKTOP"
|
||||
@@ -158,8 +174,8 @@ namespace InnertubeService
|
||||
"originalUrl": "https://www.youtube.com"
|
||||
"deviceMake": ""
|
||||
"deviceModel": ""
|
||||
"browserName": "Chrome"
|
||||
"browserVersion": "109.0.0.0"
|
||||
"browserName": INNERTUBE_WEB_BROWSER_NAME
|
||||
"browserVersion": INNERTUBE_WEB_BROWSER_VERSION
|
||||
"utcOffsetMinutes": -240
|
||||
"memoryTotalKbytes": "8000000"
|
||||
"mainAppWebInfo": {
|
||||
@@ -180,14 +196,21 @@ namespace InnertubeService
|
||||
}
|
||||
}
|
||||
|
||||
if not StringUtils.IsNullOrEmpty(ctt)
|
||||
payload["context"]["user"]["credentialTransferTokens"] = [{
|
||||
"token": ctt
|
||||
"scope": "VIDEO"
|
||||
}]
|
||||
end if
|
||||
|
||||
request = HttpClient.Post("https://www.youtube.com/youtubei/v1/next?prettyPrint=false&alt=json", FormatJson(payload))
|
||||
request.Headers({
|
||||
"accept": "*/*"
|
||||
"accept-language": "*"
|
||||
"content-type": "application/json"
|
||||
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0"
|
||||
"x-youtube-client-name": "1"
|
||||
"x-youtube-client-version": "2.20241010.09.00"
|
||||
"user-agent": INNERTUBE_WEB_USER_AGENT
|
||||
"x-youtube-client-name": INNERTUBE_WEB_CLIENT_NAME
|
||||
"x-youtube-client-version": INNERTUBE_WEB_CLIENT_VERSION
|
||||
})
|
||||
|
||||
return request
|
||||
@@ -368,17 +391,7 @@ namespace InnertubeService
|
||||
end function
|
||||
|
||||
function ParseCaptions(payload as object) as object
|
||||
captions = payload["captions"]
|
||||
if not IsAssociativeArray(captions)
|
||||
return []
|
||||
end if
|
||||
|
||||
playerCaptions = captions["playerCaptionsTracklistRenderer"]
|
||||
if not IsAssociativeArray(playerCaptions)
|
||||
return []
|
||||
end if
|
||||
|
||||
tracks = playerCaptions["captionTracks"]
|
||||
tracks = ObjectUtils.Dig(payload, ["captions", "playerCaptionsTracklistRenderer", "captionTracks"])
|
||||
if not IsArray(tracks)
|
||||
return []
|
||||
end if
|
||||
@@ -470,4 +483,44 @@ namespace InnertubeService
|
||||
return parsedResponse
|
||||
end function
|
||||
|
||||
function GetSearchSuggestions(q as string, cancellation = invalid as object) as object
|
||||
request = HttpClient.Get("https://suggestqueries.google.com/complete/search?hl=en&gl=US&ds=yt&client=youtube&xssi=t&oe=UTF&q=" + q.EncodeUriComponent())
|
||||
request.Headers({
|
||||
"user-agent": INNERTUBE_WEB_USER_AGENT
|
||||
})
|
||||
request.CacheSeconds(60 * 60 * 24)
|
||||
request.Cancellation(cancellation)
|
||||
|
||||
response = request.Await()
|
||||
if not response.IsSuccess()
|
||||
return {
|
||||
suggestions: []
|
||||
}
|
||||
end if
|
||||
|
||||
text = response.Text()
|
||||
text = text.Replace(`)]}'`, "")
|
||||
|
||||
parsed = ParseJson(text)
|
||||
if not IsArray(parsed) or parsed.Count() < 2
|
||||
return {
|
||||
suggestions: []
|
||||
}
|
||||
end if
|
||||
parsed = parsed[1]
|
||||
|
||||
suggestions = []
|
||||
for each suggestion in parsed
|
||||
s = suggestion[0]
|
||||
if not IsString(s)
|
||||
continue for
|
||||
end if
|
||||
|
||||
suggestions.Push(s)
|
||||
end for
|
||||
|
||||
return {
|
||||
suggestions: suggestions
|
||||
}
|
||||
end function
|
||||
end namespace
|
||||
@@ -12,7 +12,7 @@ import "pkg:/source/utils/TimeUtils.bs"
|
||||
namespace Invidious
|
||||
const INSTANCES_API = "https://api.invidious.io/instances.json?sort_by=type,users"
|
||||
|
||||
const DEFAULT_INSTANCE = "https://invidious.jing.rocks"
|
||||
const DEFAULT_INSTANCE = "https://invidious.nerdvpn.de"
|
||||
|
||||
const TOKEN_CALLBACK = "/invidious/token_callback"
|
||||
|
||||
|
||||
@@ -239,6 +239,11 @@ namespace InvidiousContent
|
||||
end function
|
||||
|
||||
function PlaylistSetThumbnail(node as object, nodeField as string, playlistItem as object, instance as dynamic, quality = "medium" as string) as void
|
||||
currentThumbnail = node[nodeField]
|
||||
if currentThumbnail <> "" and currentThumbnail <> "pkg:/images/thumbnail-missing.jpg"
|
||||
return
|
||||
end if
|
||||
|
||||
thumbnail = ""
|
||||
if IsString(playlistItem.playlistThumbnail)
|
||||
thumbnailUrl = playlistItem.playlistThumbnail
|
||||
|
||||
@@ -404,6 +404,17 @@ class LoungeApi
|
||||
|
||||
function HandleSetPlaylist(_commandId as integer, commandType as string, commandArgs as object, _messagesToSend as object)
|
||||
LogDebug(commandType, commandArgs)
|
||||
' TODO:P2 ctt: credentialTransferToken
|
||||
' We receive credentialTransferTokens here that can be attached to innertube requests.
|
||||
' The tokens belong to the user logged in on the mobile app.
|
||||
' These allow us to watch age restricted videos and private videos.
|
||||
' They are scoped by video.
|
||||
' Right now we just store only the last ctt, which works ok if we're casting one video at a time.
|
||||
' But if the age restrcited video is added to the queue, we don't capture a token and playing the video would fail.
|
||||
' These tokens need to be managed better, based on the video they belong to.
|
||||
if not StringUtils.IsNullOrEmpty(commandArgs.ctt)
|
||||
m.loungeServiceNode.ctt = commandArgs.ctt
|
||||
end if
|
||||
LoungeVideoQueue.SetPlaylist(m.videoQueueNode, m.invService, commandArgs)
|
||||
end function
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<field id="deviceName" type="string" />
|
||||
<field id="screenId" type="string" />
|
||||
<field id="loungeToken" type="string" />
|
||||
<field id="ctt" type="string" />
|
||||
|
||||
<field id="join" type="boolean" alwaysNotify="true" />
|
||||
<field id="outgoingMessages" type="array" alwaysNotify="true" />
|
||||
|
||||
@@ -109,6 +109,11 @@ function MigrateExistingPreferences(userPrefs as object) as boolean
|
||||
RegistryUtils.Delete(RegistryUtils.INVIDIOUS_INSTANCES)
|
||||
end if
|
||||
|
||||
if ValidInt(userPrefs.__version) = 0
|
||||
userPrefs.__version = 1
|
||||
isDirty = true
|
||||
end if
|
||||
|
||||
if userPrefs.__version = 1
|
||||
if ValidString(userPrefs["playback.preferred_quality"]) = "medium"
|
||||
userPrefs["playback.preferred_quality"] = "480p,360p"
|
||||
|
||||
@@ -10,7 +10,7 @@ function SponsorBlockTask(input as object) as object
|
||||
barPath = invalid
|
||||
|
||||
if skipSegments <> invalid
|
||||
barPath = `tmp:/sponsorblock_bar_${videoId}.png`
|
||||
barPath = `tmp:/sponsorblock_bar.png`
|
||||
service.GenerateProgressBarBackground(skipSegments, lengthSeconds, barPath)
|
||||
end if
|
||||
|
||||
|
||||
@@ -19,7 +19,12 @@ function OnContentSet() as void
|
||||
|
||||
m.top.thumbnailUri = content.thumbnail
|
||||
|
||||
SetVideoCount(content.videoCountText)
|
||||
if content.videoCount = -1
|
||||
m.top.videoCountLabelVisible = false
|
||||
else
|
||||
m.top.videoCountLabelVisible = true
|
||||
SetVideoCount(content.videoCountText)
|
||||
end if
|
||||
end function
|
||||
|
||||
function SetVideoCount(videoCountText as string) as void
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<field id="updated" type="string" alias="updatedLabel.text" />
|
||||
<field id="thumbnailUri" type="uri" alias="thumbnail.uri" />
|
||||
<field id="videoCount" type="string" alias="videoCountLabel.text" />
|
||||
<field id="videoCountLabelVisible" type="boolean" alias="videoCountLabel.visible" />
|
||||
</interface>
|
||||
<children>
|
||||
<LayoutGroup
|
||||
|
||||
@@ -6,6 +6,7 @@ function VideoContentTask(input as object) as object
|
||||
contentNode = input.content
|
||||
invidiousNode = input.invidious
|
||||
preferencesNode = input.preferences
|
||||
loungeServiceNode = input.loungeService
|
||||
playletServerPort = input.playletServerPort
|
||||
|
||||
if m.top.cancel
|
||||
@@ -20,7 +21,10 @@ function VideoContentTask(input as object) as object
|
||||
|
||||
backend = preferencesNode["playback.backend"]
|
||||
if backend = "playlet"
|
||||
response = InnertubeService.GetVideoMetadata(contentNode.videoId, { cancellation: m.top.cancellation })
|
||||
response = InnertubeService.GetVideoMetadata(contentNode.videoId, {
|
||||
cancellation: m.top.cancellation
|
||||
ctt: loungeServiceNode.ctt
|
||||
})
|
||||
else
|
||||
response = service.GetVideoMetadata(contentNode.videoId, { cancellation: m.top.cancellation })
|
||||
end if
|
||||
@@ -60,6 +64,10 @@ function VideoContentTask(input as object) as object
|
||||
end if
|
||||
|
||||
streamUrls = CreateStreamUrls(metadata, service, preferencesNode, backend, playletServerPort)
|
||||
' Forwarding query params to HLS playlists is not needed. In fact, it can cause issues
|
||||
' because the playlist is limited to 4MB, and on large playlists the query params
|
||||
' significantly increase the size of the playlist, making it cropped.
|
||||
contentNode.ForwardQueryStringParams = false
|
||||
contentNode.addFields({
|
||||
metadata: metadata
|
||||
' StreamUrls is taken
|
||||
|
||||
@@ -152,6 +152,7 @@ function StartVideoContentTask(videoContentNode as object)
|
||||
content: videoContentNode
|
||||
invidious: m.top.invidious
|
||||
preferences: m.top.preferences
|
||||
loungeService: m.top.loungeService
|
||||
playletServerPort: m.top.webServer.port
|
||||
}, OnVideoContentTaskResults)
|
||||
end function
|
||||
|
||||
@@ -24,6 +24,7 @@ namespace Http
|
||||
|
||||
hlsRequest = HttpClient.Get(url)
|
||||
headers = request.headers
|
||||
' Host is probably 127.0.0.1 so we should remove it before hitting the server
|
||||
headers.Delete("Host")
|
||||
hlsRequest.Headers(headers)
|
||||
|
||||
@@ -37,11 +38,16 @@ namespace Http
|
||||
|
||||
qualityFilter = m.CreateQualityFilter(quality)
|
||||
hlsManifest = m.FilterHlsManifest(hlsManifest, qualityFilter)
|
||||
' For some reason, player hangs on HDR videos...
|
||||
hlsManifest = m.ReplaceVideoRange(hlsManifest)
|
||||
|
||||
hlsManifest = m.AppendStoryboardPlaylists(hlsManifest)
|
||||
|
||||
response.http_code = hlsResponse.StatusCode()
|
||||
response.headers = hlsResponse.Headers()
|
||||
headers = hlsResponse.Headers()
|
||||
' We responding with uncompressed data
|
||||
headers.Delete("Content-Encoding")
|
||||
response.headers = headers
|
||||
response.SetBodyDataString(ValidString(hlsManifest))
|
||||
|
||||
return true
|
||||
@@ -172,6 +178,14 @@ namespace Http
|
||||
return newLines.join(`\n`)
|
||||
end function
|
||||
|
||||
function ReplaceVideoRange(hlsManifest as dynamic) as dynamic
|
||||
if StringUtils.IsNullOrEmpty(hlsManifest)
|
||||
return hlsManifest
|
||||
end if
|
||||
|
||||
return hlsManifest.Replace("VIDEO-RANGE=HLG", "VIDEO-RANGE=SDR").Replace("VIDEO-RANGE=PQ", "VIDEO-RANGE=SDR")
|
||||
end function
|
||||
|
||||
function GenerateStoryboardManifest(storyboard as object, lengthSeconds as float) as string
|
||||
tileCount = storyboard.storyboardWidth * storyboard.storyboardHeight
|
||||
intervalSeconds = Cdbl(storyboard.interval) / 1000.0
|
||||
|
||||
@@ -59,7 +59,7 @@ function SetupRoutes(server as object)
|
||||
server.UseRouter(new Http.RegistryRouter(server))
|
||||
|
||||
etags = new Http.EtagUtils()
|
||||
server.UseRouter(new Http.HttpStaticFilesRouter("/", "libpkg:/www", etags, { staticFiles: true }))
|
||||
server.UseRouter(new Http.HttpStaticFilesRouter("/", "libpkg:/www", etags, { staticFiles: true, staticCompressed: true }))
|
||||
server.UseRouter(new Http.HttpStaticFilesRouter("/config", "libpkg:/config", etags, { staticFiles: true }))
|
||||
server.UseRouter(new Http.HttpStaticFilesRouter("/locale", "libpkg:/locale", etags, { staticFiles: true }))
|
||||
server.UseRouter(new Http.HttpStaticFilesRouter("/logs", "cachefs:/logs", etags, { fsCheck: true }))
|
||||
|
||||
@@ -11,6 +11,7 @@ namespace Http
|
||||
private showHidden
|
||||
private fsCheck
|
||||
private staticFiles
|
||||
private staticCompressed
|
||||
|
||||
function new(route as string, root as string, etags as object, options = {} as object)
|
||||
super()
|
||||
@@ -30,6 +31,8 @@ namespace Http
|
||||
m.fsCheck = ValidBool(options.fsCheck)
|
||||
' staticFiles: if true, Etag tags will be cached to skip reading the file entirely.
|
||||
m.staticFiles = ValidBool(options.staticFiles)
|
||||
' staticCompressed: the files are .gz and already compressed.
|
||||
m.staticCompressed = m.staticFiles and ValidBool(options.staticCompressed)
|
||||
end function
|
||||
|
||||
@get("*")
|
||||
@@ -47,6 +50,10 @@ namespace Http
|
||||
decoded_path = path_in_route.DecodeUri()
|
||||
full_path = StringUtils.PathJoin(m.root, decoded_path)
|
||||
|
||||
if m.staticCompressed
|
||||
full_path += ".gz"
|
||||
end if
|
||||
|
||||
if m.staticFiles
|
||||
' Although we have an Etag middleware, having a check here allows us to
|
||||
' skip reading the file entirely if the Etag matches.
|
||||
@@ -69,6 +76,10 @@ namespace Http
|
||||
if m.staticFiles
|
||||
m.etags.AddEtagFromBody(request, response, full_path)
|
||||
end if
|
||||
|
||||
if m.staticCompressed
|
||||
response.headers["Content-Encoding"] = "gzip"
|
||||
end if
|
||||
return true
|
||||
end if
|
||||
end if
|
||||
@@ -110,6 +121,9 @@ namespace Http
|
||||
if m.staticFiles
|
||||
m.etags.AddEtagFromBody(request, response, full_path)
|
||||
end if
|
||||
if m.staticCompressed
|
||||
response.headers["Content-Encoding"] = "gzip"
|
||||
end if
|
||||
return true
|
||||
else
|
||||
response.Default(403, "Not a regular file.")
|
||||
|
||||
@@ -2,8 +2,8 @@ title=PlayletLib
|
||||
|
||||
# Do not update version manually, it is auto updated from package.json
|
||||
major_version=0
|
||||
minor_version=32
|
||||
build_version=00000
|
||||
minor_version=33
|
||||
build_version=00001
|
||||
|
||||
ui_resolutions=hd
|
||||
uri_resolution_autosub=$$RES$$,480p,720p,1080p
|
||||
|
||||
@@ -281,12 +281,14 @@ namespace HttpClient
|
||||
function ToCurlCommand() as string
|
||||
command = `curl "${m.BuildUrl()}"`
|
||||
if m._method = "HEAD"
|
||||
command += ` \\\n -I`
|
||||
command += ` \\\n --head`
|
||||
else if m._method <> "GET"
|
||||
command += ` \\\n -X ${m._method}`
|
||||
command += ` \\\n --request ${m._method}`
|
||||
end if
|
||||
|
||||
command += ` \\\n --max-time ${m._timeoutSeconds}`
|
||||
command += ` \\\n --location`
|
||||
command += ` \\\n --show-error`
|
||||
|
||||
if COMPRESSION_ENABLED
|
||||
command += ` \\\n --compressed`
|
||||
|
||||
Generated
+153
-49
@@ -1,14 +1,14 @@
|
||||
{
|
||||
"name": "playlet-web",
|
||||
"version": "0.32.0",
|
||||
"version": "0.33.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "playlet-web",
|
||||
"version": "0.32.0",
|
||||
"version": "0.33.1",
|
||||
"dependencies": {
|
||||
"youtubei.js": "^11.0.1"
|
||||
"youtubei.js": "^12.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/vite-plugin-svelte": "3.1.2",
|
||||
@@ -16,19 +16,20 @@
|
||||
"@tsconfig/svelte": "^5.0.4",
|
||||
"@vitejs/plugin-legacy": "^5.4.3",
|
||||
"autoprefixer": "^10.4.20",
|
||||
"daisyui": "^4.12.14",
|
||||
"dotenv": "^16.4.5",
|
||||
"daisyui": "^4.12.22",
|
||||
"dotenv": "^16.4.7",
|
||||
"ip": "^2.0.1",
|
||||
"postcss": "^8.4.49",
|
||||
"svelte": "4.2.19",
|
||||
"svelte-check": "^4.1.0",
|
||||
"svelte-check": "^4.1.1",
|
||||
"svelte-preprocess": "^6.0.3",
|
||||
"tailwindcss": "^3.4.15",
|
||||
"terser": "^5.36.0",
|
||||
"tailwindcss": "^3.4.16",
|
||||
"terser": "^5.37.0",
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^5.7.2",
|
||||
"vite": "^5.4.11",
|
||||
"vite-tsconfig-paths": "^5.1.3"
|
||||
"vite-plugin-compression": "^0.5.1",
|
||||
"vite-tsconfig-paths": "^5.1.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@alloc/quick-lru": {
|
||||
@@ -2592,6 +2593,37 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"node_modules/chalk": {
|
||||
"version": "4.1.2",
|
||||
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
|
||||
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"ansi-styles": "^4.1.0",
|
||||
"supports-color": "^7.1.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/chalk/chalk?sponsor=1"
|
||||
}
|
||||
},
|
||||
"node_modules/chalk/node_modules/ansi-styles": {
|
||||
"version": "4.3.0",
|
||||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
||||
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"color-convert": "^2.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
||||
}
|
||||
},
|
||||
"node_modules/chokidar": {
|
||||
"version": "3.6.0",
|
||||
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
|
||||
@@ -2745,10 +2777,11 @@
|
||||
}
|
||||
},
|
||||
"node_modules/daisyui": {
|
||||
"version": "4.12.14",
|
||||
"resolved": "https://registry.npmjs.org/daisyui/-/daisyui-4.12.14.tgz",
|
||||
"integrity": "sha512-hA27cdBasdwd4/iEjn+aidoCrRroDuo3G5W9NDKaVCJI437Mm/3eSL/2u7MkZ0pt8a+TrYF3aT2pFVemTS3how==",
|
||||
"version": "4.12.22",
|
||||
"resolved": "https://registry.npmjs.org/daisyui/-/daisyui-4.12.22.tgz",
|
||||
"integrity": "sha512-HDLWbmTnXxhE1MrMgSWjVgdRt+bVYHvfNbW3GTsyIokRSqTHonUTrxV3RhpPDjGIWaHt+ELtDCTYCtUFgL2/Nw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"css-selector-tokenizer": "^0.8",
|
||||
"culori": "^3",
|
||||
@@ -2811,9 +2844,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/dotenv": {
|
||||
"version": "16.4.5",
|
||||
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz",
|
||||
"integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==",
|
||||
"version": "16.4.7",
|
||||
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz",
|
||||
"integrity": "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
@@ -2977,6 +3010,20 @@
|
||||
"url": "https://github.com/sponsors/rawify"
|
||||
}
|
||||
},
|
||||
"node_modules/fs-extra": {
|
||||
"version": "10.1.0",
|
||||
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",
|
||||
"integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"graceful-fs": "^4.2.0",
|
||||
"jsonfile": "^6.0.1",
|
||||
"universalify": "^2.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/fsevents": {
|
||||
"version": "2.3.3",
|
||||
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
|
||||
@@ -3056,6 +3103,21 @@
|
||||
"integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/graceful-fs": {
|
||||
"version": "4.2.11",
|
||||
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
|
||||
"integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/has-flag": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
|
||||
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/hasown": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz",
|
||||
@@ -3168,12 +3230,13 @@
|
||||
}
|
||||
},
|
||||
"node_modules/jintr": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/jintr/-/jintr-3.0.2.tgz",
|
||||
"integrity": "sha512-5g2EBudeJFOopjAX4exAv5OCCW1DgUISfoioCsm1h9Q9HJ41LmnZ6J52PCsqBlQihsmp0VDuxreAVzM7yk5nFA==",
|
||||
"version": "3.2.0",
|
||||
"resolved": "https://registry.npmjs.org/jintr/-/jintr-3.2.0.tgz",
|
||||
"integrity": "sha512-psD1yf05kMKDNsUdW1l5YhO59pHScQ6OIHHb8W5SKSM2dCOFPsqolmIuSHgVA8+3Dc47NJR181CXZ4alCAPTkA==",
|
||||
"funding": [
|
||||
"https://github.com/sponsors/LuanRT"
|
||||
],
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"acorn": "^8.8.0"
|
||||
}
|
||||
@@ -3217,6 +3280,18 @@
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/jsonfile": {
|
||||
"version": "6.1.0",
|
||||
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",
|
||||
"integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"universalify": "^2.0.0"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"graceful-fs": "^4.1.6"
|
||||
}
|
||||
},
|
||||
"node_modules/kleur": {
|
||||
"version": "4.1.5",
|
||||
"resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz",
|
||||
@@ -3227,12 +3302,15 @@
|
||||
}
|
||||
},
|
||||
"node_modules/lilconfig": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz",
|
||||
"integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==",
|
||||
"version": "3.1.3",
|
||||
"resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz",
|
||||
"integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
"node": ">=14"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/antonk52"
|
||||
}
|
||||
},
|
||||
"node_modules/lines-and-columns": {
|
||||
@@ -3629,15 +3707,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/postcss-load-config/node_modules/lilconfig": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.0.0.tgz",
|
||||
"integrity": "sha512-K2U4W2Ff5ibV7j7ydLr+zLAkIg5JJ4lPn1Ltsdt+Tz/IjQ8buJ55pZAxoP34lqIiwtF9iAvtLv3JGv7CAyAg+g==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
}
|
||||
},
|
||||
"node_modules/postcss-nested": {
|
||||
"version": "6.2.0",
|
||||
"resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz",
|
||||
@@ -4091,6 +4160,18 @@
|
||||
"node": ">=16 || 14 >=14.17"
|
||||
}
|
||||
},
|
||||
"node_modules/supports-color": {
|
||||
"version": "7.2.0",
|
||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
||||
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"has-flag": "^4.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/supports-preserve-symlinks-flag": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
|
||||
@@ -4130,9 +4211,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/svelte-check": {
|
||||
"version": "4.1.0",
|
||||
"resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-4.1.0.tgz",
|
||||
"integrity": "sha512-AflEZYqI578KuDZcpcorPSf597LStxlkN7XqXi38u09zlHODVKd7c+7OuubGzbhgGRUqNTdQCZ+Ga96iRXEf2g==",
|
||||
"version": "4.1.1",
|
||||
"resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-4.1.1.tgz",
|
||||
"integrity": "sha512-NfaX+6Qtc8W/CyVGS/F7/XdiSSyXz+WGYA9ZWV3z8tso14V2vzjfXviKaTFEzB7g8TqfgO2FOzP6XT4ApSTUTw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@jridgewell/trace-mapping": "^0.3.25",
|
||||
@@ -4287,9 +4368,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/tailwindcss": {
|
||||
"version": "3.4.15",
|
||||
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.15.tgz",
|
||||
"integrity": "sha512-r4MeXnfBmSOuKUWmXe6h2CcyfzJCEk4F0pptO5jlnYSIViUkVmsawj80N5h2lO3gwcmSb4n3PuN+e+GC1Guylw==",
|
||||
"version": "3.4.16",
|
||||
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.16.tgz",
|
||||
"integrity": "sha512-TI4Cyx7gDiZ6r44ewaJmt0o6BrMCT5aK5e0rmJ/G9Xq3w7CX/5VXl/zIPEJZFUK5VEqwByyhqNPycPlvcK4ZNw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@alloc/quick-lru": "^5.2.0",
|
||||
@@ -4301,7 +4382,7 @@
|
||||
"glob-parent": "^6.0.2",
|
||||
"is-glob": "^4.0.3",
|
||||
"jiti": "^1.21.6",
|
||||
"lilconfig": "^2.1.0",
|
||||
"lilconfig": "^3.1.3",
|
||||
"micromatch": "^4.0.8",
|
||||
"normalize-path": "^3.0.0",
|
||||
"object-hash": "^3.0.0",
|
||||
@@ -4349,11 +4430,10 @@
|
||||
}
|
||||
},
|
||||
"node_modules/terser": {
|
||||
"version": "5.36.0",
|
||||
"resolved": "https://registry.npmjs.org/terser/-/terser-5.36.0.tgz",
|
||||
"integrity": "sha512-IYV9eNMuFAV4THUspIRXkLakHnV6XO7FEdtKjf/mDyrnqUg9LnlOn6/RwRvM9SZjR4GUq8Nk8zj67FzVARr74w==",
|
||||
"version": "5.37.0",
|
||||
"resolved": "https://registry.npmjs.org/terser/-/terser-5.37.0.tgz",
|
||||
"integrity": "sha512-B8wRRkmre4ERucLM/uXx4MOV5cbnOlVAqUst+1+iLKPI0dOgFO28f84ptoQt9HEI537PMzfYa/d+GEPKTRXmYA==",
|
||||
"dev": true,
|
||||
"license": "BSD-2-Clause",
|
||||
"dependencies": {
|
||||
"@jridgewell/source-map": "^0.3.3",
|
||||
"acorn": "^8.8.2",
|
||||
@@ -4501,6 +4581,15 @@
|
||||
"node": ">=4"
|
||||
}
|
||||
},
|
||||
"node_modules/universalify": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",
|
||||
"integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">= 10.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/update-browserslist-db": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.1.tgz",
|
||||
@@ -4596,10 +4685,24 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/vite-plugin-compression": {
|
||||
"version": "0.5.1",
|
||||
"resolved": "https://registry.npmjs.org/vite-plugin-compression/-/vite-plugin-compression-0.5.1.tgz",
|
||||
"integrity": "sha512-5QJKBDc+gNYVqL/skgFAP81Yuzo9R+EAf19d+EtsMF/i8kFUpNi3J/H01QD3Oo8zBQn+NzoCIFkpPLynoOzaJg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"chalk": "^4.1.2",
|
||||
"debug": "^4.3.3",
|
||||
"fs-extra": "^10.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vite": ">=2.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/vite-tsconfig-paths": {
|
||||
"version": "5.1.3",
|
||||
"resolved": "https://registry.npmjs.org/vite-tsconfig-paths/-/vite-tsconfig-paths-5.1.3.tgz",
|
||||
"integrity": "sha512-0bz+PDlLpGfP2CigeSKL9NFTF1KtXkeHGZSSaGQSuPZH77GhoiQaA8IjYgOaynSuwlDTolSUEU0ErVvju3NURg==",
|
||||
"version": "5.1.4",
|
||||
"resolved": "https://registry.npmjs.org/vite-tsconfig-paths/-/vite-tsconfig-paths-5.1.4.tgz",
|
||||
"integrity": "sha512-cYj0LRuLV2c2sMqhqhGpaO3LretdtMn/BVX4cPLanIZuwwrkVl+lK84E/miEXkCHWXuq65rhNN4rXsBcOB3S4w==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"debug": "^4.1.1",
|
||||
@@ -4751,15 +4854,16 @@
|
||||
}
|
||||
},
|
||||
"node_modules/youtubei.js": {
|
||||
"version": "11.0.1",
|
||||
"resolved": "https://registry.npmjs.org/youtubei.js/-/youtubei.js-11.0.1.tgz",
|
||||
"integrity": "sha512-ZsbOd+5XF2Ofi3FrLMfYd+f9g9H8xswlouFhjhOqbwT68dMJtX6CRGsHNj5VTFCR/+L/865x1lnUlllB2dDDTA==",
|
||||
"version": "12.2.0",
|
||||
"resolved": "https://registry.npmjs.org/youtubei.js/-/youtubei.js-12.2.0.tgz",
|
||||
"integrity": "sha512-G+50qrbJCToMYhu8jbaHiS3Vf+RRul+CcDbz3hEGwHkGPh+zLiWwD6SS+YhYF+2/op4ZU5zDYQJrGqJ+wKh7Gw==",
|
||||
"funding": [
|
||||
"https://github.com/sponsors/LuanRT"
|
||||
],
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@bufbuild/protobuf": "^2.0.0",
|
||||
"jintr": "^3.0.2",
|
||||
"jintr": "^3.2.0",
|
||||
"tslib": "^2.5.0",
|
||||
"undici": "^5.19.1"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "playlet-web",
|
||||
"version": "0.32.0",
|
||||
"version": "0.33.1",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
@@ -14,21 +14,22 @@
|
||||
"@tsconfig/svelte": "^5.0.4",
|
||||
"@vitejs/plugin-legacy": "^5.4.3",
|
||||
"autoprefixer": "^10.4.20",
|
||||
"daisyui": "^4.12.14",
|
||||
"dotenv": "^16.4.5",
|
||||
"daisyui": "^4.12.22",
|
||||
"dotenv": "^16.4.7",
|
||||
"ip": "^2.0.1",
|
||||
"postcss": "^8.4.49",
|
||||
"svelte": "4.2.19",
|
||||
"svelte-check": "^4.1.0",
|
||||
"svelte-check": "^4.1.1",
|
||||
"svelte-preprocess": "^6.0.3",
|
||||
"tailwindcss": "^3.4.15",
|
||||
"terser": "^5.36.0",
|
||||
"tailwindcss": "^3.4.16",
|
||||
"terser": "^5.37.0",
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^5.7.2",
|
||||
"vite": "^5.4.11",
|
||||
"vite-tsconfig-paths": "^5.1.3"
|
||||
"vite-plugin-compression": "^0.5.1",
|
||||
"vite-tsconfig-paths": "^5.1.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"youtubei.js": "^11.0.1"
|
||||
"youtubei.js": "^12.2.0"
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 15 KiB |
Binary file not shown.
@@ -100,6 +100,19 @@
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function showRemoteNotWorkingDialog() {
|
||||
// show dialog with instructions
|
||||
let content = `If the remote control is not working, please check your device settings. Go to:
|
||||
- Settings
|
||||
- System
|
||||
- Advanced System Settings
|
||||
- Control by mobile apps
|
||||
- Network access
|
||||
And set it to "Enabled".`;
|
||||
|
||||
alert(content);
|
||||
}
|
||||
</script>
|
||||
|
||||
<div bind:this={screen} tabindex="-1" class={visibility ? "" : "hidden"}>
|
||||
@@ -144,5 +157,9 @@
|
||||
<RemoteButton key={BUTTONS.volumeDown} icon={VolumeDownIcon} small />
|
||||
<RemoteButton key={BUTTONS.volumeUp} icon={VolumeUpIcon} small />
|
||||
</div>
|
||||
<button
|
||||
on:click={showRemoteNotWorkingDialog}
|
||||
class="btn btn-xs btn-accent m-4">Remote not working?</button
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,5 +1,6 @@
|
||||
import { defineConfig, UserConfig } from 'vite'
|
||||
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
||||
import viteCompression from 'vite-plugin-compression';
|
||||
import tsconfigPaths from 'vite-tsconfig-paths'
|
||||
import ip from 'ip';
|
||||
import { existsSync, readFileSync } from 'fs'
|
||||
@@ -15,6 +16,9 @@ const config: UserConfig = {
|
||||
svelte(),
|
||||
legacy({
|
||||
targets: ['defaults', 'not IE 11'],
|
||||
}),
|
||||
viteCompression({
|
||||
deleteOriginFile: true
|
||||
})
|
||||
],
|
||||
build: {
|
||||
|
||||
@@ -15,6 +15,7 @@ type Validation = {
|
||||
regex: string;
|
||||
regexFlags?: string;
|
||||
message: string;
|
||||
regexObject: RegExp | undefined;
|
||||
}
|
||||
|
||||
export class ValidationPlugin implements CompilerPlugin {
|
||||
@@ -25,6 +26,11 @@ export class ValidationPlugin implements CompilerPlugin {
|
||||
beforeProgramValidate(program: Program) {
|
||||
// @ts-ignore
|
||||
this.validation = program.options.validation as Validation[] | undefined;
|
||||
if (this.validation) {
|
||||
this.validation.forEach((validation) => {
|
||||
validation.regexObject = new RegExp(validation.regex, validation.regexFlags);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
onFileValidate(event: OnFileValidateEvent<BscFile>) {
|
||||
@@ -34,14 +40,27 @@ export class ValidationPlugin implements CompilerPlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
let fileContentsLines: string[] | undefined = undefined;
|
||||
|
||||
this.validation.forEach((validation) => {
|
||||
const regex = new RegExp(validation.regex, validation.regexFlags);
|
||||
const regex = validation.regexObject;
|
||||
const fileContents = file.fileContents;
|
||||
|
||||
let match: RegExpExecArray | null;
|
||||
while ((match = regex.exec(fileContents)) !== null) {
|
||||
if (!fileContentsLines) {
|
||||
fileContentsLines = fileContents.split('\n');
|
||||
}
|
||||
|
||||
const line = fileContents.substring(0, match.index).split('\n').length - 1;
|
||||
const column = match.index - fileContents.lastIndexOf('\n', match.index) - 1;
|
||||
|
||||
const lineContent = fileContentsLines[line];
|
||||
// Skip if the line is a comment
|
||||
if (lineContent.trim().startsWith("'")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
file.diagnostics.push({
|
||||
code: validation.code,
|
||||
message: validation.message,
|
||||
|
||||
Reference in new issue
Block a user