Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b29678ff15 | ||
|
|
34adf51ebb | ||
|
|
b657664546 | ||
|
|
92789b0566 | ||
|
|
0bed5598f4 | ||
|
|
5a2e8b1f4a | ||
|
|
4c90ce5953 | ||
|
|
31db879961 | ||
|
|
f5ceac4e09 | ||
|
|
694cb78947 | ||
|
|
72bf86f376 | ||
|
|
e204a027fe | ||
|
|
1797486279 | ||
|
|
3a0ab2fc48 | ||
|
|
5c66b91fe9 | ||
|
|
54a99935c7 | ||
|
|
f16681adeb | ||
|
|
638ce18aa8 | ||
|
|
9119438dc9 | ||
|
|
2b58c865e4 | ||
|
|
e356c82f0d | ||
|
|
7518831b65 | ||
|
|
f29f0b3654 | ||
|
|
b7c2bfc403 |
No files matched your search
@@ -8,3 +8,4 @@ node_modules
|
|||||||
playlet-lib/src/www
|
playlet-lib/src/www
|
||||||
playlet-app/src/lib/playlet-lib.zip
|
playlet-app/src/lib/playlet-lib.zip
|
||||||
release/
|
release/
|
||||||
|
playlet-web/stats.html
|
||||||
@@ -5,6 +5,47 @@ 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.41.1] - 2025-08-29
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Reduce event count
|
||||||
|
|
||||||
|
## [0.41.0] - 2025-08-29
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Telemetry to collect anonymous diagnostics data. Can be turned off from the settings.
|
||||||
|
|
||||||
|
## [0.40.15] - 2025-08-28
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Shorts being merged with subscription videos, regardless of "Disable Shorts" preference.
|
||||||
|
- Gracefully handle STS_MISMATCH errors
|
||||||
|
|
||||||
|
## [0.40.14] - 2025-08-22
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Error loading feed when device language is Australian English (`en_AU`)
|
||||||
|
|
||||||
|
## [0.40.13] - 2025-08-19
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- A bug with playback when backend is set to "Invidious" but not instance is specified
|
||||||
|
|
||||||
|
## [0.40.12] - 2025-08-18
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Attempt to fix `no valid bitrates` and `Sign in to confirm you're not a bot` errors.
|
||||||
|
- Introduced a "Playlet support server" to allow handling sig/nsig decoding. These are not possible to do without a Javascript execution environment, so this was necessary.
|
||||||
|
- Live videos are not affected by this fix yet, but hopefully it reduce the amount of errors.
|
||||||
|
- Videos longer than 5 hours now work [https://github.com/iBicha/playlet/issues/500](https://github.com/iBicha/playlet/issues/500)
|
||||||
|
- Age restricted videos should play normally if logged in using a YouTube account.
|
||||||
|
|
||||||
## [0.40.10] - 2025-07-19
|
## [0.40.10] - 2025-07-19
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
+4
-3
@@ -2,11 +2,12 @@
|
|||||||
|
|
||||||
## Playlet
|
## Playlet
|
||||||
|
|
||||||
Playlet, the Roku app, does not collect any user information whatsoever.
|
Playlet, the Roku app, does not collect any user personal information whatsoever.
|
||||||
In fact, it does not have any servers capable of collecting any form of data.
|
|
||||||
|
|
||||||
Playlet does not show advertising, whether personalized or non personalized.
|
Playlet does not show advertising, whether personalized or non personalized.
|
||||||
|
|
||||||
|
Playlet may integrate with 3rd party telemetry services in order to capture anonymous diagnostics data. The only purpose of this data is to diagnose issues and improve the app.
|
||||||
|
|
||||||
## Invidious
|
## Invidious
|
||||||
|
|
||||||
Playlet may request information from one or more [Invidious](https://invidious.io/)
|
Playlet may request information from one or more [Invidious](https://invidious.io/)
|
||||||
@@ -16,7 +17,7 @@ is sent, which is used to enable the viewing of content.
|
|||||||
|
|
||||||
Please note that some of the [Invidious](https://invidious.io/) servers used
|
Please note that some of the [Invidious](https://invidious.io/) servers used
|
||||||
could be public instances hosted by volenteers. These instances are available
|
could be public instances hosted by volenteers. These instances are available
|
||||||
[here](https://api.invidious.io/).
|
at [api.invidious.io](https://api.invidious.io/).
|
||||||
|
|
||||||
While invidious does no data collection by default, and it is in fact built to
|
While invidious does no data collection by default, and it is in fact built to
|
||||||
be privacy driven, but in theory, from a Playlet request it is possible to
|
be privacy driven, but in theory, from a Playlet request it is possible to
|
||||||
|
|||||||
Generated
+69
-69
@@ -1,49 +1,49 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.40.10",
|
"version": "0.41.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.40.10",
|
"version": "0.41.1",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rokucommunity/bslint": "^0.8.33",
|
"@rokucommunity/bslint": "^0.8.34",
|
||||||
"@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": "^24.0.14",
|
"@types/node": "^24.3.0",
|
||||||
"@types/xml2js": "^0.4.14",
|
"@types/xml2js": "^0.4.14",
|
||||||
"argparse": "^2.0.1",
|
"argparse": "^2.0.1",
|
||||||
"brighterscript": "0.68.5",
|
"brighterscript": "0.68.5",
|
||||||
"brighterscript-formatter": "^1.7.16",
|
"brighterscript-formatter": "^1.7.17",
|
||||||
"convert-svg-to-png": "^0.7.1",
|
"convert-svg-to-png": "^0.7.1",
|
||||||
"crypto-js": "^4.2.0",
|
"crypto-js": "^4.2.0",
|
||||||
"dotenv": "^17.2.0",
|
"dotenv": "^17.2.1",
|
||||||
"fs-extra": "^11.3.0",
|
"fs-extra": "^11.3.1",
|
||||||
"glob": "^11.0.3",
|
"glob": "^11.0.3",
|
||||||
"imap": "^0.8.19",
|
"imap": "^0.8.19",
|
||||||
"ip": "^2.0.1",
|
"ip": "^2.0.1",
|
||||||
"json5": "^2.2.3",
|
"json5": "^2.2.3",
|
||||||
"mailparser": "^3.7.4",
|
"mailparser": "^3.7.4",
|
||||||
"protocol-buffers-schema": "^3.6.0",
|
"protocol-buffers-schema": "^3.6.0",
|
||||||
"puppeteer": "^24.14.0",
|
"puppeteer": "^24.17.0",
|
||||||
"roku-deploy": "^3.12.6",
|
"roku-deploy": "^3.13.0",
|
||||||
"roku-test-automation": "^2.0.13",
|
"roku-test-automation": "^2.0.13",
|
||||||
"rooibos-roku": "5.15.7",
|
"rooibos-roku": "5.15.7",
|
||||||
"rounded-rect-9patch": "^1.1.2",
|
"rounded-rect-9patch": "^1.1.2",
|
||||||
"semver": "^7.7.2",
|
"semver": "^7.7.2",
|
||||||
"shelljs": "^0.10.0",
|
"shelljs": "^0.10.0",
|
||||||
"ts-node": "^10.9.2",
|
"ts-node": "^10.9.2",
|
||||||
"typescript": "5.8.3",
|
"typescript": "5.9.2",
|
||||||
"xml2js": "^0.6.2",
|
"xml2js": "^0.6.2",
|
||||||
"yaml": "^2.8.0"
|
"yaml": "^2.8.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "22"
|
"node": "22"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@rollup/rollup-linux-x64-gnu": "^4.45.1"
|
"@rollup/rollup-linux-x64-gnu": "^4.47.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/code-frame": {
|
"node_modules/@babel/code-frame": {
|
||||||
@@ -414,9 +414,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@rokucommunity/bslint": {
|
"node_modules/@rokucommunity/bslint": {
|
||||||
"version": "0.8.33",
|
"version": "0.8.34",
|
||||||
"resolved": "https://registry.npmjs.org/@rokucommunity/bslint/-/bslint-0.8.33.tgz",
|
"resolved": "https://registry.npmjs.org/@rokucommunity/bslint/-/bslint-0.8.34.tgz",
|
||||||
"integrity": "sha512-FlEfpR3jLa99uz69+JEPJNbnAejI+sL62fyWKoKeuhki/a6vVBavTV0alGPavmGkw3EOTQdM6pSntsN349srkg==",
|
"integrity": "sha512-JksRFUqMthbZPxXLaAPZHxon6+oYg5+VRg831dNQGvv3fkjCH0lv14sNwV6gE0rApDyHtfFltOFvSDmG2AQCvg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -573,9 +573,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-x64-gnu": {
|
"node_modules/@rollup/rollup-linux-x64-gnu": {
|
||||||
"version": "4.45.1",
|
"version": "4.47.1",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.45.1.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.47.1.tgz",
|
||||||
"integrity": "sha512-+E/lYl6qu1zqgPEnTrs4WysQtvc/Sh4fC2nByfFExqgYrqkKWp1tWIbe+ELhixnenSpBbLXNi6vbEEJ8M7fiHw==",
|
"integrity": "sha512-uTLEakjxOTElfeZIGWkC34u2auLHB1AYS6wBjPGI00bWdxdLcCzK5awjs25YXpqB9lS8S0vbO0t9ZcBeNibA7g==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -736,13 +736,13 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "24.0.14",
|
"version": "24.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.14.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.3.0.tgz",
|
||||||
"integrity": "sha512-4zXMWD91vBLGRtHK3YbIoFMia+1nqEz72coM42C5ETjnNCa/heoj7NT1G67iAfOqMmcfhuCZ4uNpyz8EjlAejw==",
|
"integrity": "sha512-aPTXCrfwnDLj4VvXrm+UUCQjNEvJgNA8s5F1cvwQU+3KNltTOkBm1j30uNLyqqPNe7gE3KFzImYoZEfLhp4Yow==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"undici-types": "~7.8.0"
|
"undici-types": "~7.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@types/qs": {
|
"node_modules/@types/qs": {
|
||||||
@@ -1323,13 +1323,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/brighterscript-formatter": {
|
"node_modules/brighterscript-formatter": {
|
||||||
"version": "1.7.16",
|
"version": "1.7.17",
|
||||||
"resolved": "https://registry.npmjs.org/brighterscript-formatter/-/brighterscript-formatter-1.7.16.tgz",
|
"resolved": "https://registry.npmjs.org/brighterscript-formatter/-/brighterscript-formatter-1.7.17.tgz",
|
||||||
"integrity": "sha512-wDQicXbPos1M0v1J5YukQJTZNog/+/sOqJe9MP7CQoiS7MacnzvliFeiegSqxMdAzx7SA+UFD64plCaPrd7Qyg==",
|
"integrity": "sha512-PsrVbfw3rm8QDhC/ghuU3tFNGMJ2tHGouJ8cIaFrS3gtp+D6UltCz49CqgaOn6u1v2GXwYOfixqxVaDx/osboQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"brighterscript": "^0.69.11",
|
"brighterscript": "^0.69.13",
|
||||||
"glob-all": "^3.3.0",
|
"glob-all": "^3.3.0",
|
||||||
"jsonc-parser": "^3.0.0",
|
"jsonc-parser": "^3.0.0",
|
||||||
"source-map": "^0.7.3",
|
"source-map": "^0.7.3",
|
||||||
@@ -1365,9 +1365,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/brighterscript-formatter/node_modules/brighterscript": {
|
"node_modules/brighterscript-formatter/node_modules/brighterscript": {
|
||||||
"version": "0.69.11",
|
"version": "0.69.13",
|
||||||
"resolved": "https://registry.npmjs.org/brighterscript/-/brighterscript-0.69.11.tgz",
|
"resolved": "https://registry.npmjs.org/brighterscript/-/brighterscript-0.69.13.tgz",
|
||||||
"integrity": "sha512-Iq8lcCERkk6QwSn5Y+tAFZSEQbCZX6rDGpQkVPzNHzR/BtHTYsP/wSmbSIvghGQly+PihoBftR9i1txd6DD3lA==",
|
"integrity": "sha512-VXXgLsG/cmXzBnCmDI7g2vj+cJR2O74TA8h+2HI3zgZL+Ta7wt/WBJL/VnFFx4dAjAZmIrbnVj00DoEjDHjjBQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -2830,9 +2830,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/dotenv": {
|
"node_modules/dotenv": {
|
||||||
"version": "17.2.0",
|
"version": "17.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.2.1.tgz",
|
||||||
"integrity": "sha512-Q4sgBT60gzd0BB0lSyYD3xM4YxrXA9y4uBDof1JNYGzOXrQdQ6yX+7XIAqoFOGQFOTK1D3Hts5OllpxMDZFONQ==",
|
"integrity": "sha512-kQhDYKZecqnM0fCnzI5eIv5L4cAe/iRI+HqMbO/hbRdTAeXDG+M9FjipUxNfbARuEg4iHIbhnhs78BCHNbSxEQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "BSD-2-Clause",
|
"license": "BSD-2-Clause",
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -3496,9 +3496,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/fs-extra": {
|
"node_modules/fs-extra": {
|
||||||
"version": "11.3.0",
|
"version": "11.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.1.tgz",
|
||||||
"integrity": "sha512-Z4XaCL6dUDHfP/jT25jJKMmtxvuwbkrD1vNSMFlo9lNLY2c5FHYSQgHPRZUjAB26TpDEoW9HCOgplrdbaPV/ew==",
|
"integrity": "sha512-eXvGGwZ5CL17ZSwHWd3bbgk7UUpF6IFHtP57NYYakPvHOs8GDgDe5KJI36jIJzDkJ6eJjuzRA8eBQb6SkKue0g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -5441,18 +5441,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/puppeteer": {
|
"node_modules/puppeteer": {
|
||||||
"version": "24.14.0",
|
"version": "24.17.0",
|
||||||
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-24.14.0.tgz",
|
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-24.17.0.tgz",
|
||||||
"integrity": "sha512-GB7suRDkp9pUnxpNGAORICQCtw11KFbg6U2iJXVTflzJLK5D1qzq8xOOmLgN/QnDBpDMdpn96ri52XkuN83Giw==",
|
"integrity": "sha512-CGrmJ8WgilK3nyE73k+pbxHggETPpEvL6AQ9H5JSK1RgZRGMQVJ+iO3MocGm9yBQXQJ9U5xijyLvkYXFeb0/+g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@puppeteer/browsers": "2.10.6",
|
"@puppeteer/browsers": "2.10.7",
|
||||||
"chromium-bidi": "7.1.1",
|
"chromium-bidi": "8.0.0",
|
||||||
"cosmiconfig": "^9.0.0",
|
"cosmiconfig": "^9.0.0",
|
||||||
"devtools-protocol": "0.0.1464554",
|
"devtools-protocol": "0.0.1475386",
|
||||||
"puppeteer-core": "24.14.0",
|
"puppeteer-core": "24.17.0",
|
||||||
"typed-query-selector": "^2.12.0"
|
"typed-query-selector": "^2.12.0"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
@@ -5486,9 +5486,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/puppeteer/node_modules/@puppeteer/browsers": {
|
"node_modules/puppeteer/node_modules/@puppeteer/browsers": {
|
||||||
"version": "2.10.6",
|
"version": "2.10.7",
|
||||||
"resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-2.10.6.tgz",
|
"resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-2.10.7.tgz",
|
||||||
"integrity": "sha512-pHUn6ZRt39bP3698HFQlu2ZHCkS/lPcpv7fVQcGBSzNNygw171UXAKrCUhy+TEMw4lEttOKDgNpb04hwUAJeiQ==",
|
"integrity": "sha512-wHWLkQWBjHtajZeqCB74nsa/X70KheyOhySYBRmVQDJiNj0zjZR/naPCvdWjMhcG1LmjaMV/9WtTo5mpe8qWLw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -5534,9 +5534,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/puppeteer/node_modules/chromium-bidi": {
|
"node_modules/puppeteer/node_modules/chromium-bidi": {
|
||||||
"version": "7.1.1",
|
"version": "8.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-7.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-8.0.0.tgz",
|
||||||
"integrity": "sha512-L2BKQ0rSLADgbPMIdDh3wnYHs3EiUiMay2Sq0CTolheaADmWIf6Pe+T9LJRcnh5rcMz0U7MVk0cQVvKsGRMa1g==",
|
"integrity": "sha512-d1VmE0FD7lxZQHzcDUCKZSNRtRwISXDsdg4HjdTR5+Ll5nQ/vzU12JeNmupD6VWffrPSlrnGhEWlLESKH3VO+g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -5583,9 +5583,9 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/puppeteer/node_modules/devtools-protocol": {
|
"node_modules/puppeteer/node_modules/devtools-protocol": {
|
||||||
"version": "0.0.1464554",
|
"version": "0.0.1475386",
|
||||||
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1464554.tgz",
|
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1475386.tgz",
|
||||||
"integrity": "sha512-CAoP3lYfwAGQTaAXYvA6JZR0fjGUb7qec1qf4mToyoH2TZgUFeIqYcjh6f9jNuhHfuZiEdH+PONHYrLhRQX6aw==",
|
"integrity": "sha512-RQ809ykTfJ+dgj9bftdeL2vRVxASAuGU+I9LEx9Ij5TXU5HrgAQVmzi72VA+mkzscE12uzlRv5/tWWv9R9J1SA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "BSD-3-Clause"
|
"license": "BSD-3-Clause"
|
||||||
},
|
},
|
||||||
@@ -5597,16 +5597,16 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/puppeteer/node_modules/puppeteer-core": {
|
"node_modules/puppeteer/node_modules/puppeteer-core": {
|
||||||
"version": "24.14.0",
|
"version": "24.17.0",
|
||||||
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-24.14.0.tgz",
|
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-24.17.0.tgz",
|
||||||
"integrity": "sha512-NO9XpCl+i8oB0zJp81iPhzMo2QK8/JTj4ramSvTpGCo9CPCNo4AZ8qVOGpSgXzlcOfOT3VHOkzTfPo08GOE5jA==",
|
"integrity": "sha512-RYOBKFiF+3RdwIZTEacqNpD567gaFcBAOKTT7742FdB1icXudrPI7BlZbYTYWK2wgGQUXt9Zi1Yn+D5PmCs4CA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@puppeteer/browsers": "2.10.6",
|
"@puppeteer/browsers": "2.10.7",
|
||||||
"chromium-bidi": "7.1.1",
|
"chromium-bidi": "8.0.0",
|
||||||
"debug": "^4.4.1",
|
"debug": "^4.4.1",
|
||||||
"devtools-protocol": "0.0.1464554",
|
"devtools-protocol": "0.0.1475386",
|
||||||
"typed-query-selector": "^2.12.0",
|
"typed-query-selector": "^2.12.0",
|
||||||
"ws": "^8.18.3"
|
"ws": "^8.18.3"
|
||||||
},
|
},
|
||||||
@@ -6345,9 +6345,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/roku-deploy": {
|
"node_modules/roku-deploy": {
|
||||||
"version": "3.12.6",
|
"version": "3.13.0",
|
||||||
"resolved": "https://registry.npmjs.org/roku-deploy/-/roku-deploy-3.12.6.tgz",
|
"resolved": "https://registry.npmjs.org/roku-deploy/-/roku-deploy-3.13.0.tgz",
|
||||||
"integrity": "sha512-3qne2rwD0Yt4VMGUpiV75UHiarQYSgrQh5DtwpHjUVu0ozAzUw6psa46wA/jMbJgSNIDgKi4JsvdXkiAcE6P+g==",
|
"integrity": "sha512-Bmg2n/NzZmnydfsGeCtMiXagRkm3o4xB8OYGy33NT1+Ghn9tWeniDmzWO8/G3hTbqtqG/jYpWBpSuzVwUUaNGQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -7571,9 +7571,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/typescript": {
|
"node_modules/typescript": {
|
||||||
"version": "5.8.3",
|
"version": "5.9.2",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.2.tgz",
|
||||||
"integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==",
|
"integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"bin": {
|
"bin": {
|
||||||
@@ -7630,9 +7630,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/undici-types": {
|
"node_modules/undici-types": {
|
||||||
"version": "7.8.0",
|
"version": "7.10.0",
|
||||||
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.8.0.tgz",
|
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.10.0.tgz",
|
||||||
"integrity": "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==",
|
"integrity": "sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
@@ -8061,9 +8061,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/yaml": {
|
"node_modules/yaml": {
|
||||||
"version": "2.8.0",
|
"version": "2.8.1",
|
||||||
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.0.tgz",
|
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.1.tgz",
|
||||||
"integrity": "sha512-4lLa/EcQCB0cJkyts+FpIRx5G/llPxfP6VQU5KByHEhLxY3IJCH0f0Hy1MHI8sClTvsIb8qwRJ6R/ZdlDJ/leQ==",
|
"integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|||||||
+11
-11
@@ -1,37 +1,37 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.40.10",
|
"version": "0.41.1",
|
||||||
"description": "Unofficial YouTube client for Roku",
|
"description": "Unofficial YouTube client for Roku",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rokucommunity/bslint": "^0.8.33",
|
"@rokucommunity/bslint": "^0.8.34",
|
||||||
"@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": "^24.0.14",
|
"@types/node": "^24.3.0",
|
||||||
"@types/xml2js": "^0.4.14",
|
"@types/xml2js": "^0.4.14",
|
||||||
"argparse": "^2.0.1",
|
"argparse": "^2.0.1",
|
||||||
"brighterscript": "0.68.5",
|
"brighterscript": "0.68.5",
|
||||||
"brighterscript-formatter": "^1.7.16",
|
"brighterscript-formatter": "^1.7.17",
|
||||||
"convert-svg-to-png": "^0.7.1",
|
"convert-svg-to-png": "^0.7.1",
|
||||||
"crypto-js": "^4.2.0",
|
"crypto-js": "^4.2.0",
|
||||||
"dotenv": "^17.2.0",
|
"dotenv": "^17.2.1",
|
||||||
"fs-extra": "^11.3.0",
|
"fs-extra": "^11.3.1",
|
||||||
"glob": "^11.0.3",
|
"glob": "^11.0.3",
|
||||||
"imap": "^0.8.19",
|
"imap": "^0.8.19",
|
||||||
"ip": "^2.0.1",
|
"ip": "^2.0.1",
|
||||||
"json5": "^2.2.3",
|
"json5": "^2.2.3",
|
||||||
"mailparser": "^3.7.4",
|
"mailparser": "^3.7.4",
|
||||||
"protocol-buffers-schema": "^3.6.0",
|
"protocol-buffers-schema": "^3.6.0",
|
||||||
"puppeteer": "^24.14.0",
|
"puppeteer": "^24.17.0",
|
||||||
"roku-deploy": "^3.12.6",
|
"roku-deploy": "^3.13.0",
|
||||||
"roku-test-automation": "^2.0.13",
|
"roku-test-automation": "^2.0.13",
|
||||||
"rooibos-roku": "5.15.7",
|
"rooibos-roku": "5.15.7",
|
||||||
"rounded-rect-9patch": "^1.1.2",
|
"rounded-rect-9patch": "^1.1.2",
|
||||||
"semver": "^7.7.2",
|
"semver": "^7.7.2",
|
||||||
"shelljs": "^0.10.0",
|
"shelljs": "^0.10.0",
|
||||||
"ts-node": "^10.9.2",
|
"ts-node": "^10.9.2",
|
||||||
"typescript": "5.8.3",
|
"typescript": "5.9.2",
|
||||||
"xml2js": "^0.6.2",
|
"xml2js": "^0.6.2",
|
||||||
"yaml": "^2.8.0"
|
"yaml": "^2.8.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "22"
|
"node": "22"
|
||||||
@@ -74,6 +74,6 @@
|
|||||||
"shutdown": "node tools/shutdown.js"
|
"shutdown": "node tools/shutdown.js"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@rollup/rollup-linux-x64-gnu": "^4.45.1"
|
"@rollup/rollup-linux-x64-gnu": "^4.47.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-app",
|
"name": "playlet-app",
|
||||||
"version": "0.40.10",
|
"version": "0.41.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet-app",
|
"name": "playlet-app",
|
||||||
"version": "0.40.10"
|
"version": "0.41.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-app",
|
"name": "playlet-app",
|
||||||
"version": "0.40.10",
|
"version": "0.41.1",
|
||||||
"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",
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ 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=40
|
minor_version=41
|
||||||
build_version=00010
|
build_version=00001
|
||||||
|
|
||||||
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.40.10",
|
"version": "0.41.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet-lib",
|
"name": "playlet-lib",
|
||||||
"version": "0.40.10"
|
"version": "0.41.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-lib",
|
"name": "playlet-lib",
|
||||||
"version": "0.40.10",
|
"version": "0.41.1",
|
||||||
"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",
|
||||||
|
|||||||
@@ -112,6 +112,7 @@ function OnLineSysLog(event as object, dateTime as object, logsFile as string, b
|
|||||||
print line
|
print line
|
||||||
buffer.FromAsciiString(line + `\n`)
|
buffer.FromAsciiString(line + `\n`)
|
||||||
buffer.AppendFile(logsFile)
|
buffer.AppendFile(logsFile)
|
||||||
|
m.global.telemetry.logError = line
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnLineLogMonitorMemoryWarning(event as object, dateTime as object, logsFile as string, buffer as object) as void
|
function OnLineLogMonitorMemoryWarning(event as object, dateTime as object, logsFile as string, buffer as object) as void
|
||||||
@@ -120,6 +121,7 @@ function OnLineLogMonitorMemoryWarning(event as object, dateTime as object, logs
|
|||||||
print line
|
print line
|
||||||
buffer.FromAsciiString(line + `\n`)
|
buffer.FromAsciiString(line + `\n`)
|
||||||
buffer.AppendFile(logsFile)
|
buffer.AppendFile(logsFile)
|
||||||
|
m.global.telemetry.logWarn = line
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnLineLogDeviceInfoMemoryWarning(event as object, dateTime as object, logsFile as string, buffer as object) as void
|
function OnLineLogDeviceInfoMemoryWarning(event as object, dateTime as object, logsFile as string, buffer as object) as void
|
||||||
@@ -138,6 +140,7 @@ function OnLineLogDeviceInfoMemoryWarning(event as object, dateTime as object, l
|
|||||||
print line
|
print line
|
||||||
buffer.FromAsciiString(line + `\n`)
|
buffer.FromAsciiString(line + `\n`)
|
||||||
buffer.AppendFile(logsFile)
|
buffer.AppendFile(logsFile)
|
||||||
|
m.global.telemetry.logWarn = line
|
||||||
end function
|
end function
|
||||||
|
|
||||||
' Note: although the timestamp should be captured in the caller, not the logger,
|
' Note: although the timestamp should be captured in the caller, not the logger,
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ function SetScenePalette(scene as object) as void
|
|||||||
scene.palette = palette
|
scene.palette = palette
|
||||||
end function
|
end function
|
||||||
|
|
||||||
const HAS_ANNOUNCEMENT = true
|
const HAS_ANNOUNCEMENT = false
|
||||||
|
|
||||||
function MainSceneContainerChanged()
|
function MainSceneContainerChanged()
|
||||||
AutoBindSceneGraph()
|
AutoBindSceneGraph()
|
||||||
@@ -62,23 +62,13 @@ function StartWebServer()
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function ShowAnnouncement() as boolean
|
function ShowAnnouncement() as boolean
|
||||||
deviceInfo = CreateObject("roDeviceInfo")
|
|
||||||
deviceName = deviceInfo.GetFriendlyName()
|
|
||||||
|
|
||||||
dialog = DialogUtils.ShowDialogOnce({
|
dialog = DialogUtils.ShowDialogOnce({
|
||||||
messageId: "1750501488"
|
messageId: "1755469284"
|
||||||
title: "Web app workaround"
|
title: "Playback fixes - Canary build"
|
||||||
message: [
|
message: [
|
||||||
"If you're experiencing issues playing videos, please consider this workaround while we work on a fix:"
|
"Thank you for helping test the latest changes by using the Canary build of Playlet!"
|
||||||
]
|
"If you encounter any issues with playback, please report them on the GitHub issue tracker."
|
||||||
bulletText: [
|
"https://github.com/iBicha/playlet/issues"
|
||||||
`Go to the "Remote" screen, and scan the QR code to open the web app in your browser.`
|
|
||||||
`Tap the video you want to play.`
|
|
||||||
`Select the "Play on ${deviceName} (ytjs)" button.`
|
|
||||||
]
|
|
||||||
bottomMessage: [
|
|
||||||
"Apologies for the inconvenience, and thank you for your patience!"
|
|
||||||
"Issue link: https://github.com/iBicha/playlet/issues/626"
|
|
||||||
]
|
]
|
||||||
alwaysOnTop: true
|
alwaysOnTop: true
|
||||||
large: true
|
large: true
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ function MainSceneContainerChanged()
|
|||||||
StartWebServer()
|
StartWebServer()
|
||||||
HideLoadingScreen()
|
HideLoadingScreen()
|
||||||
InitEcpArgs()
|
InitEcpArgs()
|
||||||
if true
|
if false
|
||||||
if not ShowAnnouncement()
|
if not ShowAnnouncement()
|
||||||
m.scene.signalBeacon("AppLaunchComplete")
|
m.scene.signalBeacon("AppLaunchComplete")
|
||||||
end if
|
end if
|
||||||
@@ -58,22 +58,13 @@ function StartWebServer()
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function ShowAnnouncement() as boolean
|
function ShowAnnouncement() as boolean
|
||||||
deviceInfo = CreateObject("roDeviceInfo")
|
|
||||||
deviceName = deviceInfo.GetFriendlyName()
|
|
||||||
dialog = DialogUtils_ShowDialogOnce({
|
dialog = DialogUtils_ShowDialogOnce({
|
||||||
messageId: "1750501488"
|
messageId: "1755469284"
|
||||||
title: "Web app workaround"
|
title: "Playback fixes - Canary build"
|
||||||
message: [
|
message: [
|
||||||
"If you're experiencing issues playing videos, please consider this workaround while we work on a fix:"
|
"Thank you for helping test the latest changes by using the Canary build of Playlet!"
|
||||||
]
|
"If you encounter any issues with playback, please report them on the GitHub issue tracker."
|
||||||
bulletText: [
|
"https://github.com/iBicha/playlet/issues"
|
||||||
"Go to the " + chr(34) + "Remote" + chr(34) + " screen, and scan the QR code to open the web app in your browser."
|
|
||||||
"Tap the video you want to play."
|
|
||||||
("Select the " + chr(34) + "Play on " + bslib_toString(deviceName) + " (ytjs)" + chr(34) + " button.")
|
|
||||||
]
|
|
||||||
bottomMessage: [
|
|
||||||
"Apologies for the inconvenience, and thank you for your patience!"
|
|
||||||
"Issue link: https://github.com/iBicha/playlet/issues/626"
|
|
||||||
]
|
]
|
||||||
alwaysOnTop: true
|
alwaysOnTop: true
|
||||||
large: true
|
large: true
|
||||||
|
|||||||
@@ -53,6 +53,7 @@
|
|||||||
<PlayletWebServer id="WebServer" port="8888" />
|
<PlayletWebServer id="WebServer" port="8888" />
|
||||||
<DialServer id="DialServer" />
|
<DialServer id="DialServer" />
|
||||||
<LoungeService id="LoungeService" />
|
<LoungeService id="LoungeService" />
|
||||||
|
<Telemetry id="Telemetry" />
|
||||||
</AppController>
|
</AppController>
|
||||||
</children>
|
</children>
|
||||||
</component>
|
</component>
|
||||||
|
|||||||
@@ -103,6 +103,9 @@
|
|||||||
videoQueue="bind:../VideoQueue"
|
videoQueue="bind:../VideoQueue"
|
||||||
notifications="bind:../Notifications"
|
notifications="bind:../Notifications"
|
||||||
invidious="bind:../Invidious" />
|
invidious="bind:../Invidious" />
|
||||||
|
<Telemetry id="Telemetry"
|
||||||
|
preferences="bind:../Preferences"
|
||||||
|
applicationInfo="bind:../ApplicationInfo" />
|
||||||
</AppController>
|
</AppController>
|
||||||
</children>
|
</children>
|
||||||
</component>
|
</component>
|
||||||
@@ -64,6 +64,10 @@ function InitializeBindings()
|
|||||||
"videoQueue": "../VideoQueue",
|
"videoQueue": "../VideoQueue",
|
||||||
"notifications": "../Notifications",
|
"notifications": "../Notifications",
|
||||||
"invidious": "../Invidious"
|
"invidious": "../Invidious"
|
||||||
|
},
|
||||||
|
"Telemetry": {
|
||||||
|
"preferences": "../Preferences",
|
||||||
|
"applicationInfo": "../ApplicationInfo"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -192,17 +192,18 @@ class DashManifest
|
|||||||
id += 1
|
id += 1
|
||||||
end for
|
end for
|
||||||
|
|
||||||
|
storyboardsAdded = false
|
||||||
' https://developer.roku.com/en-ca/docs/developer-program/media-playback/trick-mode/hls-and-dash.md#dash-standard-thumbnail-tiles
|
' https://developer.roku.com/en-ca/docs/developer-program/media-playback/trick-mode/hls-and-dash.md#dash-standard-thumbnail-tiles
|
||||||
for each storyboard in storyboards
|
for each storyboard in storyboards
|
||||||
interval = ValidInt(storyboard.interval)
|
interval = ValidInt(storyboard.interval)
|
||||||
if interval = 0
|
if interval = 0
|
||||||
LogWarn("Invalid storyboard interval:", storyboard.interval)
|
LogInfo("Invalid storyboard interval:", storyboard.interval)
|
||||||
continue for
|
continue for
|
||||||
end if
|
end if
|
||||||
|
|
||||||
templateUrl = storyboard.templateUrl
|
templateUrl = storyboard.templateUrl
|
||||||
if templateUrl.Instr("$M") = -1
|
if templateUrl.Instr("$M") = -1
|
||||||
LogWarn("Invalid storyboard url: url does not contain $M:", templateUrl)
|
LogInfo("Invalid storyboard url: url does not contain $M:", templateUrl)
|
||||||
continue for
|
continue for
|
||||||
end if
|
end if
|
||||||
|
|
||||||
@@ -267,8 +268,13 @@ class DashManifest
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
id += 1
|
id += 1
|
||||||
|
storyboardsAdded = true
|
||||||
end for
|
end for
|
||||||
|
|
||||||
|
if storyboards.Count() > 0 and not storyboardsAdded
|
||||||
|
LogWarn("No valid storyboards found")
|
||||||
|
end if
|
||||||
|
|
||||||
xml.End()
|
xml.End()
|
||||||
end if
|
end if
|
||||||
xml.End()
|
xml.End()
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
const PLAYLET_SUPPORT_SERVER = "https://playlet-v8556.ondigitalocean.app"
|
||||||
|
|
||||||
const VIDEO_PLAYER_USER_AGENT = "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0"
|
const VIDEO_PLAYER_USER_AGENT = "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0"
|
||||||
|
|
||||||
const INNERTUBE_IOS_CLIENT_NAME = "5"
|
const INNERTUBE_IOS_CLIENT_NAME = "5"
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ namespace Innertube
|
|||||||
Tv = "TV"
|
Tv = "TV"
|
||||||
end enum
|
end enum
|
||||||
|
|
||||||
function CreateHeaders(clienType as Innertube.ClientType) as object
|
function CreateHeaders(client as Innertube.ClientType) as object
|
||||||
if clienType = ClientType.Web
|
if client = ClientType.Web
|
||||||
return {
|
return {
|
||||||
"accept": "*/*"
|
"accept": "*/*"
|
||||||
"accept-language": "*"
|
"accept-language": "*"
|
||||||
@@ -19,7 +19,7 @@ namespace Innertube
|
|||||||
"x-youtube-client-name": INNERTUBE_WEB_CLIENT_NAME
|
"x-youtube-client-name": INNERTUBE_WEB_CLIENT_NAME
|
||||||
"x-youtube-client-version": INNERTUBE_WEB_CLIENT_VERSION
|
"x-youtube-client-version": INNERTUBE_WEB_CLIENT_VERSION
|
||||||
}
|
}
|
||||||
else if clienType = ClientType.IOS
|
else if client = ClientType.IOS
|
||||||
return {
|
return {
|
||||||
"accept": "*/*"
|
"accept": "*/*"
|
||||||
"accept-language": "*"
|
"accept-language": "*"
|
||||||
@@ -27,7 +27,7 @@ namespace Innertube
|
|||||||
"x-youtube-client-name": INNERTUBE_IOS_CLIENT_NAME
|
"x-youtube-client-name": INNERTUBE_IOS_CLIENT_NAME
|
||||||
"x-youtube-client-version": INNERTUBE_IOS_CLIENT_VERSION
|
"x-youtube-client-version": INNERTUBE_IOS_CLIENT_VERSION
|
||||||
}
|
}
|
||||||
else if clienType = ClientType.Tv
|
else if client = ClientType.Tv
|
||||||
return {
|
return {
|
||||||
"accept": "*/*"
|
"accept": "*/*"
|
||||||
"accept-language": "*"
|
"accept-language": "*"
|
||||||
@@ -40,14 +40,14 @@ namespace Innertube
|
|||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function CreateContext(clienType as Innertube.ClientType, deviceInfo as object, options = invalid as object) as object
|
function CreateContext(client as Innertube.ClientType, deviceInfo as object, options = invalid as object) as object
|
||||||
client = invalid
|
contextClient = invalid
|
||||||
if clienType = ClientType.Web
|
if client = ClientType.Web
|
||||||
client = CreateContextClientWeb(deviceInfo)
|
contextClient = CreateContextClientWeb(deviceInfo)
|
||||||
else if clienType = ClientType.IOS
|
else if client = ClientType.IOS
|
||||||
client = CreateContextClientIOS(deviceInfo)
|
contextClient = CreateContextClientIOS(deviceInfo)
|
||||||
else if clienType = ClientType.Tv
|
else if client = ClientType.Tv
|
||||||
client = CreateContextClientTv(deviceInfo)
|
contextClient = CreateContextClientTv(deviceInfo)
|
||||||
else
|
else
|
||||||
throw "Invalid client type"
|
throw "Invalid client type"
|
||||||
end if
|
end if
|
||||||
@@ -55,9 +55,12 @@ namespace Innertube
|
|||||||
credentialTransferToken = OptionUtils.Get(options, "credentialTransferToken")
|
credentialTransferToken = OptionUtils.Get(options, "credentialTransferToken")
|
||||||
visitorData = OptionUtils.Get(options, "visitorData")
|
visitorData = OptionUtils.Get(options, "visitorData")
|
||||||
onBehalfOfUser = OptionUtils.Get(options, "onBehalfOfUser")
|
onBehalfOfUser = OptionUtils.Get(options, "onBehalfOfUser")
|
||||||
|
accessToken = OptionUtils.Get(options, "accessToken")
|
||||||
|
|
||||||
|
useAccessToken = client = Innertube.ClientType.TV and not StringUtils.IsNullOrEmpty(accessToken)
|
||||||
|
|
||||||
context = {
|
context = {
|
||||||
"client": client
|
"client": contextClient
|
||||||
"user": {
|
"user": {
|
||||||
"enableSafetyMode": false
|
"enableSafetyMode": false
|
||||||
"lockedSafetyMode": false
|
"lockedSafetyMode": false
|
||||||
@@ -75,11 +78,11 @@ namespace Innertube
|
|||||||
}]
|
}]
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if not StringUtils.IsNullOrEmpty(visitorData)
|
if not StringUtils.IsNullOrEmpty(visitorData) and not useAccessToken
|
||||||
context["client"]["visitorData"] = visitorData
|
context["client"]["visitorData"] = visitorData
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if not StringUtils.IsNullOrEmpty(onBehalfOfUser)
|
if not StringUtils.IsNullOrEmpty(onBehalfOfUser) and useAccessToken
|
||||||
context["user"]["onBehalfOfUser"] = onBehalfOfUser
|
context["user"]["onBehalfOfUser"] = onBehalfOfUser
|
||||||
end if
|
end if
|
||||||
|
|
||||||
@@ -162,8 +165,9 @@ namespace Innertube
|
|||||||
"clientFormFactor": "UNKNOWN_FORM_FACTOR"
|
"clientFormFactor": "UNKNOWN_FORM_FACTOR"
|
||||||
"webpSupport": false
|
"webpSupport": false
|
||||||
"tvAppInfo": {
|
"tvAppInfo": {
|
||||||
' "appQuality": "TV_APP_QUALITY_FULL_ANIMATION"
|
' Merge Shorts with Subscriptions: TV_APP_QUALITY_LIMITED_ANIMATION
|
||||||
"appQuality": "TV_APP_QUALITY_LIMITED_MEMORY"
|
' Separate Shorts from Subscriptions: TV_APP_QUALITY_FULL_ANIMATION
|
||||||
|
"appQuality": "TV_APP_QUALITY_FULL_ANIMATION"
|
||||||
"useStartPlaybackPreviewCommand": false
|
"useStartPlaybackPreviewCommand": false
|
||||||
"supportsNativeScrolling": false
|
"supportsNativeScrolling": false
|
||||||
}
|
}
|
||||||
@@ -179,9 +183,9 @@ namespace Innertube
|
|||||||
|
|
||||||
function GetCurrentLocale(deviceInfo as object) as string
|
function GetCurrentLocale(deviceInfo as object) as string
|
||||||
currentLocale = deviceInfo.GetCurrentLocale()
|
currentLocale = deviceInfo.GetCurrentLocale()
|
||||||
' en_CA is not a valid locale for Innertube
|
' en_CA and en_AU are not valid locales for Innertube
|
||||||
if currentLocale = "en_CA"
|
if currentLocale = "en_CA" or currentLocale = "en_AU"
|
||||||
currentLocale = "en_US"
|
return "en_US"
|
||||||
end if
|
end if
|
||||||
return currentLocale
|
return currentLocale
|
||||||
end function
|
end function
|
||||||
|
|||||||
@@ -19,12 +19,16 @@ namespace InnertubeService
|
|||||||
function GetVideoMetadata(videoId as string, options = invalid as object) as object
|
function GetVideoMetadata(videoId as string, options = invalid as object) as object
|
||||||
cancellation = OptionUtils.Get(options, "cancellation")
|
cancellation = OptionUtils.Get(options, "cancellation")
|
||||||
fetchNext = OptionUtils.GetOrDefault(options, "fetchNext", true)
|
fetchNext = OptionUtils.GetOrDefault(options, "fetchNext", true)
|
||||||
|
accessToken = OptionUtils.Get(options, "accessToken")
|
||||||
raw = OptionUtils.GetOrDefault(options, "raw", false)
|
raw = OptionUtils.GetOrDefault(options, "raw", false)
|
||||||
|
|
||||||
playerRequest = Innertube.CreatePlayerRequest(videoId, Innertube.ClientType.IOS, options)
|
playerRequest = Innertube.CreatePlayerRequest(videoId, Innertube.ClientType.Tv, options)
|
||||||
|
if not StringUtils.IsNullOrEmpty(accessToken)
|
||||||
|
playerRequest.Header("Authorization", "Bearer " + accessToken)
|
||||||
|
end if
|
||||||
playerRequest.Cancellation(cancellation)
|
playerRequest.Cancellation(cancellation)
|
||||||
if raw
|
if raw
|
||||||
playerRequest.LogCurlCommand()
|
playerRequest.LogCurlCommand(true)
|
||||||
end if
|
end if
|
||||||
playerRequest.Send()
|
playerRequest.Send()
|
||||||
|
|
||||||
@@ -34,7 +38,7 @@ namespace InnertubeService
|
|||||||
nextRequest = Innertube.CreateNextRequest({ "videoId": videoId }, options)
|
nextRequest = Innertube.CreateNextRequest({ "videoId": videoId }, options)
|
||||||
nextRequest.Cancellation(cancellation)
|
nextRequest.Cancellation(cancellation)
|
||||||
if raw
|
if raw
|
||||||
nextRequest.LogCurlCommand()
|
nextRequest.LogCurlCommand(true)
|
||||||
end if
|
end if
|
||||||
nextRequest.Send()
|
nextRequest.Send()
|
||||||
end if
|
end if
|
||||||
@@ -52,6 +56,39 @@ namespace InnertubeService
|
|||||||
}
|
}
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
' For LIVE videos, we will need to fallback to iOS for HLS streams for now.
|
||||||
|
' Also, since we might have tracking urls in the player response (if logged in),
|
||||||
|
' we can keep them to avoid an extra request later.
|
||||||
|
' TODO:P0 figure out how to get DASH to work for live videos.
|
||||||
|
'
|
||||||
|
' # Start of iOS fallback
|
||||||
|
playbackTrackingUrls = invalid
|
||||||
|
responseJson = playerResponse.Json()
|
||||||
|
if ValidBool(ObjectUtils.Dig(responseJson, ["videoDetails", "isLive"]))
|
||||||
|
LogDebug("Live video detected, falling back to iOS for HLS streams.")
|
||||||
|
isLoggedIn = Innertube.ParseIsLoggedIn(responseJson)
|
||||||
|
playbackTrackingUrls = Innertube.ParsePlaybackTrackingUrls(responseJson, isLoggedIn)
|
||||||
|
|
||||||
|
playerRequest = Innertube.CreatePlayerRequest(videoId, Innertube.ClientType.IOS, options)
|
||||||
|
playerRequest.Cancellation(cancellation)
|
||||||
|
if raw
|
||||||
|
playerRequest.LogCurlCommand(true)
|
||||||
|
end if
|
||||||
|
playerResponse = playerRequest.Await()
|
||||||
|
if not playerResponse.IsSuccess()
|
||||||
|
return {
|
||||||
|
error: playerResponse.ErrorMessage()
|
||||||
|
}
|
||||||
|
end if
|
||||||
|
|
||||||
|
if CancellationUtils.IsCancelled(cancellation)
|
||||||
|
return {
|
||||||
|
error: "Cancelled"
|
||||||
|
}
|
||||||
|
end if
|
||||||
|
end if
|
||||||
|
' # End of iOS fallback
|
||||||
|
|
||||||
if fetchNext
|
if fetchNext
|
||||||
nextResponse = nextRequest.Await()
|
nextResponse = nextRequest.Await()
|
||||||
end if
|
end if
|
||||||
@@ -66,7 +103,19 @@ namespace InnertubeService
|
|||||||
return rawResponse
|
return rawResponse
|
||||||
end if
|
end if
|
||||||
|
|
||||||
parsedResponse = Innertube.ParseInnertubePlayerResponse(playerResponse.Json())
|
parsedResponse = invalid
|
||||||
|
try
|
||||||
|
parsedResponse = Innertube.ParseInnertubePlayerResponse(playerResponse.Json(), playerRequest.signatureTimestamp, cancellation)
|
||||||
|
catch exception
|
||||||
|
code = ValidString(exception.code)
|
||||||
|
if code = "STS_MISMATCH"
|
||||||
|
return GetVideoMetadata(videoId, options)
|
||||||
|
end if
|
||||||
|
if code = "MISSING_FORMAT_FIELD"
|
||||||
|
m.global.telemetry.LogError = code + `\n` + playerRequest.ToCurlCommand() + `\n` + playerResponse.Text()
|
||||||
|
end if
|
||||||
|
throw exception
|
||||||
|
end try
|
||||||
if parsedResponse.error <> invalid
|
if parsedResponse.error <> invalid
|
||||||
return parsedResponse
|
return parsedResponse
|
||||||
end if
|
end if
|
||||||
@@ -80,6 +129,13 @@ namespace InnertubeService
|
|||||||
parsedResponse["videoId"] = videoId
|
parsedResponse["videoId"] = videoId
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
' # Start of iOS fallback
|
||||||
|
if playbackTrackingUrls <> invalid and parsedResponse.playbackTrackingUrls = invalid
|
||||||
|
LogDebug("Adding playback tracking URLs from TV player response.")
|
||||||
|
parsedResponse["playbackTrackingUrls"] = playbackTrackingUrls
|
||||||
|
end if
|
||||||
|
' # End of iOS fallback
|
||||||
|
|
||||||
return parsedResponse
|
return parsedResponse
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@@ -194,7 +250,7 @@ namespace InnertubeService
|
|||||||
request.Cancellation(cancellation)
|
request.Cancellation(cancellation)
|
||||||
|
|
||||||
if raw
|
if raw
|
||||||
request.LogCurlCommand()
|
request.LogCurlCommand(true)
|
||||||
request.NoCache()
|
request.NoCache()
|
||||||
end if
|
end if
|
||||||
|
|
||||||
@@ -406,7 +462,7 @@ namespace InnertubeService
|
|||||||
request = Innertube.CreateBrowseRequest(channelId, Innertube.ClientType.Web, options)
|
request = Innertube.CreateBrowseRequest(channelId, Innertube.ClientType.Web, options)
|
||||||
request.Cancellation(cancellation)
|
request.Cancellation(cancellation)
|
||||||
if raw
|
if raw
|
||||||
request.LogCurlCommand()
|
request.LogCurlCommand(true)
|
||||||
request.NoCache()
|
request.NoCache()
|
||||||
end if
|
end if
|
||||||
|
|
||||||
@@ -548,7 +604,7 @@ namespace InnertubeService
|
|||||||
request.Header("Authorization", "Bearer " + accessToken)
|
request.Header("Authorization", "Bearer " + accessToken)
|
||||||
end if
|
end if
|
||||||
if raw
|
if raw
|
||||||
request.LogCurlCommand()
|
request.LogCurlCommand(true)
|
||||||
request.NoCache()
|
request.NoCache()
|
||||||
end if
|
end if
|
||||||
|
|
||||||
@@ -589,7 +645,7 @@ namespace InnertubeService
|
|||||||
request = Innertube.CreateNextRequest(args)
|
request = Innertube.CreateNextRequest(args)
|
||||||
request.Cancellation(cancellation)
|
request.Cancellation(cancellation)
|
||||||
if raw
|
if raw
|
||||||
request.LogCurlCommand()
|
request.LogCurlCommand(true)
|
||||||
request.NoCache()
|
request.NoCache()
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
|||||||
@@ -591,6 +591,7 @@ namespace Innertube
|
|||||||
if not IsString(videoId)
|
if not IsString(videoId)
|
||||||
videoId = ObjectUtils.Dig(nodeData, ["updatedMetadataEndpoint", "updatedMetadataEndpoint", "videoId"])
|
videoId = ObjectUtils.Dig(nodeData, ["updatedMetadataEndpoint", "updatedMetadataEndpoint", "videoId"])
|
||||||
if not IsString(videoId)
|
if not IsString(videoId)
|
||||||
|
' TODO:P1 confirm that videoPrimaryInfoRenderer has the requested video
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
LogWarn("Invalid video ID in videoPrimaryInfoRenderer", `\n`, FormatJson(nodeData))
|
LogWarn("Invalid video ID in videoPrimaryInfoRenderer", `\n`, FormatJson(nodeData))
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -3,11 +3,17 @@ import "pkg:/components/Services/Innertube/NodesParser.bs"
|
|||||||
import "pkg:/source/services/HttpClient.bs"
|
import "pkg:/source/services/HttpClient.bs"
|
||||||
import "pkg:/source/utils/ObjectUtils.bs"
|
import "pkg:/source/utils/ObjectUtils.bs"
|
||||||
import "pkg:/source/utils/Types.bs"
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
import "pkg:/source/utils/UrlUtils.bs"
|
||||||
|
|
||||||
namespace Innertube
|
namespace Innertube
|
||||||
|
|
||||||
function CreatePlayerRequest(videoId as string, client as Innertube.ClientType, options = invalid as object) as object
|
function CreatePlayerRequest(videoId as string, client as Innertube.ClientType, options = invalid as object) as object
|
||||||
|
cancellation = OptionUtils.Get(options, "cancellation")
|
||||||
visitorData = OptionUtils.Get(options, "visitorData")
|
visitorData = OptionUtils.Get(options, "visitorData")
|
||||||
|
accessToken = OptionUtils.Get(options, "accessToken")
|
||||||
|
doSignatureTimestamp = ValidBool(OptionUtils.Get(options, "signatureTimestamp"))
|
||||||
|
|
||||||
|
useAccessToken = client = Innertube.ClientType.TV and not StringUtils.IsNullOrEmpty(accessToken)
|
||||||
|
|
||||||
deviceInfo = CreateObject("roDeviceInfo")
|
deviceInfo = CreateObject("roDeviceInfo")
|
||||||
|
|
||||||
@@ -36,16 +42,27 @@ namespace Innertube
|
|||||||
"contentCheckOk": true
|
"contentCheckOk": true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
signatureTimestamp = invalid
|
||||||
|
if doSignatureTimestamp
|
||||||
|
signatureTimestamp = GetSignatureTimestamp(cancellation)
|
||||||
|
if signatureTimestamp <> invalid
|
||||||
|
payload["playbackContext"]["contentPlaybackContext"]["signatureTimestamp"] = signatureTimestamp
|
||||||
|
end if
|
||||||
|
end if
|
||||||
|
|
||||||
request = HttpClient.PostJson("https://www.youtube.com/youtubei/v1/player?prettyPrint=false&alt=json", payload)
|
request = HttpClient.PostJson("https://www.youtube.com/youtubei/v1/player?prettyPrint=false&alt=json", payload)
|
||||||
request.Headers(Innertube.CreateHeaders(client))
|
request.Headers(Innertube.CreateHeaders(client))
|
||||||
if not StringUtils.IsNullOrEmpty(visitorData)
|
|
||||||
|
if not StringUtils.IsNullOrEmpty(visitorData) and not useAccessToken
|
||||||
request.Header("x-goog-visitor-id", visitorData)
|
request.Header("x-goog-visitor-id", visitorData)
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
request.signatureTimestamp = signatureTimestamp
|
||||||
|
|
||||||
return request
|
return request
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function ParseInnertubePlayerResponse(payload as object) as object
|
function ParseInnertubePlayerResponse(payload as object, signatureTimestamp as dynamic, cancellation as object) as object
|
||||||
error = ParsePlayerResponseForError(payload)
|
error = ParsePlayerResponseForError(payload)
|
||||||
if error <> ""
|
if error <> ""
|
||||||
return {
|
return {
|
||||||
@@ -68,6 +85,7 @@ namespace Innertube
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
lengthSeconds = videoDetails["lengthSeconds"].ToInt()
|
lengthSeconds = videoDetails["lengthSeconds"].ToInt()
|
||||||
|
isLive = ValidBool(videoDetails["isLive"])
|
||||||
|
|
||||||
videoInfo = {
|
videoInfo = {
|
||||||
"type": "video"
|
"type": "video"
|
||||||
@@ -78,9 +96,10 @@ namespace Innertube
|
|||||||
"author": videoDetails["author"]
|
"author": videoDetails["author"]
|
||||||
"authorId": videoDetails["channelId"]
|
"authorId": videoDetails["channelId"]
|
||||||
"lengthSeconds": lengthSeconds
|
"lengthSeconds": lengthSeconds
|
||||||
"liveNow": ValidBool(videoDetails["isLive"])
|
"liveNow": isLive
|
||||||
"hlsUrl": streamingData["hlsManifestUrl"]
|
"hlsUrl": streamingData["hlsManifestUrl"]
|
||||||
"adaptiveFormats": []
|
"dashUrl": streamingData["dashManifestUrl"]
|
||||||
|
"adaptiveFormats": ParseAdaptiveFormats(payload, signatureTimestamp, isLive, cancellation)
|
||||||
"formatStreams": []
|
"formatStreams": []
|
||||||
"captions": ParseCaptions(payload)
|
"captions": ParseCaptions(payload)
|
||||||
"recommendedVideos": []
|
"recommendedVideos": []
|
||||||
@@ -90,6 +109,9 @@ namespace Innertube
|
|||||||
videoInfo["viewCount"] = videoDetails["viewCount"].ToInt()
|
videoInfo["viewCount"] = videoDetails["viewCount"].ToInt()
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
videoInfo["isLoggedIn"] = ParseIsLoggedIn(payload)
|
||||||
|
videoInfo["playbackTrackingUrls"] = ParsePlaybackTrackingUrls(payload, videoInfo.isLoggedIn)
|
||||||
|
|
||||||
return videoInfo
|
return videoInfo
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@@ -266,4 +288,211 @@ namespace Innertube
|
|||||||
return captions
|
return captions
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
function ParseAdaptiveFormats(payload as object, signatureTimestamp as dynamic, isLive as boolean, cancellation as object) as object
|
||||||
|
adaptiveFormats = ObjectUtils.Dig(payload, ["streamingData", "adaptiveFormats"])
|
||||||
|
if not IsArray(adaptiveFormats)
|
||||||
|
return []
|
||||||
|
end if
|
||||||
|
|
||||||
|
if not isLive
|
||||||
|
adaptiveFormats = DecipherUrls(adaptiveFormats, signatureTimestamp, cancellation)
|
||||||
|
end if
|
||||||
|
|
||||||
|
formats = []
|
||||||
|
for each fmt in adaptiveFormats
|
||||||
|
formats.Push(GetAdaptiveFormat(fmt))
|
||||||
|
end for
|
||||||
|
|
||||||
|
return formats
|
||||||
|
end function
|
||||||
|
|
||||||
|
function GetAdaptiveFormat(fmt as object) as object
|
||||||
|
itag = `${fmt["itag"]}`
|
||||||
|
result = {
|
||||||
|
"bitrate": `${fmt["bitrate"]}`
|
||||||
|
"url": fmt["url"]
|
||||||
|
"itag": itag
|
||||||
|
"type": fmt["mimeType"]
|
||||||
|
"clen": `${fmt["approxDurationMs"]}`
|
||||||
|
"lmt": `${fmt["lastModified"]}`
|
||||||
|
}
|
||||||
|
|
||||||
|
if IsAssociativeArray(fmt["initRange"])
|
||||||
|
result["init"] = `${fmt["initRange"]["start"]}-${fmt["initRange"]["end"]}`
|
||||||
|
else
|
||||||
|
result["init"] = ""
|
||||||
|
end if
|
||||||
|
if IsAssociativeArray(fmt["indexRange"])
|
||||||
|
result["index"] = `${fmt["indexRange"]["start"]}-${fmt["indexRange"]["end"]}`
|
||||||
|
else
|
||||||
|
result["index"] = ""
|
||||||
|
end if
|
||||||
|
|
||||||
|
if IsString(fmt["audioQuality"])
|
||||||
|
result["audioQuality"] = fmt["audioQuality"]
|
||||||
|
end if
|
||||||
|
if IsString(fmt["audioSampleRate"])
|
||||||
|
result["audioSampleRate"] = fmt["audioSampleRate"]
|
||||||
|
end if
|
||||||
|
if IsString(fmt["audioChannels"])
|
||||||
|
result["audioChannels"] = fmt["audioChannels"]
|
||||||
|
end if
|
||||||
|
|
||||||
|
if IsString(fmt["qualityLabel"])
|
||||||
|
result["qualityLabel"] = fmt["qualityLabel"]
|
||||||
|
end if
|
||||||
|
if IsString(fmt["fps"])
|
||||||
|
result["fps"] = fmt["fps"]
|
||||||
|
end if
|
||||||
|
|
||||||
|
result["width"] = fmt["width"]
|
||||||
|
result["height"] = fmt["height"]
|
||||||
|
|
||||||
|
if fmt["width"] <> invalid and fmt["height"] <> invalid
|
||||||
|
result["size"] = `${fmt["width"]}x${fmt["height"]}`
|
||||||
|
result["resolution"] = `${fmt["height"]}p`
|
||||||
|
else
|
||||||
|
#if DEBUG
|
||||||
|
if result["type"].StartsWith("video/")
|
||||||
|
throw "Missing width/height for itag " + itag
|
||||||
|
end if
|
||||||
|
#end if
|
||||||
|
end if
|
||||||
|
|
||||||
|
return result
|
||||||
|
end function
|
||||||
|
|
||||||
|
function GetSignatureTimestamp(cancellation as object) as dynamic
|
||||||
|
cache = ReadAsciiFile("tmp:/sts_cache.json")
|
||||||
|
if not StringUtils.IsNullOrEmpty(cache)
|
||||||
|
json = ParseJson(cache)
|
||||||
|
return json["sts"]
|
||||||
|
end if
|
||||||
|
|
||||||
|
request = HttpClient.Get(`${PLAYLET_SUPPORT_SERVER}/v1/sts`)
|
||||||
|
request.Cancellation(cancellation)
|
||||||
|
request.NoCache()
|
||||||
|
response = request.Await()
|
||||||
|
if not response.IsSuccess()
|
||||||
|
LogError(response.ErrorMessage())
|
||||||
|
return invalid
|
||||||
|
end if
|
||||||
|
|
||||||
|
text = response.Text()
|
||||||
|
WriteAsciiFile("tmp:/sts_cache.json", text)
|
||||||
|
json = response.Json()
|
||||||
|
return json["sts"]
|
||||||
|
end function
|
||||||
|
|
||||||
|
function DecipherUrls(adaptiveFormats as object, signatureTimestamp as dynamic, cancellation as object) as object
|
||||||
|
if signatureTimestamp = invalid
|
||||||
|
' No need to decipher if signatureTimestamp is not available
|
||||||
|
return adaptiveFormats
|
||||||
|
end if
|
||||||
|
|
||||||
|
formats = []
|
||||||
|
for each fmt in adaptiveFormats
|
||||||
|
formats.push({
|
||||||
|
"url": fmt["url"]
|
||||||
|
"cipher": fmt["cipher"]
|
||||||
|
"signatureCipher": fmt["signatureCipher"]
|
||||||
|
})
|
||||||
|
end for
|
||||||
|
|
||||||
|
request = HttpClient.PostJson(`${PLAYLET_SUPPORT_SERVER}/v1/decipher`, {
|
||||||
|
"sts": signatureTimestamp
|
||||||
|
"formats": formats
|
||||||
|
})
|
||||||
|
request.Cancellation(cancellation)
|
||||||
|
|
||||||
|
request.LogCurlCommand(false)
|
||||||
|
|
||||||
|
response = request.Await()
|
||||||
|
if not response.IsSuccess()
|
||||||
|
LogError(response.ErrorMessage())
|
||||||
|
code = ""
|
||||||
|
if response.StatusCode() = 400
|
||||||
|
json = response.Json()
|
||||||
|
if IsAssociativeArray(json)
|
||||||
|
code = ValidString(json["code"])
|
||||||
|
if code = "STS_MISMATCH"
|
||||||
|
DeleteFile("tmp:/sts_cache.json")
|
||||||
|
end if
|
||||||
|
end if
|
||||||
|
end if
|
||||||
|
|
||||||
|
exception = { message: response.ErrorMessage() }
|
||||||
|
if code <> ""
|
||||||
|
exception.code = code
|
||||||
|
end if
|
||||||
|
throw exception
|
||||||
|
end if
|
||||||
|
|
||||||
|
json = response.Json()
|
||||||
|
if not IsAssociativeArray(json) or not json.DoesExist("formats")
|
||||||
|
error = "Invalid response from decipher service"
|
||||||
|
LogError(error)
|
||||||
|
throw error
|
||||||
|
end if
|
||||||
|
|
||||||
|
decipheredFormats = json["formats"]
|
||||||
|
if not IsArray(decipheredFormats) or decipheredFormats.Count() <> adaptiveFormats.Count()
|
||||||
|
error = "Invalid formats in deciphered response"
|
||||||
|
LogError(error)
|
||||||
|
throw error
|
||||||
|
end if
|
||||||
|
|
||||||
|
for i = 0 to decipheredFormats.Count() - 1
|
||||||
|
fmt = adaptiveFormats[i]
|
||||||
|
decipheredFmt = decipheredFormats[i]
|
||||||
|
|
||||||
|
fmt["url"] = decipheredFmt["url"]
|
||||||
|
end for
|
||||||
|
|
||||||
|
return adaptiveFormats
|
||||||
|
end function
|
||||||
|
|
||||||
|
function ParseIsLoggedIn(payload as object) as boolean
|
||||||
|
trackingParams = ObjectUtils.Dig(payload, ["responseContext", "serviceTrackingParams"])
|
||||||
|
if not IsArray(trackingParams)
|
||||||
|
return false
|
||||||
|
end if
|
||||||
|
for each trackingParam in trackingParams
|
||||||
|
if not IsAssociativeArray(trackingParam)
|
||||||
|
continue for
|
||||||
|
end if
|
||||||
|
|
||||||
|
params = trackingParam["params"]
|
||||||
|
if not IsArray(params)
|
||||||
|
continue for
|
||||||
|
end if
|
||||||
|
|
||||||
|
for each param in params
|
||||||
|
if not IsAssociativeArray(param)
|
||||||
|
continue for
|
||||||
|
end if
|
||||||
|
|
||||||
|
if param["key"] = "logged_in" and param["value"] = "1"
|
||||||
|
return true
|
||||||
|
end if
|
||||||
|
end for
|
||||||
|
end for
|
||||||
|
return false
|
||||||
|
end function
|
||||||
|
|
||||||
|
function ParsePlaybackTrackingUrls(payload as object, isLoggedIn as boolean) as object
|
||||||
|
if not isLoggedIn
|
||||||
|
return invalid
|
||||||
|
end if
|
||||||
|
|
||||||
|
playbackTracking = payload["playbackTracking"]
|
||||||
|
if not IsAssociativeArray(playbackTracking)
|
||||||
|
return invalid
|
||||||
|
end if
|
||||||
|
|
||||||
|
return {
|
||||||
|
"videostatsPlaybackUrl": ObjectUtils.Dig(playbackTracking, ["videostatsPlaybackUrl", "baseUrl"])
|
||||||
|
"videostatsWatchtimeUrl": ObjectUtils.Dig(playbackTracking, ["videostatsWatchtimeUrl", "baseUrl"])
|
||||||
|
}
|
||||||
|
end function
|
||||||
end namespace
|
end namespace
|
||||||
@@ -38,7 +38,7 @@ namespace Innertube
|
|||||||
request.Cancellation(cancellation)
|
request.Cancellation(cancellation)
|
||||||
if raw
|
if raw
|
||||||
request.NoCache()
|
request.NoCache()
|
||||||
request.LogCurlCommand()
|
request.LogCurlCommand(true)
|
||||||
end if
|
end if
|
||||||
|
|
||||||
response = request.Await()
|
response = request.Await()
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ class LoungeApi
|
|||||||
commandHandlers[COMMAND_TYPE_VOICE_COMMAND] = m.HandleIgnoreCommand
|
commandHandlers[COMMAND_TYPE_VOICE_COMMAND] = m.HandleIgnoreCommand
|
||||||
commandHandlers[COMMAND_TYPE_ON_USER_ACTIVITY] = m.HandleIgnoreCommand
|
commandHandlers[COMMAND_TYPE_ON_USER_ACTIVITY] = m.HandleIgnoreCommand
|
||||||
commandHandlers[COMMAND_TYPE_REMOTE_DISCONNECTED] = m.HandleIgnoreCommand
|
commandHandlers[COMMAND_TYPE_REMOTE_DISCONNECTED] = m.HandleIgnoreCommand
|
||||||
|
commandHandlers[COMMAND_TYPE_GET_DISCOVERT_DEVICE_ID] = m.HandleIgnoreCommand
|
||||||
|
|
||||||
commandHandlers[COMMAND_TYPE_GET_NOW_PLAYING] = m.HandleGetPlayingNow
|
commandHandlers[COMMAND_TYPE_GET_NOW_PLAYING] = m.HandleGetPlayingNow
|
||||||
commandHandlers[COMMAND_TYPE_SESSION_ID] = m.HandleSessionId
|
commandHandlers[COMMAND_TYPE_SESSION_ID] = m.HandleSessionId
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ const COMMAND_TYPE_DPAD_COMMAND = "dpadCommand"
|
|||||||
const COMMAND_TYPE_VOICE_COMMAND = "voiceCommand"
|
const COMMAND_TYPE_VOICE_COMMAND = "voiceCommand"
|
||||||
const COMMAND_TYPE_SET_SUBTITLES = "setSubtitlesTrack"
|
const COMMAND_TYPE_SET_SUBTITLES = "setSubtitlesTrack"
|
||||||
const COMMAND_TYPE_ON_USER_ACTIVITY = "onUserActivity"
|
const COMMAND_TYPE_ON_USER_ACTIVITY = "onUserActivity"
|
||||||
|
const COMMAND_TYPE_GET_DISCOVERT_DEVICE_ID = "getDiscoveryDeviceId"
|
||||||
' Special commands
|
' Special commands
|
||||||
const COMMAND_TYPE_SESSION_ID = "c"
|
const COMMAND_TYPE_SESSION_ID = "c"
|
||||||
const COMMAND_TYPE_G_SESSION_ID = "S"
|
const COMMAND_TYPE_G_SESSION_ID = "S"
|
||||||
|
|||||||
@@ -0,0 +1,62 @@
|
|||||||
|
import "pkg:/source/services/HttpClient.bs"
|
||||||
|
|
||||||
|
const SENTRY_ENVELOPE_URL = "https://o4509923566288896.ingest.us.sentry.io/api/4509923579265024/envelope/"
|
||||||
|
const SENTRY_KEY = "0bda23ffe3634745f57a0edbffdd18be"
|
||||||
|
|
||||||
|
namespace Sentry
|
||||||
|
|
||||||
|
function SendLogEvent(level as string, message as string, tags as object) as void
|
||||||
|
eventId = GenerateEventId()
|
||||||
|
timestamp = CreateObject("roDateTime").ToISOString()
|
||||||
|
|
||||||
|
header = FormatJson({
|
||||||
|
event_id: eventId
|
||||||
|
sent_at: timestamp
|
||||||
|
sdk: {
|
||||||
|
name: "sentry.roku.playlet"
|
||||||
|
version: "1.0.0"
|
||||||
|
}
|
||||||
|
})
|
||||||
|
event = `{"type":"event"}`
|
||||||
|
eventPayload = FormatJson({
|
||||||
|
event_id: eventId
|
||||||
|
timestamp: timestamp
|
||||||
|
platform: "roku"
|
||||||
|
#if DEBUG
|
||||||
|
environment: "development"
|
||||||
|
#else
|
||||||
|
environment: "production"
|
||||||
|
#end if
|
||||||
|
tags: tags
|
||||||
|
level: level
|
||||||
|
logentry: {
|
||||||
|
formatted: message
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
payload = header + `\n` + event + `\n` + eventPayload
|
||||||
|
|
||||||
|
request = HttpClient.Post(SENTRY_ENVELOPE_URL, payload)
|
||||||
|
request.QueryParam("sentry_key", SENTRY_KEY)
|
||||||
|
request.Header("Content-Type", "text/plain;charset=UTF-8")
|
||||||
|
response = request.Await()
|
||||||
|
if not response.IsSuccess()
|
||||||
|
#if DEBUG
|
||||||
|
LogInfo("Failed to send event to Sentry:", response.ErrorMessage())
|
||||||
|
#end if
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
|
LogDebug("Sent event to Sentry with ID:", eventId, "Response:", response.Text())
|
||||||
|
end function
|
||||||
|
|
||||||
|
function GenerateEventId() as string
|
||||||
|
hexChars = "0123456789abcdef"
|
||||||
|
eventId = ""
|
||||||
|
for i = 0 to 31
|
||||||
|
eventId = eventId + hexChars.Mid(rnd(16) - 1, 1)
|
||||||
|
end for
|
||||||
|
return eventId
|
||||||
|
end function
|
||||||
|
|
||||||
|
end namespace
|
||||||
@@ -0,0 +1,75 @@
|
|||||||
|
import "pkg:/components/Telemetry/Sentry.bs"
|
||||||
|
import "pkg:/source/utils/Logging.bs"
|
||||||
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
|
function Init() as void
|
||||||
|
if m.global.telemetry <> invalid
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
m.global.addFields({ telemetry: m.top })
|
||||||
|
m.top.functionName = "TelemetryLoop"
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnNodeReady() as void
|
||||||
|
m.tags = GetTags()
|
||||||
|
m.top.ObserveField("enabled", FuncName(OnEnabledChanged))
|
||||||
|
m.preferences.ObserveFieldScoped("dev.diagnostics.enabled", FuncName(OnPreferencesChanged))
|
||||||
|
enabled = m.preferences["dev.diagnostics.enabled"]
|
||||||
|
OnPreferencesChanged({
|
||||||
|
enabled: enabled
|
||||||
|
getData: function() as boolean
|
||||||
|
return m.enabled
|
||||||
|
end function
|
||||||
|
})
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnPreferencesChanged(event as object) as void
|
||||||
|
m.top.enabled = event.getData()
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnEnabledChanged(event as object) as void
|
||||||
|
enabled = event.getData()
|
||||||
|
LogInfo("Telemetry enabled:", enabled)
|
||||||
|
if enabled
|
||||||
|
m.top.control = "run"
|
||||||
|
else
|
||||||
|
m.top.control = "stop"
|
||||||
|
end if
|
||||||
|
end function
|
||||||
|
|
||||||
|
function TelemetryLoop() as void
|
||||||
|
msgPort = CreateObject("roMessagePort")
|
||||||
|
m.top.observeField("LogInfo", msgPort)
|
||||||
|
m.top.observeField("LogWarn", msgPort)
|
||||||
|
m.top.observeField("LogError", msgPort)
|
||||||
|
|
||||||
|
levelMap = {
|
||||||
|
"LogInfo": "info"
|
||||||
|
"LogWarn": "warning"
|
||||||
|
"LogError": "error"
|
||||||
|
}
|
||||||
|
|
||||||
|
while true
|
||||||
|
msg = wait(0, msgPort)
|
||||||
|
msgType = type(msg)
|
||||||
|
|
||||||
|
if msgType = "roSGNodeEvent"
|
||||||
|
level = levelMap[msg.getField()]
|
||||||
|
if level <> invalid
|
||||||
|
Sentry.SendLogEvent(level, msg.getData(), m.tags)
|
||||||
|
end if
|
||||||
|
end if
|
||||||
|
end while
|
||||||
|
end function
|
||||||
|
|
||||||
|
function GetTags() as object
|
||||||
|
appInfo = m.applicationInfo
|
||||||
|
tags = appInfo@.GetAppInfo()
|
||||||
|
tags.Append(appInfo@.GetDeviceInfo())
|
||||||
|
for each key in tags
|
||||||
|
if not IsString(tags[key])
|
||||||
|
tags[key] = ToString(tags[key])
|
||||||
|
end if
|
||||||
|
end for
|
||||||
|
return tags
|
||||||
|
end function
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
<component name="Telemetry" extends="Task" includes="AutoBind">
|
||||||
|
<interface>
|
||||||
|
<field id="enabled" type="boolean" />
|
||||||
|
<field id="applicationInfo" type="node" />
|
||||||
|
<field id="preferences" type="node" />
|
||||||
|
<field id="LogInfo" type="string" alwaysNotify="true" />
|
||||||
|
<field id="LogWarn" type="string" alwaysNotify="true" />
|
||||||
|
<field id="LogError" type="string" alwaysNotify="true" />
|
||||||
|
</interface>
|
||||||
|
</component>
|
||||||
@@ -241,7 +241,11 @@ end function
|
|||||||
|
|
||||||
function HandleFeedLoadErrorDialog(error as object, isCancelled as boolean, rowList as object) as void
|
function HandleFeedLoadErrorDialog(error as object, isCancelled as boolean, rowList as object) as void
|
||||||
error = ErrorUtils.Format(error)
|
error = ErrorUtils.Format(error)
|
||||||
LogError(error)
|
if isCancelled
|
||||||
|
LogInfo(error)
|
||||||
|
else
|
||||||
|
LogError(error)
|
||||||
|
end if
|
||||||
rowList.onError = error
|
rowList.onError = error
|
||||||
if rowList.hasField("dispose") and rowList.dispose
|
if rowList.hasField("dispose") and rowList.dispose
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ function ExecuteJob() as void
|
|||||||
invidiousNode = input.invidious
|
invidiousNode = input.invidious
|
||||||
authToken = input.authToken
|
authToken = input.authToken
|
||||||
profileType = input.profileType
|
profileType = input.profileType
|
||||||
|
playbackTrackingUrls = input.playbackTrackingUrls
|
||||||
|
|
||||||
cancellation = CancellationUtils.CreateCancellation(JobGetCallbackNode(), "cancel", true)
|
cancellation = CancellationUtils.CreateCancellation(JobGetCallbackNode(), "cancel", true)
|
||||||
|
|
||||||
@@ -24,11 +25,13 @@ function ExecuteJob() as void
|
|||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
|
|
||||||
playbackTrackingUrls = InnertubeService.AuthGetPlaybackTrackingUrls(videoId, {
|
if playbackTrackingUrls = invalid or StringUtils.IsNullOrEmpty(playbackTrackingUrls.videostatsPlaybackUrl) or StringUtils.IsNullOrEmpty(playbackTrackingUrls.videostatsWatchtimeUrl)
|
||||||
accessToken: authToken.token
|
playbackTrackingUrls = InnertubeService.AuthGetPlaybackTrackingUrls(videoId, {
|
||||||
onBehalfOfUser: authToken.activeIdentifyToken
|
accessToken: authToken.token
|
||||||
cancellation: cancellation
|
onBehalfOfUser: authToken.activeIdentifyToken
|
||||||
})
|
cancellation: cancellation
|
||||||
|
})
|
||||||
|
end if
|
||||||
|
|
||||||
if playbackTrackingUrls.error <> invalid
|
if playbackTrackingUrls.error <> invalid
|
||||||
JobError(`Failed to get playback tracking URLs: ${playbackTrackingUrls.error}`)
|
JobError(`Failed to get playback tracking URLs: ${playbackTrackingUrls.error}`)
|
||||||
|
|||||||
@@ -43,10 +43,21 @@ function ExecuteJob() as void
|
|||||||
visitorData = message.getData()
|
visitorData = message.getData()
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
accessToken = invalid
|
||||||
|
onBehalfOfUser = invalid
|
||||||
|
authToken = invidiousNode.authToken
|
||||||
|
if authToken <> invalid and authToken.profileNode <> invalid and authToken.profileNode.type = "youtube" and not StringUtils.IsNullOrEmpty(authToken.token)
|
||||||
|
accessToken = authToken.token
|
||||||
|
onBehalfOfUser = authToken.activeIdentifyToken
|
||||||
|
end if
|
||||||
|
|
||||||
metadata = InnertubeService.GetVideoMetadata(contentNode.videoId, {
|
metadata = InnertubeService.GetVideoMetadata(contentNode.videoId, {
|
||||||
"cancellation": cancellation
|
"cancellation": cancellation
|
||||||
"credentialTransferToken": loungeServiceNode.credentialTransferToken
|
"credentialTransferToken": loungeServiceNode.credentialTransferToken
|
||||||
"visitorData": visitorData
|
"visitorData": visitorData
|
||||||
|
"accessToken": accessToken
|
||||||
|
"onBehalfOfUser": onBehalfOfUser
|
||||||
|
"signatureTimestamp": true
|
||||||
})
|
})
|
||||||
else
|
else
|
||||||
metadata = service.GetVideoMetadata(contentNode.videoId, { cancellation: m.top.cancellation })
|
metadata = service.GetVideoMetadata(contentNode.videoId, { cancellation: m.top.cancellation })
|
||||||
@@ -86,6 +97,7 @@ function ExecuteJob() as void
|
|||||||
playletStreamUrlIndex: 0
|
playletStreamUrlIndex: 0
|
||||||
})
|
})
|
||||||
|
|
||||||
|
LogDebug("Setting first url:", streamUrls[0])
|
||||||
contentNode.url = streamUrls[0]
|
contentNode.url = streamUrls[0]
|
||||||
|
|
||||||
SetCaptions(metadata, service, contentNode)
|
SetCaptions(metadata, service, contentNode)
|
||||||
@@ -149,7 +161,6 @@ function AddDashUrls(streamUrls as object, metadata as object, preferredQuality
|
|||||||
' dynamically generating the DASH manifest, and filter quality
|
' dynamically generating the DASH manifest, and filter quality
|
||||||
dashUrl = UrlUtils.AppendQueryParams(`http://127.0.0.1:${playletServerPort}/api/dash`, {
|
dashUrl = UrlUtils.AppendQueryParams(`http://127.0.0.1:${playletServerPort}/api/dash`, {
|
||||||
v: metadata.videoId
|
v: metadata.videoId
|
||||||
ytjs: ValidBool(metadata.ytjs)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
dashUrlLocal = invalid
|
dashUrlLocal = invalid
|
||||||
|
|||||||
@@ -201,12 +201,13 @@ function OnVideoContentJobDone(event as object) as void
|
|||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
|
|
||||||
SponsorBlock.FetchSponsorBlock(content.metadata)
|
metadata = content.metadata
|
||||||
|
SponsorBlock.FetchSponsorBlock(metadata)
|
||||||
|
|
||||||
SeekToInitialPosition(content)
|
SeekToInitialPosition(content)
|
||||||
|
|
||||||
PlayAfterPreviousPlayerHasStopped()
|
PlayAfterPreviousPlayerHasStopped()
|
||||||
MarkVideoWatched(content.videoId)
|
MarkVideoWatched(content.videoId, metadata.playbackTrackingUrls)
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function SeekToInitialPosition(content as object) as void
|
function SeekToInitialPosition(content as object) as void
|
||||||
@@ -322,7 +323,7 @@ function OnVideoContentJobErrorDialogResponse(event as object)
|
|||||||
Lounge.SendOnStateChange()
|
Lounge.SendOnStateChange()
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function MarkVideoWatched(videoId as dynamic) as void
|
function MarkVideoWatched(videoId as dynamic, playbackTrackingUrls as dynamic) as void
|
||||||
if StringUtils.IsNullOrEmpty(videoId)
|
if StringUtils.IsNullOrEmpty(videoId)
|
||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
@@ -344,6 +345,7 @@ function MarkVideoWatched(videoId as dynamic) as void
|
|||||||
invidious: invidious
|
invidious: invidious
|
||||||
authToken: authToken
|
authToken: authToken
|
||||||
profileType: profileType
|
profileType: profileType
|
||||||
|
playbackTrackingUrls: playbackTrackingUrls
|
||||||
}
|
}
|
||||||
|
|
||||||
m.markVideoWatchedJob = JobSystem.CreateCallback()
|
m.markVideoWatchedJob = JobSystem.CreateCallback()
|
||||||
|
|||||||
@@ -26,39 +26,20 @@ namespace Http
|
|||||||
v = request.query.v
|
v = request.query.v
|
||||||
local = request.query.local
|
local = request.query.local
|
||||||
quality = request.query.quality
|
quality = request.query.quality
|
||||||
ytjs = request.query.ytjs
|
|
||||||
|
|
||||||
if StringUtils.IsNullOrEmpty(v)
|
if StringUtils.IsNullOrEmpty(v)
|
||||||
response.Default(400, "Missing video id")
|
response.Default(400, "Missing video id")
|
||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if ValidString(ytjs) = "true"
|
metadata = ObjectUtils.DigUnsafe(m.videoQueueNode, ["player", "content", "metadata"])
|
||||||
player = m.videoQueueNode.player
|
if not IsAssociativeArray(metadata)
|
||||||
if player = invalid
|
response.Default(500, "videoQueue.player.content.metadata is invalid")
|
||||||
response.Default(500, "videoQueue.player is invalid")
|
return true
|
||||||
return true
|
end if
|
||||||
end if
|
if metadata.videoId <> v
|
||||||
content = player.content
|
response.Default(400, "videoQueue.player.content.metadata.videoId does not match the requested video id")
|
||||||
if content = invalid
|
return true
|
||||||
response.Default(500, "videoQueue.player.content is invalid")
|
|
||||||
return true
|
|
||||||
end if
|
|
||||||
metadata = content.metadata
|
|
||||||
if not IsAssociativeArray(metadata)
|
|
||||||
response.Default(500, "videoQueue.player.content.metadata is invalid")
|
|
||||||
return true
|
|
||||||
end if
|
|
||||||
if metadata.videoId <> v
|
|
||||||
response.Default(400, "videoQueue.playVideo.metadata.videoId does not match the requested video id")
|
|
||||||
return true
|
|
||||||
end if
|
|
||||||
else
|
|
||||||
metadata = m.invidiousService.GetVideoMetadata(v)
|
|
||||||
if metadata.error <> invalid
|
|
||||||
response.Default(500, metadata.error)
|
|
||||||
return true
|
|
||||||
end if
|
|
||||||
end if
|
end if
|
||||||
|
|
||||||
m.dashManifest.invidiousInstance = m.invidiousService.GetInstance()
|
m.dashManifest.invidiousInstance = m.invidiousService.GetInstance()
|
||||||
|
|||||||
@@ -83,7 +83,6 @@ namespace Http
|
|||||||
|
|
||||||
req = HttpClient.Post("https://www.youtube.com/api/lounge/pairing/register_pairing_code", "")
|
req = HttpClient.Post("https://www.youtube.com/api/lounge/pairing/register_pairing_code", "")
|
||||||
req.UrlEncodedForm({
|
req.UrlEncodedForm({
|
||||||
"app": "Playlet"
|
|
||||||
"pairing_code": pairingCode
|
"pairing_code": pairingCode
|
||||||
"screen_id": m.loungeService.screenId
|
"screen_id": m.loungeService.screenId
|
||||||
"screen_name": m.deviceName
|
"screen_name": m.deviceName
|
||||||
|
|||||||
+3
@@ -9,6 +9,7 @@ namespace Http
|
|||||||
super()
|
super()
|
||||||
|
|
||||||
m.innertube = server.sceneNodes.innertube
|
m.innertube = server.sceneNodes.innertube
|
||||||
|
m.loungeService = server.sceneNodes.loungeService
|
||||||
m.preferences = server.sceneNodes.preferences
|
m.preferences = server.sceneNodes.preferences
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@@ -590,6 +591,8 @@ namespace Http
|
|||||||
}
|
}
|
||||||
end if
|
end if
|
||||||
else
|
else
|
||||||
|
options["signatureTimestamp"] = true
|
||||||
|
options["credentialTransferToken"] = m.loungeService.credentialTransferToken
|
||||||
metadata = InnertubeService.GetVideoMetadata(videoId, options)
|
metadata = InnertubeService.GetVideoMetadata(videoId, options)
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
|||||||
@@ -54,12 +54,7 @@ namespace Http
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
if keysDict["device"] = true
|
if keysDict["device"] = true
|
||||||
deviceInfo = m.applicationInfoNode@.GetDeviceInfo()
|
state["device"] = m.applicationInfoNode@.GetDeviceInfo()
|
||||||
' We do not currently have translations for en_CA
|
|
||||||
if deviceInfo.current_locale = "en_CA"
|
|
||||||
deviceInfo.current_locale = "en_US"
|
|
||||||
end if
|
|
||||||
state["device"] = deviceInfo
|
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if keysDict["invidious"] = true
|
if keysDict["invidious"] = true
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ namespace Http
|
|||||||
if m.socket.eSuccess()
|
if m.socket.eSuccess()
|
||||||
LogDebug(op + " peer closed @" + m.client)
|
LogDebug(op + " peer closed @" + m.client)
|
||||||
else
|
else
|
||||||
LogError(op + " transfer error @" + m.client, m.socket.status())
|
LogInfo(op + " transfer error @" + m.client, m.socket.status())
|
||||||
end if
|
end if
|
||||||
m.close = true
|
m.close = true
|
||||||
m.SetState(Http.HttpConnectionState.DONE)
|
m.SetState(Http.HttpConnectionState.DONE)
|
||||||
|
|||||||
@@ -297,6 +297,13 @@
|
|||||||
visibility: "tv",
|
visibility: "tv",
|
||||||
rokuComponent: "ClearCacheControl",
|
rokuComponent: "ClearCacheControl",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayText: "Enable Diagnostics",
|
||||||
|
key: "dev.diagnostics.enabled",
|
||||||
|
description: "Help improve Playlet by enabling diagnostics. This will send anonymous diagnotics data to the developer.",
|
||||||
|
type: "boolean",
|
||||||
|
defaultValue: true,
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
@@ -2,8 +2,8 @@ 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=40
|
minor_version=41
|
||||||
build_version=00010
|
build_version=00001
|
||||||
|
|
||||||
ui_resolutions=hd
|
ui_resolutions=hd
|
||||||
uri_resolution_autosub=$$RES$$,480p,720p,1080p
|
uri_resolution_autosub=$$RES$$,480p,720p,1080p
|
||||||
|
|||||||
@@ -294,8 +294,8 @@ namespace HttpClient
|
|||||||
return m
|
return m
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function LogCurlCommand() as HttpRequest
|
function LogCurlCommand(doLog as boolean) as HttpRequest
|
||||||
m._logCurlCommand = true
|
m._logCurlCommand = doLog
|
||||||
return m
|
return m
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@@ -378,7 +378,9 @@ namespace HttpClient
|
|||||||
LogInfo("Sending", m._method, m.urlTransfer.GetURL(), "ID:", m.urlTransfer.GetIdentity())
|
LogInfo("Sending", m._method, m.urlTransfer.GetURL(), "ID:", m.urlTransfer.GetIdentity())
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
LogDebug(`======== curl command ========\n${m.ToCurlCommand()}\n==============================`)
|
if m._logCurlCommand <> false
|
||||||
|
LogDebug(`======== curl command ========\n${m.ToCurlCommand()}\n==============================`)
|
||||||
|
end if
|
||||||
#else
|
#else
|
||||||
if m._logCurlCommand = true
|
if m._logCurlCommand = true
|
||||||
LogInfo(`======== curl command ========\n${m.ToCurlCommand()}\n==============================`)
|
LogInfo(`======== curl command ========\n${m.ToCurlCommand()}\n==============================`)
|
||||||
|
|||||||
@@ -22,6 +22,19 @@ namespace ObjectUtils
|
|||||||
return obj
|
return obj
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
function DigUnsafe(obj as object, keys as object) as object
|
||||||
|
for each key in keys
|
||||||
|
if obj <> invalid
|
||||||
|
obj = obj[key]
|
||||||
|
continue for
|
||||||
|
end if
|
||||||
|
|
||||||
|
return invalid
|
||||||
|
end for
|
||||||
|
|
||||||
|
return obj
|
||||||
|
end function
|
||||||
|
|
||||||
function DigWithDefault(obj as object, keys as object, defaultValue as dynamic) as dynamic
|
function DigWithDefault(obj as object, keys as object, defaultValue as dynamic) as dynamic
|
||||||
result = Dig(obj, keys)
|
result = Dig(obj, keys)
|
||||||
if result = invalid
|
if result = invalid
|
||||||
|
|||||||
Generated
+441
-143
@@ -1,35 +1,36 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-web",
|
"name": "playlet-web",
|
||||||
"version": "0.40.10",
|
"version": "0.41.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet-web",
|
"name": "playlet-web",
|
||||||
"version": "0.40.10",
|
"version": "0.41.1",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sveltejs/vite-plugin-svelte": "^6.1.0",
|
"@sveltejs/vite-plugin-svelte": "^6.1.3",
|
||||||
"@tailwindcss/typography": "^0.5.16",
|
"@tailwindcss/typography": "^0.5.16",
|
||||||
"@tsconfig/svelte": "^5.0.4",
|
"@tsconfig/svelte": "^5.0.5",
|
||||||
"@vitejs/plugin-legacy": "^7.0.1",
|
"@vitejs/plugin-legacy": "^7.2.1",
|
||||||
"autoprefixer": "^10.4.21",
|
"autoprefixer": "^10.4.21",
|
||||||
"bgutils-js": "^3.2.0",
|
"bgutils-js": "^3.2.0",
|
||||||
"daisyui": "^4.12.23",
|
"daisyui": "^4.12.23",
|
||||||
"dotenv": "^17.2.0",
|
"dotenv": "^17.2.1",
|
||||||
"ip": "^2.0.1",
|
"ip": "^2.0.1",
|
||||||
"jszip": "^3.10.1",
|
"jszip": "^3.10.1",
|
||||||
"postcss": "^8.5.6",
|
"postcss": "^8.5.6",
|
||||||
"svelte": "^5.36.8",
|
"rollup-plugin-visualizer": "^6.0.3",
|
||||||
"svelte-check": "^4.3.0",
|
"svelte": "^5.38.2",
|
||||||
|
"svelte-check": "^4.3.1",
|
||||||
"svelte-preprocess": "^6.0.3",
|
"svelte-preprocess": "^6.0.3",
|
||||||
"tailwindcss": "^3.4.17",
|
"tailwindcss": "^3.4.17",
|
||||||
"terser": "^5.43.1",
|
"terser": "^5.43.1",
|
||||||
"tslib": "^2.8.1",
|
"tslib": "^2.8.1",
|
||||||
"typescript": "^5.8.3",
|
"typescript": "^5.9.2",
|
||||||
"vite": "^7.0.5",
|
"vite": "^7.1.3",
|
||||||
"vite-plugin-compression": "^0.5.1",
|
"vite-plugin-compression": "^0.5.1",
|
||||||
"vite-tsconfig-paths": "^5.1.4",
|
"vite-tsconfig-paths": "^5.1.4",
|
||||||
"youtubei.js": "^15.0.0"
|
"youtubei.js": "^15.0.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@alloc/quick-lru": {
|
"node_modules/@alloc/quick-lru": {
|
||||||
@@ -2031,6 +2032,17 @@
|
|||||||
"@jridgewell/trace-mapping": "^0.3.24"
|
"@jridgewell/trace-mapping": "^0.3.24"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@jridgewell/remapping": {
|
||||||
|
"version": "2.3.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",
|
||||||
|
"integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@jridgewell/gen-mapping": "^0.3.5",
|
||||||
|
"@jridgewell/trace-mapping": "^0.3.24"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@jridgewell/resolve-uri": {
|
"node_modules/@jridgewell/resolve-uri": {
|
||||||
"version": "3.1.2",
|
"version": "3.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
|
||||||
@@ -2113,9 +2125,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-android-arm-eabi": {
|
"node_modules/@rollup/rollup-android-arm-eabi": {
|
||||||
"version": "4.40.0",
|
"version": "4.47.1",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.40.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.47.1.tgz",
|
||||||
"integrity": "sha512-+Fbls/diZ0RDerhE8kyC6hjADCXA1K4yVNlH0EYfd2XjyH0UGgzaQ8MlT0pCXAThfxv3QUAczHaL+qSv1E4/Cg==",
|
"integrity": "sha512-lTahKRJip0knffA/GTNFJMrToD+CM+JJ+Qt5kjzBK/sFQ0EWqfKW3AYQSlZXN98tX0lx66083U9JYIMioMMK7g==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm"
|
"arm"
|
||||||
],
|
],
|
||||||
@@ -2127,9 +2139,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-android-arm64": {
|
"node_modules/@rollup/rollup-android-arm64": {
|
||||||
"version": "4.40.0",
|
"version": "4.47.1",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.40.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.47.1.tgz",
|
||||||
"integrity": "sha512-PPA6aEEsTPRz+/4xxAmaoWDqh67N7wFbgFUJGMnanCFs0TV99M0M8QhhaSCks+n6EbQoFvLQgYOGXxlMGQe/6w==",
|
"integrity": "sha512-uqxkb3RJLzlBbh/bbNQ4r7YpSZnjgMgyoEOY7Fy6GCbelkDSAzeiogxMG9TfLsBbqmGsdDObo3mzGqa8hps4MA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -2141,9 +2153,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-darwin-arm64": {
|
"node_modules/@rollup/rollup-darwin-arm64": {
|
||||||
"version": "4.40.0",
|
"version": "4.47.1",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.40.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.47.1.tgz",
|
||||||
"integrity": "sha512-GwYOcOakYHdfnjjKwqpTGgn5a6cUX7+Ra2HeNj/GdXvO2VJOOXCiYYlRFU4CubFM67EhbmzLOmACKEfvp3J1kQ==",
|
"integrity": "sha512-tV6reObmxBDS4DDyLzTDIpymthNlxrLBGAoQx6m2a7eifSNEZdkXQl1PE4ZjCkEDPVgNXSzND/k9AQ3mC4IOEQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -2155,9 +2167,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-darwin-x64": {
|
"node_modules/@rollup/rollup-darwin-x64": {
|
||||||
"version": "4.40.0",
|
"version": "4.47.1",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.40.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.47.1.tgz",
|
||||||
"integrity": "sha512-CoLEGJ+2eheqD9KBSxmma6ld01czS52Iw0e2qMZNpPDlf7Z9mj8xmMemxEucinev4LgHalDPczMyxzbq+Q+EtA==",
|
"integrity": "sha512-XuJRPTnMk1lwsSnS3vYyVMu4x/+WIw1MMSiqj5C4j3QOWsMzbJEK90zG+SWV1h0B1ABGCQ0UZUjti+TQK35uHQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -2169,9 +2181,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-freebsd-arm64": {
|
"node_modules/@rollup/rollup-freebsd-arm64": {
|
||||||
"version": "4.40.0",
|
"version": "4.47.1",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.40.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.47.1.tgz",
|
||||||
"integrity": "sha512-r7yGiS4HN/kibvESzmrOB/PxKMhPTlz+FcGvoUIKYoTyGd5toHp48g1uZy1o1xQvybwwpqpe010JrcGG2s5nkg==",
|
"integrity": "sha512-79BAm8Ag/tmJ5asCqgOXsb3WY28Rdd5Lxj8ONiQzWzy9LvWORd5qVuOnjlqiWWZJw+dWewEktZb5yiM1DLLaHw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -2183,9 +2195,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-freebsd-x64": {
|
"node_modules/@rollup/rollup-freebsd-x64": {
|
||||||
"version": "4.40.0",
|
"version": "4.47.1",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.40.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.47.1.tgz",
|
||||||
"integrity": "sha512-mVDxzlf0oLzV3oZOr0SMJ0lSDd3xC4CmnWJ8Val8isp9jRGl5Dq//LLDSPFrasS7pSm6m5xAcKaw3sHXhBjoRw==",
|
"integrity": "sha512-OQ2/ZDGzdOOlyfqBiip0ZX/jVFekzYrGtUsqAfLDbWy0jh1PUU18+jYp8UMpqhly5ltEqotc2miLngf9FPSWIA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -2197,9 +2209,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-arm-gnueabihf": {
|
"node_modules/@rollup/rollup-linux-arm-gnueabihf": {
|
||||||
"version": "4.40.0",
|
"version": "4.47.1",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.40.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.47.1.tgz",
|
||||||
"integrity": "sha512-y/qUMOpJxBMy8xCXD++jeu8t7kzjlOCkoxxajL58G62PJGBZVl/Gwpm7JK9+YvlB701rcQTzjUZ1JgUoPTnoQA==",
|
"integrity": "sha512-HZZBXJL1udxlCVvoVadstgiU26seKkHbbAMLg7680gAcMnRNP9SAwTMVet02ANA94kXEI2VhBnXs4e5nf7KG2A==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm"
|
"arm"
|
||||||
],
|
],
|
||||||
@@ -2211,9 +2223,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-arm-musleabihf": {
|
"node_modules/@rollup/rollup-linux-arm-musleabihf": {
|
||||||
"version": "4.40.0",
|
"version": "4.47.1",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.40.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.47.1.tgz",
|
||||||
"integrity": "sha512-GoCsPibtVdJFPv/BOIvBKO/XmwZLwaNWdyD8TKlXuqp0veo2sHE+A/vpMQ5iSArRUz/uaoj4h5S6Pn0+PdhRjg==",
|
"integrity": "sha512-sZ5p2I9UA7T950JmuZ3pgdKA6+RTBr+0FpK427ExW0t7n+QwYOcmDTK/aRlzoBrWyTpJNlS3kacgSlSTUg6P/Q==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm"
|
"arm"
|
||||||
],
|
],
|
||||||
@@ -2225,9 +2237,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-arm64-gnu": {
|
"node_modules/@rollup/rollup-linux-arm64-gnu": {
|
||||||
"version": "4.40.0",
|
"version": "4.47.1",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.40.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.47.1.tgz",
|
||||||
"integrity": "sha512-L5ZLphTjjAD9leJzSLI7rr8fNqJMlGDKlazW2tX4IUF9P7R5TMQPElpH82Q7eNIDQnQlAyiNVfRPfP2vM5Avvg==",
|
"integrity": "sha512-3hBFoqPyU89Dyf1mQRXCdpc6qC6At3LV6jbbIOZd72jcx7xNk3aAp+EjzAtN6sDlmHFzsDJN5yeUySvorWeRXA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -2239,9 +2251,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-arm64-musl": {
|
"node_modules/@rollup/rollup-linux-arm64-musl": {
|
||||||
"version": "4.40.0",
|
"version": "4.47.1",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.40.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.47.1.tgz",
|
||||||
"integrity": "sha512-ATZvCRGCDtv1Y4gpDIXsS+wfFeFuLwVxyUBSLawjgXK2tRE6fnsQEkE4csQQYWlBlsFztRzCnBvWVfcae/1qxQ==",
|
"integrity": "sha512-49J4FnMHfGodJWPw73Ve+/hsPjZgcXQGkmqBGZFvltzBKRS+cvMiWNLadOMXKGnYRhs1ToTGM0sItKISoSGUNA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -2253,9 +2265,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-loongarch64-gnu": {
|
"node_modules/@rollup/rollup-linux-loongarch64-gnu": {
|
||||||
"version": "4.40.0",
|
"version": "4.47.1",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.40.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.47.1.tgz",
|
||||||
"integrity": "sha512-wG9e2XtIhd++QugU5MD9i7OnpaVb08ji3P1y/hNbxrQ3sYEelKJOq1UJ5dXczeo6Hj2rfDEL5GdtkMSVLa/AOg==",
|
"integrity": "sha512-4yYU8p7AneEpQkRX03pbpLmE21z5JNys16F1BZBZg5fP9rIlb0TkeQjn5du5w4agConCCEoYIG57sNxjryHEGg==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"loong64"
|
"loong64"
|
||||||
],
|
],
|
||||||
@@ -2266,10 +2278,10 @@
|
|||||||
"linux"
|
"linux"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-powerpc64le-gnu": {
|
"node_modules/@rollup/rollup-linux-ppc64-gnu": {
|
||||||
"version": "4.40.0",
|
"version": "4.47.1",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.40.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.47.1.tgz",
|
||||||
"integrity": "sha512-vgXfWmj0f3jAUvC7TZSU/m/cOE558ILWDzS7jBhiCAFpY2WEBn5jqgbqvmzlMjtp8KlLcBlXVD2mkTSEQE6Ixw==",
|
"integrity": "sha512-fAiq+J28l2YMWgC39jz/zPi2jqc0y3GSRo1yyxlBHt6UN0yYgnegHSRPa3pnHS5amT/efXQrm0ug5+aNEu9UuQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"ppc64"
|
"ppc64"
|
||||||
],
|
],
|
||||||
@@ -2281,9 +2293,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-riscv64-gnu": {
|
"node_modules/@rollup/rollup-linux-riscv64-gnu": {
|
||||||
"version": "4.40.0",
|
"version": "4.47.1",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.40.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.47.1.tgz",
|
||||||
"integrity": "sha512-uJkYTugqtPZBS3Z136arevt/FsKTF/J9dEMTX/cwR7lsAW4bShzI2R0pJVw+hcBTWF4dxVckYh72Hk3/hWNKvA==",
|
"integrity": "sha512-daoT0PMENNdjVYYU9xec30Y2prb1AbEIbb64sqkcQcSaR0zYuKkoPuhIztfxuqN82KYCKKrj+tQe4Gi7OSm1ow==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"riscv64"
|
"riscv64"
|
||||||
],
|
],
|
||||||
@@ -2295,9 +2307,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-riscv64-musl": {
|
"node_modules/@rollup/rollup-linux-riscv64-musl": {
|
||||||
"version": "4.40.0",
|
"version": "4.47.1",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.40.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.47.1.tgz",
|
||||||
"integrity": "sha512-rKmSj6EXQRnhSkE22+WvrqOqRtk733x3p5sWpZilhmjnkHkpeCgWsFFo0dGnUGeA+OZjRl3+VYq+HyCOEuwcxQ==",
|
"integrity": "sha512-JNyXaAhWtdzfXu5pUcHAuNwGQKevR+6z/poYQKVW+pLaYOj9G1meYc57/1Xv2u4uTxfu9qEWmNTjv/H/EpAisw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"riscv64"
|
"riscv64"
|
||||||
],
|
],
|
||||||
@@ -2309,9 +2321,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-s390x-gnu": {
|
"node_modules/@rollup/rollup-linux-s390x-gnu": {
|
||||||
"version": "4.40.0",
|
"version": "4.47.1",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.40.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.47.1.tgz",
|
||||||
"integrity": "sha512-SpnYlAfKPOoVsQqmTFJ0usx0z84bzGOS9anAC0AZ3rdSo3snecihbhFTlJZ8XMwzqAcodjFU4+/SM311dqE5Sw==",
|
"integrity": "sha512-U/CHbqKSwEQyZXjCpY43/GLYcTVKEXeRHw0rMBJP7fP3x6WpYG4LTJWR3ic6TeYKX6ZK7mrhltP4ppolyVhLVQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"s390x"
|
"s390x"
|
||||||
],
|
],
|
||||||
@@ -2323,9 +2335,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-x64-gnu": {
|
"node_modules/@rollup/rollup-linux-x64-gnu": {
|
||||||
"version": "4.40.0",
|
"version": "4.47.1",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.40.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.47.1.tgz",
|
||||||
"integrity": "sha512-RcDGMtqF9EFN8i2RYN2W+64CdHruJ5rPqrlYw+cgM3uOVPSsnAQps7cpjXe9be/yDp8UC7VLoCoKC8J3Kn2FkQ==",
|
"integrity": "sha512-uTLEakjxOTElfeZIGWkC34u2auLHB1AYS6wBjPGI00bWdxdLcCzK5awjs25YXpqB9lS8S0vbO0t9ZcBeNibA7g==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -2337,9 +2349,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-x64-musl": {
|
"node_modules/@rollup/rollup-linux-x64-musl": {
|
||||||
"version": "4.40.0",
|
"version": "4.47.1",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.40.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.47.1.tgz",
|
||||||
"integrity": "sha512-HZvjpiUmSNx5zFgwtQAV1GaGazT2RWvqeDi0hV+AtC8unqqDSsaFjPxfsO6qPtKRRg25SisACWnJ37Yio8ttaw==",
|
"integrity": "sha512-Ft+d/9DXs30BK7CHCTX11FtQGHUdpNDLJW0HHLign4lgMgBcPFN3NkdIXhC5r9iwsMwYreBBc4Rho5ieOmKNVQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -2351,9 +2363,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-win32-arm64-msvc": {
|
"node_modules/@rollup/rollup-win32-arm64-msvc": {
|
||||||
"version": "4.40.0",
|
"version": "4.47.1",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.40.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.47.1.tgz",
|
||||||
"integrity": "sha512-UtZQQI5k/b8d7d3i9AZmA/t+Q4tk3hOC0tMOMSq2GlMYOfxbesxG4mJSeDp0EHs30N9bsfwUvs3zF4v/RzOeTQ==",
|
"integrity": "sha512-N9X5WqGYzZnjGAFsKSfYFtAShYjwOmFJoWbLg3dYixZOZqU7hdMq+/xyS14zKLhFhZDhP9VfkzQnsdk0ZDS9IA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -2365,9 +2377,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-win32-ia32-msvc": {
|
"node_modules/@rollup/rollup-win32-ia32-msvc": {
|
||||||
"version": "4.40.0",
|
"version": "4.47.1",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.40.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.47.1.tgz",
|
||||||
"integrity": "sha512-+m03kvI2f5syIqHXCZLPVYplP8pQch9JHyXKZ3AGMKlg8dCyr2PKHjwRLiW53LTrN/Nc3EqHOKxUxzoSPdKddA==",
|
"integrity": "sha512-O+KcfeCORZADEY8oQJk4HK8wtEOCRE4MdOkb8qGZQNun3jzmj2nmhV/B/ZaaZOkPmJyvm/gW9n0gsB4eRa1eiQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"ia32"
|
"ia32"
|
||||||
],
|
],
|
||||||
@@ -2379,9 +2391,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-win32-x64-msvc": {
|
"node_modules/@rollup/rollup-win32-x64-msvc": {
|
||||||
"version": "4.40.0",
|
"version": "4.47.1",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.40.0.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.47.1.tgz",
|
||||||
"integrity": "sha512-lpPE1cLfP5oPzVjKMx10pgBmKELQnFJXHgvtHCtuJWOv8MxqdEIMNtgHgBFf7Ea2/7EuVwa9fodWUfXAlXZLZQ==",
|
"integrity": "sha512-CpKnYa8eHthJa3c+C38v/E+/KZyF1Jdh2Cz3DyKZqEWYgrM1IHFArXNWvBLPQCKUEsAqqKX27tTqVEFbDNUcOA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -2403,13 +2415,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@sveltejs/vite-plugin-svelte": {
|
"node_modules/@sveltejs/vite-plugin-svelte": {
|
||||||
"version": "6.1.0",
|
"version": "6.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-6.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-6.1.3.tgz",
|
||||||
"integrity": "sha512-+U6lz1wvGEG/BvQyL4z/flyNdQ9xDNv5vrh+vWBWTHaebqT0c9RNggpZTo/XSPoHsSCWBlYaTlRX8pZ9GATXCw==",
|
"integrity": "sha512-3pppgIeIZs6nrQLazzKcdnTJ2IWiui/UucEPXKyFG35TKaHQrfkWBnv6hyJcLxFuR90t+LaoecrqTs8rJKWfSQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sveltejs/vite-plugin-svelte-inspector": "^5.0.0-next.1",
|
"@sveltejs/vite-plugin-svelte-inspector": "^5.0.0",
|
||||||
"debug": "^4.4.1",
|
"debug": "^4.4.1",
|
||||||
"deepmerge": "^4.3.1",
|
"deepmerge": "^4.3.1",
|
||||||
"kleur": "^4.1.5",
|
"kleur": "^4.1.5",
|
||||||
@@ -2458,32 +2470,35 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tsconfig/svelte": {
|
"node_modules/@tsconfig/svelte": {
|
||||||
"version": "5.0.4",
|
"version": "5.0.5",
|
||||||
"resolved": "https://registry.npmjs.org/@tsconfig/svelte/-/svelte-5.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/@tsconfig/svelte/-/svelte-5.0.5.tgz",
|
||||||
"integrity": "sha512-BV9NplVgLmSi4mwKzD8BD/NQ8erOY/nUE/GpgWe2ckx+wIQF5RyRirn/QsSSCPeulVpc3RA/iJt6DpfTIZps0Q==",
|
"integrity": "sha512-48fAnUjKye38FvMiNOj0J9I/4XlQQiZlpe9xaNPfe8vy2Y1hFBt8g1yqf2EGjVvHavo4jf2lC+TQyENCr4BJBQ==",
|
||||||
"dev": true
|
"dev": true,
|
||||||
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@types/estree": {
|
"node_modules/@types/estree": {
|
||||||
"version": "1.0.7",
|
"version": "1.0.8",
|
||||||
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz",
|
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",
|
||||||
"integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==",
|
"integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@vitejs/plugin-legacy": {
|
"node_modules/@vitejs/plugin-legacy": {
|
||||||
"version": "7.0.1",
|
"version": "7.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/@vitejs/plugin-legacy/-/plugin-legacy-7.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/@vitejs/plugin-legacy/-/plugin-legacy-7.2.1.tgz",
|
||||||
"integrity": "sha512-ZpT0cKlFzNPU/kjdKzuI+2aDr2MYs7MxndmV7ekAMO2TD6YdU6GJKtc+/K7gaiJwEyaAZhDsxmBSi7SqM6MBxQ==",
|
"integrity": "sha512-CaXb/y0mlfu7jQRELEJJc2/5w2bX2m1JraARgFnvSB2yfvnCNJVWWlqAo6WjnKoepOwKx8gs0ugJThPLKCOXIg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.28.0",
|
"@babel/core": "^7.28.0",
|
||||||
|
"@babel/plugin-transform-dynamic-import": "^7.27.1",
|
||||||
|
"@babel/plugin-transform-modules-systemjs": "^7.27.1",
|
||||||
"@babel/preset-env": "^7.28.0",
|
"@babel/preset-env": "^7.28.0",
|
||||||
"babel-plugin-polyfill-corejs3": "^0.13.0",
|
"babel-plugin-polyfill-corejs3": "^0.13.0",
|
||||||
"babel-plugin-polyfill-regenerator": "^0.6.5",
|
"babel-plugin-polyfill-regenerator": "^0.6.5",
|
||||||
"browserslist": "^4.25.1",
|
"browserslist": "^4.25.1",
|
||||||
"browserslist-to-esbuild": "^2.1.1",
|
"browserslist-to-esbuild": "^2.1.1",
|
||||||
"core-js": "^3.44.0",
|
"core-js": "^3.45.0",
|
||||||
"magic-string": "^0.30.17",
|
"magic-string": "^0.30.17",
|
||||||
"regenerator-runtime": "^0.14.1",
|
"regenerator-runtime": "^0.14.1",
|
||||||
"systemjs": "^6.15.1"
|
"systemjs": "^6.15.1"
|
||||||
@@ -2840,6 +2855,84 @@
|
|||||||
"url": "https://paulmillr.com/funding/"
|
"url": "https://paulmillr.com/funding/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/cliui": {
|
||||||
|
"version": "8.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
|
||||||
|
"integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "ISC",
|
||||||
|
"dependencies": {
|
||||||
|
"string-width": "^4.2.0",
|
||||||
|
"strip-ansi": "^6.0.1",
|
||||||
|
"wrap-ansi": "^7.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/cliui/node_modules/ansi-regex": {
|
||||||
|
"version": "5.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
|
||||||
|
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=8"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/cliui/node_modules/emoji-regex": {
|
||||||
|
"version": "8.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
|
||||||
|
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/cliui/node_modules/string-width": {
|
||||||
|
"version": "4.2.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
|
||||||
|
"integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"emoji-regex": "^8.0.0",
|
||||||
|
"is-fullwidth-code-point": "^3.0.0",
|
||||||
|
"strip-ansi": "^6.0.1"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=8"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/cliui/node_modules/strip-ansi": {
|
||||||
|
"version": "6.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
|
||||||
|
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"ansi-regex": "^5.0.1"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=8"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/cliui/node_modules/wrap-ansi": {
|
||||||
|
"version": "7.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
|
||||||
|
"integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"ansi-styles": "^4.0.0",
|
||||||
|
"string-width": "^4.1.0",
|
||||||
|
"strip-ansi": "^6.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=10"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/chalk/wrap-ansi?sponsor=1"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/clsx": {
|
"node_modules/clsx": {
|
||||||
"version": "2.1.1",
|
"version": "2.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",
|
||||||
@@ -2883,9 +2976,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/core-js": {
|
"node_modules/core-js": {
|
||||||
"version": "3.44.0",
|
"version": "3.45.1",
|
||||||
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.44.0.tgz",
|
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.45.1.tgz",
|
||||||
"integrity": "sha512-aFCtd4l6GvAXwVEh3XbbVqJGHDJt0OZRa+5ePGx3LLwi12WfexqQxcsohb2wgsa/92xtl19Hd66G/L+TaAxDMw==",
|
"integrity": "sha512-L4NPsJlCfZsPeXukyzHFlg/i7IIVwHSItR0wg0FLNqYClJ4MQYTYLbC7EkjKYRLZF2iof2MUgN0EGy7MdQFChg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -3005,6 +3098,16 @@
|
|||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/define-lazy-prop": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=8"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/didyoumean": {
|
"node_modules/didyoumean": {
|
||||||
"version": "1.2.2",
|
"version": "1.2.2",
|
||||||
"resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",
|
"resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",
|
||||||
@@ -3018,9 +3121,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/dotenv": {
|
"node_modules/dotenv": {
|
||||||
"version": "17.2.0",
|
"version": "17.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.2.1.tgz",
|
||||||
"integrity": "sha512-Q4sgBT60gzd0BB0lSyYD3xM4YxrXA9y4uBDof1JNYGzOXrQdQ6yX+7XIAqoFOGQFOTK1D3Hts5OllpxMDZFONQ==",
|
"integrity": "sha512-kQhDYKZecqnM0fCnzI5eIv5L4cAe/iRI+HqMbO/hbRdTAeXDG+M9FjipUxNfbARuEg4iHIbhnhs78BCHNbSxEQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "BSD-2-Clause",
|
"license": "BSD-2-Clause",
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -3170,11 +3273,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/fdir": {
|
"node_modules/fdir": {
|
||||||
"version": "6.4.6",
|
"version": "6.5.0",
|
||||||
"resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.6.tgz",
|
"resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
|
||||||
"integrity": "sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==",
|
"integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12.0.0"
|
||||||
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"picomatch": "^3 || ^4"
|
"picomatch": "^3 || ^4"
|
||||||
},
|
},
|
||||||
@@ -3271,6 +3377,16 @@
|
|||||||
"node": ">=6.9.0"
|
"node": ">=6.9.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/get-caller-file": {
|
||||||
|
"version": "2.0.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
|
||||||
|
"integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "ISC",
|
||||||
|
"engines": {
|
||||||
|
"node": "6.* || 8.* || >= 10.*"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/glob": {
|
"node_modules/glob": {
|
||||||
"version": "10.4.5",
|
"version": "10.4.5",
|
||||||
"resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz",
|
"resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz",
|
||||||
@@ -3381,6 +3497,22 @@
|
|||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/is-docker": {
|
||||||
|
"version": "2.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",
|
||||||
|
"integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"bin": {
|
||||||
|
"is-docker": "cli.js"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=8"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/sindresorhus"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/is-extglob": {
|
"node_modules/is-extglob": {
|
||||||
"version": "2.1.1",
|
"version": "2.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
|
||||||
@@ -3429,6 +3561,19 @@
|
|||||||
"@types/estree": "^1.0.6"
|
"@types/estree": "^1.0.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/is-wsl": {
|
||||||
|
"version": "2.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",
|
||||||
|
"integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"is-docker": "^2.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=8"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/isarray": {
|
"node_modules/isarray": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
|
||||||
@@ -3777,6 +3922,24 @@
|
|||||||
"node": ">= 6"
|
"node": ">= 6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/open": {
|
||||||
|
"version": "8.4.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz",
|
||||||
|
"integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"define-lazy-prop": "^2.0.0",
|
||||||
|
"is-docker": "^2.1.1",
|
||||||
|
"is-wsl": "^2.2.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/sindresorhus"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/package-json-from-dist": {
|
"node_modules/package-json-from-dist": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",
|
||||||
@@ -3833,10 +3996,11 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/picomatch": {
|
"node_modules/picomatch": {
|
||||||
"version": "4.0.2",
|
"version": "4.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",
|
||||||
"integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==",
|
"integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12"
|
"node": ">=12"
|
||||||
},
|
},
|
||||||
@@ -4160,6 +4324,16 @@
|
|||||||
"node": ">=6"
|
"node": ">=6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/require-directory": {
|
||||||
|
"version": "2.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
|
||||||
|
"integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.10.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/resolve": {
|
"node_modules/resolve": {
|
||||||
"version": "1.22.10",
|
"version": "1.22.10",
|
||||||
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz",
|
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz",
|
||||||
@@ -4191,13 +4365,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/rollup": {
|
"node_modules/rollup": {
|
||||||
"version": "4.40.0",
|
"version": "4.47.1",
|
||||||
"resolved": "https://registry.npmjs.org/rollup/-/rollup-4.40.0.tgz",
|
"resolved": "https://registry.npmjs.org/rollup/-/rollup-4.47.1.tgz",
|
||||||
"integrity": "sha512-Noe455xmA96nnqH5piFtLobsGbCij7Tu+tb3c1vYjNbTkfzGqXqQXG3wJaYXkRZuQ0vEYN4bhwg7QnIrqB5B+w==",
|
"integrity": "sha512-iasGAQoZ5dWDzULEUX3jiW0oB1qyFOepSyDyoU6S/OhVlDIwj5knI5QBa5RRQ0sK7OE0v+8VIi2JuV+G+3tfNg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/estree": "1.0.7"
|
"@types/estree": "1.0.8"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"rollup": "dist/bin/rollup"
|
"rollup": "dist/bin/rollup"
|
||||||
@@ -4207,29 +4381,70 @@
|
|||||||
"npm": ">=8.0.0"
|
"npm": ">=8.0.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@rollup/rollup-android-arm-eabi": "4.40.0",
|
"@rollup/rollup-android-arm-eabi": "4.47.1",
|
||||||
"@rollup/rollup-android-arm64": "4.40.0",
|
"@rollup/rollup-android-arm64": "4.47.1",
|
||||||
"@rollup/rollup-darwin-arm64": "4.40.0",
|
"@rollup/rollup-darwin-arm64": "4.47.1",
|
||||||
"@rollup/rollup-darwin-x64": "4.40.0",
|
"@rollup/rollup-darwin-x64": "4.47.1",
|
||||||
"@rollup/rollup-freebsd-arm64": "4.40.0",
|
"@rollup/rollup-freebsd-arm64": "4.47.1",
|
||||||
"@rollup/rollup-freebsd-x64": "4.40.0",
|
"@rollup/rollup-freebsd-x64": "4.47.1",
|
||||||
"@rollup/rollup-linux-arm-gnueabihf": "4.40.0",
|
"@rollup/rollup-linux-arm-gnueabihf": "4.47.1",
|
||||||
"@rollup/rollup-linux-arm-musleabihf": "4.40.0",
|
"@rollup/rollup-linux-arm-musleabihf": "4.47.1",
|
||||||
"@rollup/rollup-linux-arm64-gnu": "4.40.0",
|
"@rollup/rollup-linux-arm64-gnu": "4.47.1",
|
||||||
"@rollup/rollup-linux-arm64-musl": "4.40.0",
|
"@rollup/rollup-linux-arm64-musl": "4.47.1",
|
||||||
"@rollup/rollup-linux-loongarch64-gnu": "4.40.0",
|
"@rollup/rollup-linux-loongarch64-gnu": "4.47.1",
|
||||||
"@rollup/rollup-linux-powerpc64le-gnu": "4.40.0",
|
"@rollup/rollup-linux-ppc64-gnu": "4.47.1",
|
||||||
"@rollup/rollup-linux-riscv64-gnu": "4.40.0",
|
"@rollup/rollup-linux-riscv64-gnu": "4.47.1",
|
||||||
"@rollup/rollup-linux-riscv64-musl": "4.40.0",
|
"@rollup/rollup-linux-riscv64-musl": "4.47.1",
|
||||||
"@rollup/rollup-linux-s390x-gnu": "4.40.0",
|
"@rollup/rollup-linux-s390x-gnu": "4.47.1",
|
||||||
"@rollup/rollup-linux-x64-gnu": "4.40.0",
|
"@rollup/rollup-linux-x64-gnu": "4.47.1",
|
||||||
"@rollup/rollup-linux-x64-musl": "4.40.0",
|
"@rollup/rollup-linux-x64-musl": "4.47.1",
|
||||||
"@rollup/rollup-win32-arm64-msvc": "4.40.0",
|
"@rollup/rollup-win32-arm64-msvc": "4.47.1",
|
||||||
"@rollup/rollup-win32-ia32-msvc": "4.40.0",
|
"@rollup/rollup-win32-ia32-msvc": "4.47.1",
|
||||||
"@rollup/rollup-win32-x64-msvc": "4.40.0",
|
"@rollup/rollup-win32-x64-msvc": "4.47.1",
|
||||||
"fsevents": "~2.3.2"
|
"fsevents": "~2.3.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/rollup-plugin-visualizer": {
|
||||||
|
"version": "6.0.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/rollup-plugin-visualizer/-/rollup-plugin-visualizer-6.0.3.tgz",
|
||||||
|
"integrity": "sha512-ZU41GwrkDcCpVoffviuM9Clwjy5fcUxlz0oMoTXTYsK+tcIFzbdacnrr2n8TXcHxbGKKXtOdjxM2HUS4HjkwIw==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"open": "^8.0.0",
|
||||||
|
"picomatch": "^4.0.2",
|
||||||
|
"source-map": "^0.7.4",
|
||||||
|
"yargs": "^17.5.1"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"rollup-plugin-visualizer": "dist/bin/cli.js"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"rolldown": "1.x || ^1.0.0-beta",
|
||||||
|
"rollup": "2.x || 3.x || 4.x"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"rolldown": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"rollup": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/rollup-plugin-visualizer/node_modules/source-map": {
|
||||||
|
"version": "0.7.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz",
|
||||||
|
"integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "BSD-3-Clause",
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 8"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/run-parallel": {
|
"node_modules/run-parallel": {
|
||||||
"version": "1.2.0",
|
"version": "1.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
|
||||||
@@ -4500,13 +4715,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/svelte": {
|
"node_modules/svelte": {
|
||||||
"version": "5.36.8",
|
"version": "5.38.2",
|
||||||
"resolved": "https://registry.npmjs.org/svelte/-/svelte-5.36.8.tgz",
|
"resolved": "https://registry.npmjs.org/svelte/-/svelte-5.38.2.tgz",
|
||||||
"integrity": "sha512-8JbZWQu96hMjH/oYQPxXW6taeC6Awl6muGHeZzJTxQx7NGRQ/J9wN1hkzRKLOlSDlbS2igiFg7p5xyTp5uXG3A==",
|
"integrity": "sha512-iAcp/oFAWauVSGILdD67n7DiwgLHXZzWZIdzl7araRxu72jUr7PFAo2Iie7gXt0IbnlYvhxCb9GT3ZJUquO3PA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ampproject/remapping": "^2.3.0",
|
"@jridgewell/remapping": "^2.3.4",
|
||||||
"@jridgewell/sourcemap-codec": "^1.5.0",
|
"@jridgewell/sourcemap-codec": "^1.5.0",
|
||||||
"@sveltejs/acorn-typescript": "^1.0.5",
|
"@sveltejs/acorn-typescript": "^1.0.5",
|
||||||
"@types/estree": "^1.0.5",
|
"@types/estree": "^1.0.5",
|
||||||
@@ -4526,9 +4741,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/svelte-check": {
|
"node_modules/svelte-check": {
|
||||||
"version": "4.3.0",
|
"version": "4.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-4.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-4.3.1.tgz",
|
||||||
"integrity": "sha512-Iz8dFXzBNAM7XlEIsUjUGQhbEE+Pvv9odb9+0+ITTgFWZBGeJRRYqHUUglwe2EkLD5LIsQaAc4IUJyvtKuOO5w==",
|
"integrity": "sha512-lkh8gff5gpHLjxIV+IaApMxQhTGnir2pNUAqcNgeKkvK5bT/30Ey/nzBxNLDlkztCH4dP7PixkMt9SWEKFPBWg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -4828,9 +5043,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/typescript": {
|
"node_modules/typescript": {
|
||||||
"version": "5.8.3",
|
"version": "5.9.2",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.2.tgz",
|
||||||
"integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==",
|
"integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"bin": {
|
"bin": {
|
||||||
@@ -4942,17 +5157,17 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/vite": {
|
"node_modules/vite": {
|
||||||
"version": "7.0.5",
|
"version": "7.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/vite/-/vite-7.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/vite/-/vite-7.1.3.tgz",
|
||||||
"integrity": "sha512-1mncVwJxy2C9ThLwz0+2GKZyEXuC3MyWtAAlNftlZZXZDP3AJt5FmwcMit/IGGaNZ8ZOB2BNO/HFUB+CpN0NQw==",
|
"integrity": "sha512-OOUi5zjkDxYrKhTV3V7iKsoS37VUM7v40+HuwEmcrsf11Cdx9y3DIr2Px6liIcZFwt3XSRpQvFpL3WVy7ApkGw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"esbuild": "^0.25.0",
|
"esbuild": "^0.25.0",
|
||||||
"fdir": "^6.4.6",
|
"fdir": "^6.5.0",
|
||||||
"picomatch": "^4.0.2",
|
"picomatch": "^4.0.3",
|
||||||
"postcss": "^8.5.6",
|
"postcss": "^8.5.6",
|
||||||
"rollup": "^4.40.0",
|
"rollup": "^4.43.0",
|
||||||
"tinyglobby": "^0.2.14"
|
"tinyglobby": "^0.2.14"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
@@ -5172,6 +5387,16 @@
|
|||||||
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/y18n": {
|
||||||
|
"version": "5.0.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
|
||||||
|
"integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "ISC",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=10"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/yallist": {
|
"node_modules/yallist": {
|
||||||
"version": "3.1.1",
|
"version": "3.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
|
||||||
@@ -5191,10 +5416,84 @@
|
|||||||
"node": ">= 14"
|
"node": ">= 14"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/yargs": {
|
||||||
|
"version": "17.7.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
|
||||||
|
"integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"cliui": "^8.0.1",
|
||||||
|
"escalade": "^3.1.1",
|
||||||
|
"get-caller-file": "^2.0.5",
|
||||||
|
"require-directory": "^2.1.1",
|
||||||
|
"string-width": "^4.2.3",
|
||||||
|
"y18n": "^5.0.5",
|
||||||
|
"yargs-parser": "^21.1.1"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/yargs-parser": {
|
||||||
|
"version": "21.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
|
||||||
|
"integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "ISC",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/yargs/node_modules/ansi-regex": {
|
||||||
|
"version": "5.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
|
||||||
|
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=8"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/yargs/node_modules/emoji-regex": {
|
||||||
|
"version": "8.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
|
||||||
|
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/yargs/node_modules/string-width": {
|
||||||
|
"version": "4.2.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
|
||||||
|
"integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"emoji-regex": "^8.0.0",
|
||||||
|
"is-fullwidth-code-point": "^3.0.0",
|
||||||
|
"strip-ansi": "^6.0.1"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=8"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/yargs/node_modules/strip-ansi": {
|
||||||
|
"version": "6.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
|
||||||
|
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"ansi-regex": "^5.0.1"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=8"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/youtubei.js": {
|
"node_modules/youtubei.js": {
|
||||||
"version": "15.0.0",
|
"version": "15.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/youtubei.js/-/youtubei.js-15.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/youtubei.js/-/youtubei.js-15.0.1.tgz",
|
||||||
"integrity": "sha512-giPZREn+q0z8Jr45NUcJUXE7QA2+UD2jx5FR+ULdnexvtHg5uQZr9Am8aYcECPKzbBNe6ksBD1yT4SKNbhpRqA==",
|
"integrity": "sha512-2slapqJS5NuXKHvcACEknyVz0AjH/TrXaOhDM0q2twQKa54kCmfj+7B/2nGfd20uzAe29zW1ejk2qOc4ABuGkg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"funding": [
|
"funding": [
|
||||||
"https://github.com/sponsors/LuanRT"
|
"https://github.com/sponsors/LuanRT"
|
||||||
@@ -5203,7 +5502,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@bufbuild/protobuf": "^2.0.0",
|
"@bufbuild/protobuf": "^2.0.0",
|
||||||
"jintr": "^3.3.1",
|
"jintr": "^3.3.1",
|
||||||
"tslib": "^2.5.0",
|
|
||||||
"undici": "^6.21.3"
|
"undici": "^6.21.3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
+11
-10
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-web",
|
"name": "playlet-web",
|
||||||
"version": "0.40.10",
|
"version": "0.41.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
@@ -9,27 +9,28 @@
|
|||||||
"lint": "svelte-check --tsconfig ./tsconfig.json --fail-on-warnings"
|
"lint": "svelte-check --tsconfig ./tsconfig.json --fail-on-warnings"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sveltejs/vite-plugin-svelte": "^6.1.0",
|
"@sveltejs/vite-plugin-svelte": "^6.1.3",
|
||||||
"@tailwindcss/typography": "^0.5.16",
|
"@tailwindcss/typography": "^0.5.16",
|
||||||
"@tsconfig/svelte": "^5.0.4",
|
"@tsconfig/svelte": "^5.0.5",
|
||||||
"@vitejs/plugin-legacy": "^7.0.1",
|
"@vitejs/plugin-legacy": "^7.2.1",
|
||||||
"autoprefixer": "^10.4.21",
|
"autoprefixer": "^10.4.21",
|
||||||
"bgutils-js": "^3.2.0",
|
"bgutils-js": "^3.2.0",
|
||||||
"daisyui": "^4.12.23",
|
"daisyui": "^4.12.23",
|
||||||
"dotenv": "^17.2.0",
|
"dotenv": "^17.2.1",
|
||||||
"ip": "^2.0.1",
|
"ip": "^2.0.1",
|
||||||
"jszip": "^3.10.1",
|
"jszip": "^3.10.1",
|
||||||
"postcss": "^8.5.6",
|
"postcss": "^8.5.6",
|
||||||
"svelte": "^5.36.8",
|
"rollup-plugin-visualizer": "^6.0.3",
|
||||||
"svelte-check": "^4.3.0",
|
"svelte": "^5.38.2",
|
||||||
|
"svelte-check": "^4.3.1",
|
||||||
"svelte-preprocess": "^6.0.3",
|
"svelte-preprocess": "^6.0.3",
|
||||||
"tailwindcss": "^3.4.17",
|
"tailwindcss": "^3.4.17",
|
||||||
"terser": "^5.43.1",
|
"terser": "^5.43.1",
|
||||||
"tslib": "^2.8.1",
|
"tslib": "^2.8.1",
|
||||||
"typescript": "^5.8.3",
|
"typescript": "^5.9.2",
|
||||||
"vite": "^7.0.5",
|
"vite": "^7.1.3",
|
||||||
"vite-plugin-compression": "^0.5.1",
|
"vite-plugin-compression": "^0.5.1",
|
||||||
"vite-tsconfig-paths": "^5.1.4",
|
"vite-tsconfig-paths": "^5.1.4",
|
||||||
"youtubei.js": "^15.0.0"
|
"youtubei.js": "^15.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6,99 +6,6 @@ import type { VideoInfo } from 'node_modules/youtubei.js/dist/src/parser/youtube
|
|||||||
import type { StoryboardData } from 'node_modules/youtubei.js/dist/src/parser/classes/PlayerStoryboardSpec';
|
import type { StoryboardData } from 'node_modules/youtubei.js/dist/src/parser/classes/PlayerStoryboardSpec';
|
||||||
import type { PlayerLiveStoryboardSpec, PlayerStoryboardSpec } from 'node_modules/youtubei.js/dist/src/parser/nodes';
|
import type { PlayerLiveStoryboardSpec, PlayerStoryboardSpec } from 'node_modules/youtubei.js/dist/src/parser/nodes';
|
||||||
|
|
||||||
// https://github.com/iv-org/invidious/blob/a021b93063f3956fc9bb3cce0fb56ea252422738/src/invidious/videos/formats.cr#L7
|
|
||||||
const FORMATS = {
|
|
||||||
"5": { ext: "flv", width: 400, height: 240, acodec: "mp3", abr: 64, vcodec: "h263" },
|
|
||||||
"6": { ext: "flv", width: 450, height: 270, acodec: "mp3", abr: 64, vcodec: "h263" },
|
|
||||||
"13": { ext: "3gp", acodec: "aac", vcodec: "mp4v" },
|
|
||||||
"17": { ext: "3gp", width: 176, height: 144, acodec: "aac", abr: 24, vcodec: "mp4v" },
|
|
||||||
"18": { ext: "mp4", width: 640, height: 360, acodec: "aac", abr: 96, vcodec: "h264" },
|
|
||||||
"22": { ext: "mp4", width: 1280, height: 720, acodec: "aac", abr: 192, vcodec: "h264" },
|
|
||||||
"34": { ext: "flv", width: 640, height: 360, acodec: "aac", abr: 128, vcodec: "h264" },
|
|
||||||
"35": { ext: "flv", width: 854, height: 480, acodec: "aac", abr: 128, vcodec: "h264" },
|
|
||||||
"36": { ext: "3gp", width: 320, acodec: "aac", vcodec: "mp4v" },
|
|
||||||
"37": { ext: "mp4", width: 1920, height: 1080, acodec: "aac", abr: 192, vcodec: "h264" },
|
|
||||||
"38": { ext: "mp4", width: 4096, height: 3072, acodec: "aac", abr: 192, vcodec: "h264" },
|
|
||||||
"43": { ext: "webm", width: 640, height: 360, acodec: "vorbis", abr: 128, vcodec: "vp8" },
|
|
||||||
"44": { ext: "webm", width: 854, height: 480, acodec: "vorbis", abr: 128, vcodec: "vp8" },
|
|
||||||
"45": { ext: "webm", width: 1280, height: 720, acodec: "vorbis", abr: 192, vcodec: "vp8" },
|
|
||||||
"46": { ext: "webm", width: 1920, height: 1080, acodec: "vorbis", abr: 192, vcodec: "vp8" },
|
|
||||||
"59": { ext: "mp4", width: 854, height: 480, acodec: "aac", abr: 128, vcodec: "h264" },
|
|
||||||
"78": { ext: "mp4", width: 854, height: 480, acodec: "aac", abr: 128, vcodec: "h264" },
|
|
||||||
"82": { ext: "mp4", height: 360, format: "3D", acodec: "aac", abr: 128, vcodec: "h264" },
|
|
||||||
"83": { ext: "mp4", height: 480, format: "3D", acodec: "aac", abr: 128, vcodec: "h264" },
|
|
||||||
"84": { ext: "mp4", height: 720, format: "3D", acodec: "aac", abr: 192, vcodec: "h264" },
|
|
||||||
"85": { ext: "mp4", height: 1080, format: "3D", acodec: "aac", abr: 192, vcodec: "h264" },
|
|
||||||
"100": { ext: "webm", height: 360, format: "3D", acodec: "vorbis", abr: 128, vcodec: "vp8" },
|
|
||||||
"101": { ext: "webm", height: 480, format: "3D", acodec: "vorbis", abr: 192, vcodec: "vp8" },
|
|
||||||
"102": { ext: "webm", height: 720, format: "3D", acodec: "vorbis", abr: 192, vcodec: "vp8" },
|
|
||||||
"91": { ext: "mp4", height: 144, format: "HLS", acodec: "aac", abr: 48, vcodec: "h264" },
|
|
||||||
"92": { ext: "mp4", height: 240, format: "HLS", acodec: "aac", abr: 48, vcodec: "h264" },
|
|
||||||
"93": { ext: "mp4", height: 360, format: "HLS", acodec: "aac", abr: 128, vcodec: "h264" },
|
|
||||||
"94": { ext: "mp4", height: 480, format: "HLS", acodec: "aac", abr: 128, vcodec: "h264" },
|
|
||||||
"95": { ext: "mp4", height: 720, format: "HLS", acodec: "aac", abr: 256, vcodec: "h264" },
|
|
||||||
"96": { ext: "mp4", height: 1080, format: "HLS", acodec: "aac", abr: 256, vcodec: "h264" },
|
|
||||||
"132": { ext: "mp4", height: 240, format: "HLS", acodec: "aac", abr: 48, vcodec: "h264" },
|
|
||||||
"151": { ext: "mp4", height: 72, format: "HLS", acodec: "aac", abr: 24, vcodec: "h264" },
|
|
||||||
"133": { ext: "mp4", height: 240, format: "DASH video", vcodec: "h264" },
|
|
||||||
"134": { ext: "mp4", height: 360, format: "DASH video", vcodec: "h264" },
|
|
||||||
"135": { ext: "mp4", height: 480, format: "DASH video", vcodec: "h264" },
|
|
||||||
"136": { ext: "mp4", height: 720, format: "DASH video", vcodec: "h264" },
|
|
||||||
"137": { ext: "mp4", height: 1080, format: "DASH video", vcodec: "h264" },
|
|
||||||
"138": { ext: "mp4", format: "DASH video", vcodec: "h264" },
|
|
||||||
"160": { ext: "mp4", height: 144, format: "DASH video", vcodec: "h264" },
|
|
||||||
"212": { ext: "mp4", height: 480, format: "DASH video", vcodec: "h264" },
|
|
||||||
"264": { ext: "mp4", height: 1440, format: "DASH video", vcodec: "h264" },
|
|
||||||
"298": { ext: "mp4", height: 720, format: "DASH video", vcodec: "h264", fps: 60 },
|
|
||||||
"299": { ext: "mp4", height: 1080, format: "DASH video", vcodec: "h264", fps: 60 },
|
|
||||||
"266": { ext: "mp4", height: 2160, format: "DASH video", vcodec: "h264" },
|
|
||||||
"139": { ext: "m4a", format: "DASH audio", acodec: "aac", abr: 48, container: "m4a_dash" },
|
|
||||||
"140": { ext: "m4a", format: "DASH audio", acodec: "aac", abr: 128, container: "m4a_dash" },
|
|
||||||
"141": { ext: "m4a", format: "DASH audio", acodec: "aac", abr: 256, container: "m4a_dash" },
|
|
||||||
"256": { ext: "m4a", format: "DASH audio", acodec: "aac", container: "m4a_dash" },
|
|
||||||
"258": { ext: "m4a", format: "DASH audio", acodec: "aac", container: "m4a_dash" },
|
|
||||||
"325": { ext: "m4a", format: "DASH audio", acodec: "dtse", container: "m4a_dash" },
|
|
||||||
"328": { ext: "m4a", format: "DASH audio", acodec: "ec-3", container: "m4a_dash" },
|
|
||||||
"167": { ext: "webm", height: 360, width: 640, format: "DASH video", container: "webm", vcodec: "vp8" },
|
|
||||||
"168": { ext: "webm", height: 480, width: 854, format: "DASH video", container: "webm", vcodec: "vp8" },
|
|
||||||
"169": { ext: "webm", height: 720, width: 1280, format: "DASH video", container: "webm", vcodec: "vp8" },
|
|
||||||
"170": { ext: "webm", height: 1080, width: 1920, format: "DASH video", container: "webm", vcodec: "vp8" },
|
|
||||||
"218": { ext: "webm", height: 480, width: 854, format: "DASH video", container: "webm", vcodec: "vp8" },
|
|
||||||
"219": { ext: "webm", height: 480, width: 854, format: "DASH video", container: "webm", vcodec: "vp8" },
|
|
||||||
"278": { ext: "webm", height: 144, format: "DASH video", container: "webm", vcodec: "vp9" },
|
|
||||||
"242": { ext: "webm", height: 240, format: "DASH video", vcodec: "vp9" },
|
|
||||||
"243": { ext: "webm", height: 360, format: "DASH video", vcodec: "vp9" },
|
|
||||||
"244": { ext: "webm", height: 480, format: "DASH video", vcodec: "vp9" },
|
|
||||||
"245": { ext: "webm", height: 480, format: "DASH video", vcodec: "vp9" },
|
|
||||||
"246": { ext: "webm", height: 480, format: "DASH video", vcodec: "vp9" },
|
|
||||||
"247": { ext: "webm", height: 720, format: "DASH video", vcodec: "vp9" },
|
|
||||||
"248": { ext: "webm", height: 1080, format: "DASH video", vcodec: "vp9" },
|
|
||||||
"271": { ext: "webm", height: 1440, format: "DASH video", vcodec: "vp9" },
|
|
||||||
"272": { ext: "webm", height: 2160, format: "DASH video", vcodec: "vp9" },
|
|
||||||
"302": { ext: "webm", height: 720, format: "DASH video", vcodec: "vp9", fps: 60 },
|
|
||||||
"303": { ext: "webm", height: 1080, format: "DASH video", vcodec: "vp9", fps: 60 },
|
|
||||||
"308": { ext: "webm", height: 1440, format: "DASH video", vcodec: "vp9", fps: 60 },
|
|
||||||
"313": { ext: "webm", height: 2160, format: "DASH video", vcodec: "vp9" },
|
|
||||||
"315": { ext: "webm", height: 2160, format: "DASH video", vcodec: "vp9", fps: 60 },
|
|
||||||
"330": { ext: "webm", height: 144, format: "DASH video", vcodec: "vp9", fps: 60 },
|
|
||||||
"331": { ext: "webm", height: 240, format: "DASH video", vcodec: "vp9", fps: 60 },
|
|
||||||
"332": { ext: "webm", height: 360, format: "DASH video", vcodec: "vp9", fps: 60 },
|
|
||||||
"333": { ext: "webm", height: 480, format: "DASH video", vcodec: "vp9", fps: 60 },
|
|
||||||
"334": { ext: "webm", height: 720, format: "DASH video", vcodec: "vp9", fps: 60 },
|
|
||||||
"335": { ext: "webm", height: 1080, format: "DASH video", vcodec: "vp9", fps: 60 },
|
|
||||||
"336": { ext: "webm", height: 1440, format: "DASH video", vcodec: "vp9", fps: 60 },
|
|
||||||
"337": { ext: "webm", height: 2160, format: "DASH video", vcodec: "vp9", fps: 60 },
|
|
||||||
"171": { ext: "webm", acodec: "vorbis", format: "DASH audio", abr: 128 },
|
|
||||||
"172": { ext: "webm", acodec: "vorbis", format: "DASH audio", abr: 256 },
|
|
||||||
"249": { ext: "webm", format: "DASH audio", acodec: "opus", abr: 50 },
|
|
||||||
"250": { ext: "webm", format: "DASH audio", acodec: "opus", abr: 70 },
|
|
||||||
"251": { ext: "webm", format: "DASH audio", acodec: "opus", abr: 160 },
|
|
||||||
"394": { ext: "mp4", height: 144, vcodec: "av01.0.05M.08" },
|
|
||||||
"395": { ext: "mp4", height: 240, vcodec: "av01.0.05M.08" },
|
|
||||||
"396": { ext: "mp4", height: 360, vcodec: "av01.0.05M.08" },
|
|
||||||
"397": { ext: "mp4", height: 480, vcodec: "av01.0.05M.08" }
|
|
||||||
}
|
|
||||||
|
|
||||||
export class YoutubeJs {
|
export class YoutubeJs {
|
||||||
static host = () => `http://${getHost()}`
|
static host = () => `http://${getHost()}`
|
||||||
|
|
||||||
@@ -338,7 +245,6 @@ export class YoutubeJs {
|
|||||||
// Mostly populate only fields we care about, enough to make it work.
|
// Mostly populate only fields we care about, enough to make it work.
|
||||||
return {
|
return {
|
||||||
type: "video",
|
type: "video",
|
||||||
ytjs: true,
|
|
||||||
title: info.basic_info.title,
|
title: info.basic_info.title,
|
||||||
videoId: info.basic_info.id,
|
videoId: info.basic_info.id,
|
||||||
videoThumbnails: [],
|
videoThumbnails: [],
|
||||||
@@ -384,7 +290,6 @@ export class YoutubeJs {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return videoInfo.streaming_data.adaptive_formats.map(format => {
|
return videoInfo.streaming_data.adaptive_formats.map(format => {
|
||||||
const formatInfo = FORMATS[format.itag];
|
|
||||||
const result: any = {
|
const result: any = {
|
||||||
init: format.init_range ? `${format.init_range.start}-${format.init_range.end}` : "",
|
init: format.init_range ? `${format.init_range.start}-${format.init_range.end}` : "",
|
||||||
index: format.index_range ? `${format.index_range.start}-${format.index_range.end}` : "",
|
index: format.index_range ? `${format.index_range.start}-${format.index_range.end}` : "",
|
||||||
@@ -394,8 +299,6 @@ export class YoutubeJs {
|
|||||||
type: format.mime_type,
|
type: format.mime_type,
|
||||||
clen: `${format.approx_duration_ms}`,
|
clen: `${format.approx_duration_ms}`,
|
||||||
lmt: `${format.last_modified}`,
|
lmt: `${format.last_modified}`,
|
||||||
container: formatInfo?.ext,
|
|
||||||
encoding: formatInfo?.acodec ?? formatInfo?.vcodec,
|
|
||||||
};
|
};
|
||||||
if (format.audio_quality) {
|
if (format.audio_quality) {
|
||||||
result.audioQuality = format.audio_quality;
|
result.audioQuality = format.audio_quality;
|
||||||
@@ -413,12 +316,16 @@ export class YoutubeJs {
|
|||||||
if (format.fps) {
|
if (format.fps) {
|
||||||
result.fps = format.fps;
|
result.fps = format.fps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (format.width) {
|
||||||
|
result.width = format.width;
|
||||||
|
}
|
||||||
|
if (format.height) {
|
||||||
|
result.height = format.height;
|
||||||
|
}
|
||||||
if (format.height && format.width) {
|
if (format.height && format.width) {
|
||||||
result.size = `${format.width}x${format.height}`;
|
result.size = `${format.width}x${format.height}`;
|
||||||
result.resolution = `${format.height}p`;
|
result.resolution = `${format.height}p`;
|
||||||
} else if (formatInfo?.height && formatInfo?.width) {
|
|
||||||
result.size = `${formatInfo.width}x${formatInfo.height}`;
|
|
||||||
result.resolution = `${formatInfo.height}p`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { visualizer } from 'rollup-plugin-visualizer';
|
||||||
import { defineConfig, UserConfig } from 'vite'
|
import { defineConfig, UserConfig } from 'vite'
|
||||||
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
||||||
import viteCompression from 'vite-plugin-compression';
|
import viteCompression from 'vite-plugin-compression';
|
||||||
@@ -17,6 +18,7 @@ const config: UserConfig = {
|
|||||||
legacy({
|
legacy({
|
||||||
targets: ['defaults', 'not IE 11'],
|
targets: ['defaults', 'not IE 11'],
|
||||||
}),
|
}),
|
||||||
|
visualizer(),
|
||||||
viteCompression({
|
viteCompression({
|
||||||
deleteOriginFile: true
|
deleteOriginFile: true
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -180,6 +180,8 @@ export class LoggerPlugin implements CompilerPlugin {
|
|||||||
|
|
||||||
let logLine = '';
|
let logLine = '';
|
||||||
|
|
||||||
|
const telemetryEnabled = level === 'LogError' || level === 'LogWarn';
|
||||||
|
|
||||||
if (isDebug) {
|
if (isDebug) {
|
||||||
const RED = '[31m';
|
const RED = '[31m';
|
||||||
const YELLOW = '[33m';
|
const YELLOW = '[33m';
|
||||||
@@ -217,7 +219,9 @@ function ${newFunctionName}(${args.join(', ')}) as void
|
|||||||
if logger.logLevel < ${func.level}
|
if logger.logLevel < ${func.level}
|
||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
logger.logLine = ${logLine}
|
line = ${logLine}
|
||||||
|
logger.logLine = line
|
||||||
|
${(telemetryEnabled ? `m.global.telemetry.${level} = line` : '')}
|
||||||
end function
|
end function
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user