Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6535006d66 | ||
|
|
a43cb91e1e | ||
|
|
58ce807e42 | ||
|
|
2319ae7025 | ||
|
|
1f2058abce | ||
|
|
aadbde330d | ||
|
|
60df07c95c | ||
|
|
71757bb9d5 | ||
|
|
630176d8aa | ||
|
|
03c7f9afe6 | ||
|
|
3c58f90cc9 | ||
|
|
b5261d900f | ||
|
|
9a319eab75 | ||
|
|
aca9cb890d | ||
|
|
c77eb30985 | ||
|
|
6fc842ca37 | ||
|
|
a1ce7aa9fc | ||
|
|
9e3363f22c | ||
|
|
d42d783738 | ||
|
|
5f1a4c8eb6 | ||
|
|
c3494a7f5d | ||
|
|
103b7f2a71 | ||
|
|
c7377e0e06 | ||
|
|
58f521f923 | ||
|
|
4293a958d0 | ||
|
|
4a89fd0aa9 | ||
|
|
f1a3df81b2 | ||
|
|
d876f819fc | ||
|
|
757dc6069e | ||
|
|
e7f4b3fee1 | ||
|
|
319457bada | ||
|
|
c91f5e49c0 | ||
|
|
45e320abe4 | ||
|
|
4d1673ecfb | ||
|
|
3eb3c0854a | ||
|
|
24cf06bf44 | ||
|
|
9318db7762 | ||
|
|
42ca2d1b30 | ||
|
|
446bba67c9 |
No files matched your search
Vendored
+23
@@ -76,6 +76,29 @@
|
|||||||
"args": "--log-level info --project bsconfig.tests.json --create-package --sourceMap=true --debug --test-mode --lintConfig ../config/bslint.jsonc",
|
"args": "--log-level info --project bsconfig.tests.json --create-package --sourceMap=true --debug --test-mode --lintConfig ../config/bslint.jsonc",
|
||||||
"cwd": "${workspaceFolder}/playlet-lib",
|
"cwd": "${workspaceFolder}/playlet-lib",
|
||||||
"console": "integratedTerminal"
|
"console": "integratedTerminal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Playground",
|
||||||
|
"type": "brightscript",
|
||||||
|
"request": "launch",
|
||||||
|
"envFile": "${workspaceFolder}/.env",
|
||||||
|
"host": "${env:ROKU_DEV_TARGET}",
|
||||||
|
"password": "${env:ROKU_DEVPASSWORD}",
|
||||||
|
"stopOnEntry": false,
|
||||||
|
"enableDebuggerAutoRecovery": false,
|
||||||
|
"stopDebuggerOnAppExit": false,
|
||||||
|
"rootDir": "${workspaceFolder}/build/playground",
|
||||||
|
"sourceDirs": [
|
||||||
|
"${workspaceFolder}/playground/src"
|
||||||
|
],
|
||||||
|
"files": [
|
||||||
|
"**"
|
||||||
|
],
|
||||||
|
"preLaunchTask": "build-playground",
|
||||||
|
"injectRdbOnDeviceComponent": true,
|
||||||
|
"injectRaleTrackerTask": true,
|
||||||
|
"raleTrackerTaskFileLocation": "${workspaceFolder}/tools/RALE/TrackerTask.xml",
|
||||||
|
"enableDebugProtocol": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"compounds": [
|
"compounds": [
|
||||||
|
|||||||
Vendored
+5
@@ -49,6 +49,11 @@
|
|||||||
"label": "build-web",
|
"label": "build-web",
|
||||||
"script": "build:web",
|
"script": "build:web",
|
||||||
"type": "npm"
|
"type": "npm"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "build-playground",
|
||||||
|
"script": "build:playground",
|
||||||
|
"type": "npm"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -5,6 +5,49 @@ 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.44.4] - 2025-11-23
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Subscriptions looping instead of loading older videos
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
|
||||||
|
- Trending endpoints from code base
|
||||||
|
|
||||||
|
## [0.44.3] - 2025-11-14
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Json parsing with invalid chars like `\u0000` preventing some channels from loading
|
||||||
|
|
||||||
|
## [0.44.2] - 2025-11-13
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Removed retry on trending feeds
|
||||||
|
|
||||||
|
## [0.44.1] - 2025-11-12
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Small change in post-live dvr detection
|
||||||
|
- Issue where recommended videos are all "UPCOMING" paid content
|
||||||
|
- Errors related to loading the trending feeds. Trending will be removed from Playlet in a future release.
|
||||||
|
|
||||||
|
## [0.44.0] - 2025-11-09
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Implemented compactRadioRenderer node
|
||||||
|
- Prioritise manually created subtitles over auto-generated ones
|
||||||
|
|
||||||
|
## [0.43.9] - 2025-11-07
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Another mistake in OTF streams
|
||||||
|
|
||||||
## [0.43.8] - 2025-11-07
|
## [0.43.8] - 2025-11-07
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -58,6 +58,12 @@
|
|||||||
"regex": "\\bTr\\s*\\(\\s*\"[^\\\"]*\"\\s*\\)",
|
"regex": "\\bTr\\s*\\(\\s*\"[^\\\"]*\"\\s*\\)",
|
||||||
"regexFlags": "ig",
|
"regexFlags": "ig",
|
||||||
"message": "Tr(\"String\") is not allowed. Use Tr(Locale.Key) instead."
|
"message": "Tr(\"String\") is not allowed. Use Tr(Locale.Key) instead."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "NO_PARSE_JSON",
|
||||||
|
"regex": "\\s*ParseJson\\(",
|
||||||
|
"regexFlags": "ig",
|
||||||
|
"message": "ParseJson is not allowed. Use StringUtils.ParseJsonSafe() instead."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"files": [
|
"files": [
|
||||||
|
|||||||
Generated
+85
-1125
File diff suppressed because it is too large.
Load diff
+10
-9
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.43.8",
|
"version": "0.44.4",
|
||||||
"description": "Unofficial YouTube client for Roku",
|
"description": "Unofficial YouTube client for Roku",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rokucommunity/bslint": "^0.8.38",
|
"@rokucommunity/bslint": "^0.8.38",
|
||||||
"@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.9.2",
|
"@types/node": "^24.10.1",
|
||||||
"@types/xml2js": "^0.4.14",
|
"@types/xml2js": "^0.4.14",
|
||||||
"argparse": "^2.0.1",
|
"argparse": "^2.0.1",
|
||||||
"brighterscript": "0.70.3",
|
"brighterscript": "0.70.3",
|
||||||
@@ -15,14 +15,14 @@
|
|||||||
"crypto-js": "^4.2.0",
|
"crypto-js": "^4.2.0",
|
||||||
"dotenv": "^17.2.3",
|
"dotenv": "^17.2.3",
|
||||||
"fs-extra": "^11.3.2",
|
"fs-extra": "^11.3.2",
|
||||||
"glob": "^11.0.3",
|
"glob": "^13.0.0",
|
||||||
"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.5",
|
"mailparser": "^3.9.0",
|
||||||
"protocol-buffers-schema": "^3.6.0",
|
"protocol-buffers-schema": "^3.6.0",
|
||||||
"puppeteer": "^24.27.0",
|
"puppeteer": "^24.31.0",
|
||||||
"roku-deploy": "^3.14.4",
|
"roku-deploy": "^3.15.0",
|
||||||
"roku-test-automation": "^2.2.1",
|
"roku-test-automation": "^2.2.1",
|
||||||
"rooibos-roku": "5.15.5",
|
"rooibos-roku": "5.15.5",
|
||||||
"rounded-rect-9patch": "^1.1.2",
|
"rounded-rect-9patch": "^1.1.2",
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
"shelljs": "^0.10.0",
|
"shelljs": "^0.10.0",
|
||||||
"ts-node": "^10.9.2",
|
"ts-node": "^10.9.2",
|
||||||
"typescript": "5.9.3",
|
"typescript": "5.9.3",
|
||||||
"telnet-client": "^2.2.6",
|
"telnet-client": "^2.2.9",
|
||||||
"xml2js": "^0.6.2",
|
"xml2js": "^0.6.2",
|
||||||
"yaml": "^2.8.1"
|
"yaml": "^2.8.1"
|
||||||
},
|
},
|
||||||
@@ -48,6 +48,7 @@
|
|||||||
"build:lib:dev": "cd playlet-lib && npm run build:dev",
|
"build:lib:dev": "cd playlet-lib && npm run build:dev",
|
||||||
"build:lib:prod": "cd playlet-lib && npm run build:prod",
|
"build:lib:prod": "cd playlet-lib && npm run build:prod",
|
||||||
"build:web": "cd playlet-web && npm run build",
|
"build:web": "cd playlet-web && npm run build",
|
||||||
|
"build:playground": "cd playground && npm run build",
|
||||||
"lint": "cd playlet-lib && npm run lint && cd ../playlet-app && npm run lint && cd ../playlet-web && npm run lint",
|
"lint": "cd playlet-lib && npm run lint && cd ../playlet-app && npm run lint && cd ../playlet-web && npm run lint",
|
||||||
"lint:fix": "cd playlet-lib && npm run lint:fix && cd ../playlet-app && npm run lint:fix && cd ../playlet-web && npm run lint",
|
"lint:fix": "cd playlet-lib && npm run lint:fix && cd ../playlet-app && npm run lint:fix && cd ../playlet-web && npm run lint",
|
||||||
"format": "cd playlet-lib && npm run format && cd ../playlet-app && npm run format",
|
"format": "cd playlet-lib && npm run format && cd ../playlet-app && npm run format",
|
||||||
@@ -65,7 +66,7 @@
|
|||||||
"screenshot": "node tools/screenshot.js",
|
"screenshot": "node tools/screenshot.js",
|
||||||
"convert-images": "node tools/convert-images.js",
|
"convert-images": "node tools/convert-images.js",
|
||||||
"update-rale-component": "cd tools/RALE && rm TrackerTask.xml && curl -o TrackerTask.zip https://devtools.web.roku.com/roku-advanced-layout-editor/app/TrackerTask.zip && unzip TrackerTask.zip && rm TrackerTask.zip",
|
"update-rale-component": "cd tools/RALE && rm TrackerTask.xml && curl -o TrackerTask.zip https://devtools.web.roku.com/roku-advanced-layout-editor/app/TrackerTask.zip && unzip TrackerTask.zip && rm TrackerTask.zip",
|
||||||
"postinstall": "cd playlet-lib && npm install && cd ../playlet-app && npm install && cd ../playlet-web && npm install",
|
"postinstall": "cd playlet-lib && npm install && cd ../playlet-app && npm install && cd ../playground && npm install && cd ../playlet-web && npm install",
|
||||||
"update-deps": "npx npm-check-updates --deep --upgrade --install always --reject rooibos-roku",
|
"update-deps": "npx npm-check-updates --deep --upgrade --install always --reject rooibos-roku",
|
||||||
"registry:write": "node tools/registry.js --input registry.json",
|
"registry:write": "node tools/registry.js --input registry.json",
|
||||||
"registry:read": "node tools/registry.js --output registry.json",
|
"registry:read": "node tools/registry.js --output registry.json",
|
||||||
@@ -75,6 +76,6 @@
|
|||||||
"shutdown": "node tools/shutdown.js"
|
"shutdown": "node tools/shutdown.js"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@rollup/rollup-linux-x64-gnu": "^4.52.5"
|
"@rollup/rollup-linux-x64-gnu": "^4.53.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
# Playground
|
||||||
|
|
||||||
|
Playground is a test project to try things out or iterate on a concept.
|
||||||
|
|
||||||
|
Playlet app relies on playlet lib, and playlet lib relies on web app, so sometimes iteration speed can be slower when building everything everytime.
|
||||||
|
|
||||||
|
Just like Playlet, Playground can be launched from the VSCode "Run and debug" menu.
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"extends": "../config/bsconfig.base.jsonc",
|
||||||
|
"rootDir": "src/",
|
||||||
|
"stagingDir": "../build/playground",
|
||||||
|
"outFile": "../dist/playground.zip"
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"extends": "bsconfig.json",
|
||||||
|
"createPackage": false,
|
||||||
|
"deploy": false,
|
||||||
|
"retainStagingDir": false,
|
||||||
|
"sourceMap": false
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"extends": "../config/bsconfig.tests.base.jsonc",
|
||||||
|
"rootDir": "src/",
|
||||||
|
"stagingDir": "../build/playground-tests",
|
||||||
|
"outFile": "../build/playground-tests.zip"
|
||||||
|
}
|
||||||
Generated
+12
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"name": "playground",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"lockfileVersion": 3,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {
|
||||||
|
"": {
|
||||||
|
"name": "playground",
|
||||||
|
"version": "0.1.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"name": "playground",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"description": "A playground for testing Roku development",
|
||||||
|
"scripts": {
|
||||||
|
"prebuild": "node ../tools/rm.js ../build/playground",
|
||||||
|
"build": "bsc --debug --create-package --sourceMap=true --lintConfig ../config/bslint.jsonc",
|
||||||
|
"lint": "bslint --project bsconfig.lint.json --lintConfig ../config/bslint.jsonc",
|
||||||
|
"lint:fix": "npm run lint -- --fix",
|
||||||
|
"format:base": "bsfmt \"src/**/*.brs\" \"src/**/*.bs\" \"!**/bslib.brs\" \"!**/roku_modules/**/*\" --bsfmt-path ../config/bsfmt.jsonc",
|
||||||
|
"format": "npm run format:base -- --check",
|
||||||
|
"format:fix": "npm run format:base -- --write",
|
||||||
|
"test": "npm run test:build && npm run test:run",
|
||||||
|
"test:build": "bsc --project bsconfig.tests.json --create-package --sourceMap=true --debug --test-mode --lintConfig ../config/bslint.jsonc",
|
||||||
|
"test:run": "node ../tools/run-test-app.js --package ../build/playground-tests.zip"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
function Init()
|
||||||
|
print "Playground Init"
|
||||||
|
end function
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
<component name="Playground" extends="Scene">
|
||||||
|
<interface>
|
||||||
|
<field id="exitChannel" type="bool" alwaysNotify="true" />
|
||||||
|
<field id="launchArgs" type="assocarray" />
|
||||||
|
<field id="inputArgs" type="assocarray" alwaysNotify="true" />
|
||||||
|
</interface>
|
||||||
|
<children>
|
||||||
|
<Label text="Welcome to Playlet Playground!" />
|
||||||
|
</children>
|
||||||
|
</component>
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 9.9 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 35 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
@@ -0,0 +1,31 @@
|
|||||||
|
title=Playlet Playground
|
||||||
|
|
||||||
|
major_version=0
|
||||||
|
minor_version=1
|
||||||
|
build_version=00000
|
||||||
|
|
||||||
|
ui_resolutions=hd
|
||||||
|
uri_resolution_autosub=$$RES$$,480p,720p,1080p
|
||||||
|
|
||||||
|
## Channel Assets
|
||||||
|
### Main Menu Icons / Channel Poster Artwork
|
||||||
|
#### Image sizes are FHD: 540x405px | HD: 290x218px | SD: 246x140px
|
||||||
|
mm_icon_focus_fhd=pkg:/images/channel-poster_fhd.png
|
||||||
|
mm_icon_focus_hd=pkg:/images/channel-poster_hd.png
|
||||||
|
mm_icon_focus_sd=pkg:/images/channel-poster_sd.png
|
||||||
|
|
||||||
|
### Splash Screen + Loading Screen Artwork
|
||||||
|
#### Image sizes are FHD: 1920x1080px | HD: 1280x720px | SD: 720x480px
|
||||||
|
splash_screen_fhd=pkg:/images/splash-screen_fhd.jpg
|
||||||
|
splash_screen_hd=pkg:/images/splash-screen_hd.jpg
|
||||||
|
splash_screen_sd=pkg:/images/splash-screen_sd.jpg
|
||||||
|
|
||||||
|
splash_color=#242424
|
||||||
|
splash_min_time=0
|
||||||
|
|
||||||
|
confirm_partner_button=1
|
||||||
|
|
||||||
|
supports_input_launch=1
|
||||||
|
|
||||||
|
requires_widevine_drm=1
|
||||||
|
requires_widevine_version=1.0
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
' Playlet (App to play videos from an Invidious server on Roku TVs)
|
||||||
|
' Copyright (C) 2025 Brahim Hadriche
|
||||||
|
|
||||||
|
' This program is free software: you can redistribute it and/or modify
|
||||||
|
' it under the terms of the GNU Affero General Public License as published by
|
||||||
|
' the Free Software Foundation, either version 3 of the License, or
|
||||||
|
' (at your option) any later version.
|
||||||
|
|
||||||
|
' This program is distributed in the hope that it will be useful,
|
||||||
|
' but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
' GNU Affero General Public License for more details.
|
||||||
|
|
||||||
|
' You should have received a copy of the GNU Affero General Public License
|
||||||
|
' along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
function Main(args as object) as void
|
||||||
|
screen = CreateObject("roSGScreen")
|
||||||
|
port = CreateObject("roMessagePort")
|
||||||
|
screen.setMessagePort(port)
|
||||||
|
|
||||||
|
scene = screen.CreateScene("Playground")
|
||||||
|
screen.show()
|
||||||
|
|
||||||
|
scene.ObserveField("exitChannel", port)
|
||||||
|
scene.launchArgs = args
|
||||||
|
|
||||||
|
input = CreateObject("roInput")
|
||||||
|
input.setMessagePort(port)
|
||||||
|
|
||||||
|
' The following comment is to enable the SceneGraph inspector
|
||||||
|
' on the VSCode BrightScript plugin.
|
||||||
|
' vscode_rdb_on_device_component_entry
|
||||||
|
|
||||||
|
' The following comment is to enable RALE tracking
|
||||||
|
' vscode_rale_tracker_entry
|
||||||
|
|
||||||
|
while true
|
||||||
|
msg = wait(0, port)
|
||||||
|
msgType = type(msg)
|
||||||
|
if msgType = "roSGScreenEvent"
|
||||||
|
if msg.isScreenClosed()
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
else if msgType = "roSGNodeEvent"
|
||||||
|
field = msg.getField()
|
||||||
|
data = msg.getData()
|
||||||
|
if field = "exitChannel" and data = true
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
else if msgType = "roInputEvent"
|
||||||
|
scene.inputArgs = msg.getInfo()
|
||||||
|
end if
|
||||||
|
end while
|
||||||
|
|
||||||
|
end function
|
||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-app",
|
"name": "playlet-app",
|
||||||
"version": "0.43.8",
|
"version": "0.44.4",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet-app",
|
"name": "playlet-app",
|
||||||
"version": "0.43.8"
|
"version": "0.44.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-app",
|
"name": "playlet-app",
|
||||||
"version": "0.43.8",
|
"version": "0.44.4",
|
||||||
"description": "Unofficial YouTube client for Roku",
|
"description": "Unofficial YouTube client for Roku",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prebuild": "node ../tools/rm.js ../build/playlet-app",
|
"prebuild": "node ../tools/rm.js ../build/playlet-app",
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ function GetLoadingMessagesFromCache() as object
|
|||||||
if messagesFile = ""
|
if messagesFile = ""
|
||||||
return invalid
|
return invalid
|
||||||
end if
|
end if
|
||||||
|
' bs:disable-next-line NO_PARSE_JSON
|
||||||
return ParseJson(messagesFile)
|
return ParseJson(messagesFile)
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
|||||||
@@ -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=43
|
minor_version=44
|
||||||
build_version=00008
|
build_version=00004
|
||||||
|
|
||||||
ui_resolutions=hd
|
ui_resolutions=hd
|
||||||
uri_resolution_autosub=$$RES$$,480p,720p,1080p
|
uri_resolution_autosub=$$RES$$,480p,720p,1080p
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ namespace Registry
|
|||||||
if urlsJson = invalid
|
if urlsJson = invalid
|
||||||
return invalid
|
return invalid
|
||||||
end if
|
end if
|
||||||
|
' bs:disable-next-line NO_PARSE_JSON
|
||||||
urls = ParseJson(urlsJson)
|
urls = ParseJson(urlsJson)
|
||||||
return urls
|
return urls
|
||||||
end function
|
end function
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-lib",
|
"name": "playlet-lib",
|
||||||
"version": "0.43.8",
|
"version": "0.44.4",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet-lib",
|
"name": "playlet-lib",
|
||||||
"version": "0.43.8"
|
"version": "0.44.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-lib",
|
"name": "playlet-lib",
|
||||||
"version": "0.43.8",
|
"version": "0.44.4",
|
||||||
"description": "Unofficial YouTube client for Roku",
|
"description": "Unofficial YouTube client for Roku",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prebuild": "node ../tools/rm.js ../build/playlet-lib",
|
"prebuild": "node ../tools/rm.js ../build/playlet-lib",
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ namespace DialogUtils
|
|||||||
if hasMessageId
|
if hasMessageId
|
||||||
messages = RegistryUtils.Read(RegistryUtils.MESSAGES)
|
messages = RegistryUtils.Read(RegistryUtils.MESSAGES)
|
||||||
if not StringUtils.IsNullOrEmpty(messages)
|
if not StringUtils.IsNullOrEmpty(messages)
|
||||||
messages = ParseJson(messages)
|
messages = StringUtils.ParseJsonSafe(messages)
|
||||||
if IsAssociativeArray(messages)
|
if IsAssociativeArray(messages)
|
||||||
savedMessageId = ValidString(messages["messageId"])
|
savedMessageId = ValidString(messages["messageId"])
|
||||||
if savedMessageId = messageId
|
if savedMessageId = messageId
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
|
import "pkg:/source/utils/StringUtils.bs"
|
||||||
import "pkg:/source/utils/Types.bs"
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
namespace HomeScreenUtils
|
namespace HomeScreenUtils
|
||||||
|
|
||||||
function GetFeed(feedFileName as string, preferences as object) as object
|
function GetFeed(feedFileName as string, preferences as object) as object
|
||||||
feed = ParseJson(ReadAsciiFile(feedFileName))
|
feed = StringUtils.ParseJsonSafe(ReadAsciiFile(feedFileName))
|
||||||
for each item in feed
|
for each item in feed
|
||||||
item.title = Tr(item.title)
|
item.title = Tr(item.title)
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -3,11 +3,12 @@ import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs"
|
|||||||
import "pkg:/source/utils/Logging.bs"
|
import "pkg:/source/utils/Logging.bs"
|
||||||
import "pkg:/source/utils/MathUtils.bs"
|
import "pkg:/source/utils/MathUtils.bs"
|
||||||
import "pkg:/source/utils/RemoteKeys.bs"
|
import "pkg:/source/utils/RemoteKeys.bs"
|
||||||
|
import "pkg:/source/utils/StringUtils.bs"
|
||||||
import "pkg:/source/utils/Types.bs"
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
m.homeLayout = {}
|
m.homeLayout = {}
|
||||||
homeLayout = ParseJson(ReadAsciiFile("libpkg:/config/default_home_layout.yaml"))
|
homeLayout = StringUtils.ParseJsonSafe(ReadAsciiFile("libpkg:/config/default_home_layout.yaml"))
|
||||||
for each item in homeLayout
|
for each item in homeLayout
|
||||||
m.homeLayout[item.id] = item
|
m.homeLayout[item.id] = item
|
||||||
end for
|
end for
|
||||||
|
|||||||
+1
-1
@@ -324,7 +324,7 @@ end function
|
|||||||
|
|
||||||
function CanFetchWithCors(instance as string, testNode as object, cancellation as object) as void
|
function CanFetchWithCors(instance as string, testNode as object, cancellation as object) as void
|
||||||
try
|
try
|
||||||
url = `${instance}/api/v1/trending`
|
url = `${instance}/api/v1/popular`
|
||||||
response = HttpClient.Get(url).NoCache().Cancellation(cancellation).Await()
|
response = HttpClient.Get(url).NoCache().Cancellation(cancellation).Await()
|
||||||
|
|
||||||
if not response.IsSuccess()
|
if not response.IsSuccess()
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ function Load() as void
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
m.bookmarksString = bookmarksString
|
m.bookmarksString = bookmarksString
|
||||||
bookmarks = ParseJson(bookmarksString)
|
bookmarks = StringUtils.ParseJsonSafe(bookmarksString)
|
||||||
if bookmarks = invalid
|
if bookmarks = invalid
|
||||||
LogWarn("Failed to parse bookmarks json")
|
LogWarn("Failed to parse bookmarks json")
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ class DashManifest
|
|||||||
xml = new XmlObject()
|
xml = new XmlObject()
|
||||||
|
|
||||||
xml.Comment(`Generated by Playlet - Video ID: ${metadata.videoId}`)
|
xml.Comment(`Generated by Playlet - Video ID: ${metadata.videoId}`)
|
||||||
|
xml.Comment(`Parser: ${ValidString(metadata.parser)}`)
|
||||||
|
|
||||||
if xml.Node("MPD", {
|
if xml.Node("MPD", {
|
||||||
"xmlns": "urn:mpeg:dash:schema:mpd:2011"
|
"xmlns": "urn:mpeg:dash:schema:mpd:2011"
|
||||||
|
|||||||
@@ -267,61 +267,6 @@ namespace InnertubeService
|
|||||||
return Innertube.Search(query, options)
|
return Innertube.Search(query, options)
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function GetTrending(options = invalid as object) as object
|
|
||||||
cancellation = OptionUtils.Get(options, "cancellation")
|
|
||||||
trendingType = LCase(OptionUtils.GetOrDefault(options, "type", ""))
|
|
||||||
disableShorts = OptionUtils.GetOrDefault(options, "disableShorts", false)
|
|
||||||
raw = OptionUtils.GetOrDefault(options, "raw", false)
|
|
||||||
|
|
||||||
params = ""
|
|
||||||
if trendingType = "music"
|
|
||||||
' {"44:proto": {"3:string": "ytma_charts"}}
|
|
||||||
params = "4gINGgt5dG1hX2NoYXJ0cw%3D%3D"
|
|
||||||
else if trendingType = "gaming"
|
|
||||||
' {"44:proto": {"3:string": "gaming_corpus_most_popular"}}
|
|
||||||
params = "4gIcGhpnYW1pbmdfY29ycHVzX21vc3RfcG9wdWxhcg%3D%3D"
|
|
||||||
else if trendingType = "movies"
|
|
||||||
' {"44:proto": {"3:string": "trailers"}}
|
|
||||||
params = "4gIKGgh0cmFpbGVycw%3D%3D"
|
|
||||||
end if
|
|
||||||
|
|
||||||
request = Innertube.CreateBrowseRequest("FEtrending", Innertube.ClientType.WEB, { params: params })
|
|
||||||
request.Cancellation(cancellation)
|
|
||||||
|
|
||||||
if raw
|
|
||||||
request.LogCurlCommand(true)
|
|
||||||
request.NoCache()
|
|
||||||
end if
|
|
||||||
|
|
||||||
response = request.Await()
|
|
||||||
if not response.IsSuccess()
|
|
||||||
return {
|
|
||||||
error: response.ErrorMessage()
|
|
||||||
}
|
|
||||||
end if
|
|
||||||
|
|
||||||
if raw
|
|
||||||
return response.Json()
|
|
||||||
end if
|
|
||||||
|
|
||||||
feeds = Innertube.ParseResponseDataForFeeds(response.Json(), {
|
|
||||||
response: response
|
|
||||||
disableCreatorOnTheRise: true
|
|
||||||
disableShorts: disableShorts
|
|
||||||
})
|
|
||||||
|
|
||||||
result = {
|
|
||||||
feeds: feeds
|
|
||||||
}
|
|
||||||
|
|
||||||
cacheControl = Innertube.ParseResponseForCacheControl(response)
|
|
||||||
if cacheControl <> invalid
|
|
||||||
result["cache-control"] = cacheControl
|
|
||||||
end if
|
|
||||||
|
|
||||||
return result
|
|
||||||
end function
|
|
||||||
|
|
||||||
function GetHome(options = invalid as object) as object
|
function GetHome(options = invalid as object) as object
|
||||||
return GetBrowseAuthenticatedPage("FEwhat_to_watch", options)
|
return GetBrowseAuthenticatedPage("FEwhat_to_watch", options)
|
||||||
end function
|
end function
|
||||||
@@ -338,12 +283,12 @@ namespace InnertubeService
|
|||||||
return GetBrowseAuthenticatedPage("FEplaylist_aggregation", options)
|
return GetBrowseAuthenticatedPage("FEplaylist_aggregation", options)
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function GetBrowseAuthenticatedPage(browserId as string, options = invalid as object) as object
|
function GetBrowseAuthenticatedPage(browseId as string, options = invalid as object) as object
|
||||||
cancellation = OptionUtils.Get(options, "cancellation")
|
cancellation = OptionUtils.Get(options, "cancellation")
|
||||||
accessToken = OptionUtils.Get(options, "accessToken")
|
accessToken = OptionUtils.Get(options, "accessToken")
|
||||||
disableShorts = OptionUtils.GetOrDefault(options, "disableShorts", false)
|
disableShorts = OptionUtils.GetOrDefault(options, "disableShorts", false)
|
||||||
|
|
||||||
request = Innertube.CreateBrowseRequest(browserId, Innertube.ClientType.Tv, options)
|
request = Innertube.CreateBrowseRequest(browseId, Innertube.ClientType.Tv, options)
|
||||||
|
|
||||||
if accessToken <> invalid
|
if accessToken <> invalid
|
||||||
request.Header("Authorization", "Bearer " + accessToken)
|
request.Header("Authorization", "Bearer " + accessToken)
|
||||||
@@ -360,6 +305,7 @@ namespace InnertubeService
|
|||||||
feeds = Innertube.ParseResponseDataForFeeds(response.Json(), {
|
feeds = Innertube.ParseResponseDataForFeeds(response.Json(), {
|
||||||
response: response
|
response: response
|
||||||
disableShorts: disableShorts
|
disableShorts: disableShorts
|
||||||
|
browseId: browseId
|
||||||
})
|
})
|
||||||
|
|
||||||
result = {
|
result = {
|
||||||
@@ -521,7 +467,7 @@ namespace InnertubeService
|
|||||||
return response.Json()
|
return response.Json()
|
||||||
end if
|
end if
|
||||||
|
|
||||||
result = Innertube.ParseChannelPageResponseData(response.Json(), response)
|
result = Innertube.ParseChannelPageResponseData(channelId, response.Json(), response)
|
||||||
if result.authorId = invalid and result.error = invalid
|
if result.authorId = invalid and result.error = invalid
|
||||||
result["authorId"] = channelId
|
result["authorId"] = channelId
|
||||||
end if
|
end if
|
||||||
@@ -663,7 +609,7 @@ namespace InnertubeService
|
|||||||
return response.Json()
|
return response.Json()
|
||||||
end if
|
end if
|
||||||
|
|
||||||
result = Innertube.ParsePlaylistPageResponseData(response.Json(), response)
|
result = Innertube.ParsePlaylistPageResponseData(playlistId, response.Json(), response)
|
||||||
|
|
||||||
if result.playlistId = invalid and result.error = invalid
|
if result.playlistId = invalid and result.error = invalid
|
||||||
result["playlistId"] = playlistId
|
result["playlistId"] = playlistId
|
||||||
|
|||||||
@@ -103,9 +103,8 @@ namespace Innertube
|
|||||||
' Ignored nodes:
|
' Ignored nodes:
|
||||||
' TODO:P2 handle navigateAction - which are usually a redirect
|
' TODO:P2 handle navigateAction - which are usually a redirect
|
||||||
' "navigateAction": ParseNotImplemented
|
' "navigateAction": ParseNotImplemented
|
||||||
' TODO:P2 radioRenderer seems like a Mix https://github.com/iBicha/playlet/issues/709
|
|
||||||
"radioRenderer": ParseRadioRenderer
|
"radioRenderer": ParseRadioRenderer
|
||||||
' "compactRadioRenderer": ParseNotImplemented
|
"compactRadioRenderer": ParseCompactRadioRenderer
|
||||||
' TODO:P2 A carousel of videos, found on the home tab of a channel.
|
' TODO:P2 A carousel of videos, found on the home tab of a channel.
|
||||||
' Should probably be parsed.
|
' Should probably be parsed.
|
||||||
' "carouselItemRenderer": ParseNotImplemented
|
' "carouselItemRenderer": ParseNotImplemented
|
||||||
@@ -252,6 +251,15 @@ namespace Innertube
|
|||||||
context.currentFeed.sortOptions = sortOptions
|
context.currentFeed.sortOptions = sortOptions
|
||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
continuation = ObjectUtils.Dig(nodeData, ["continuations", 0, "nextContinuationData", "continuation"])
|
||||||
|
if IsString(continuation)
|
||||||
|
if not StringUtils.IsNullOrEmpty(context.currentFeed.continuation)
|
||||||
|
StartNewFeed("", context)
|
||||||
|
end if
|
||||||
|
context.currentFeed.continuation = continuation
|
||||||
|
end if
|
||||||
|
|
||||||
return nodeData["contents"]
|
return nodeData["contents"]
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@@ -277,6 +285,17 @@ namespace Innertube
|
|||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
if ValidString(context.browseId) = "FEwhat_to_watch"
|
||||||
|
' shelfs with a heroCarouselHeaderRenderer are usually big carousels at the top of the home page
|
||||||
|
' to advertise some paid content.
|
||||||
|
' They hijack the shelf we want to parse (e.g. Recommended videos).
|
||||||
|
heroCarouselHeader = ObjectUtils.Dig(nodeData, ["headerRenderer", "heroCarouselHeaderRenderer"])
|
||||||
|
if heroCarouselHeader <> invalid
|
||||||
|
LogInfo("Skipping shelf with heroCarouselHeaderRenderer")
|
||||||
|
return invalid
|
||||||
|
end if
|
||||||
|
end if
|
||||||
|
|
||||||
' TODO: handle shelfRenderer.title
|
' TODO: handle shelfRenderer.title
|
||||||
' TODO: handle shelfRenderer.headerRenderer.shelfHeaderRenderer.avatarLockup.avatarLockupRenderer.title
|
' TODO: handle shelfRenderer.headerRenderer.shelfHeaderRenderer.avatarLockup.avatarLockupRenderer.title
|
||||||
return nodeData["content"]
|
return nodeData["content"]
|
||||||
@@ -1025,6 +1044,36 @@ namespace Innertube
|
|||||||
return invalid
|
return invalid
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
function ParseCompactRadioRenderer(nodeData as object, context as object) as object
|
||||||
|
playlistId = nodeData["playlistId"]
|
||||||
|
if not IsString(playlistId)
|
||||||
|
Warning("Invalid playlist ID in compactRadioRenderer", nodeData, context)
|
||||||
|
return invalid
|
||||||
|
end if
|
||||||
|
|
||||||
|
videoCountText = ParseText(nodeData["videoCountText"])
|
||||||
|
if videoCountText = ""
|
||||||
|
videoCountText = ParseText(nodeData["videoCountShortText"])
|
||||||
|
end if
|
||||||
|
|
||||||
|
playlist = {
|
||||||
|
"type": "playlist"
|
||||||
|
"playlistId": playlistId
|
||||||
|
"title": ParseText(nodeData["title"])
|
||||||
|
"playlistThumbnail": ObjectUtils.Dig(nodeData, ["thumbnail", "thumbnails", 0, "url"])
|
||||||
|
"videoCountText": videoCountText
|
||||||
|
}
|
||||||
|
|
||||||
|
' Mixes have a videoId, which is the first video in the mix
|
||||||
|
videoId = ObjectUtils.Dig(nodeData, ["navigationEndpoint", "watchEndpoint", "videoId"])
|
||||||
|
if IsString(videoId)
|
||||||
|
playlist["videoId"] = videoId
|
||||||
|
end if
|
||||||
|
|
||||||
|
PushFeedItem(playlist, context)
|
||||||
|
return invalid
|
||||||
|
end function
|
||||||
|
|
||||||
function ParseGridShelfViewModel(nodeData as object, _context as object) as object
|
function ParseGridShelfViewModel(nodeData as object, _context as object) as object
|
||||||
return nodeData["contents"]
|
return nodeData["contents"]
|
||||||
end function
|
end function
|
||||||
@@ -1400,6 +1449,10 @@ namespace Innertube
|
|||||||
return TileRendererTypeChannel(nodeData, context)
|
return TileRendererTypeChannel(nodeData, context)
|
||||||
else if contentType = "TILE_CONTENT_TYPE_EDU"
|
else if contentType = "TILE_CONTENT_TYPE_EDU"
|
||||||
' Not implemented yet - https://github.com/iBicha/playlet/issues/751
|
' Not implemented yet - https://github.com/iBicha/playlet/issues/751
|
||||||
|
' Basically a tile that redirects to a search with predifined querty.
|
||||||
|
' To support, Playlet will probably need to implement an independent
|
||||||
|
' search view that can be opened from anywhere.
|
||||||
|
return invalid
|
||||||
end if
|
end if
|
||||||
|
|
||||||
Warning(`Unknown content type: ${contentType}`, nodeData, context)
|
Warning(`Unknown content type: ${contentType}`, nodeData, context)
|
||||||
@@ -1893,6 +1946,8 @@ namespace Innertube
|
|||||||
function ParseCompactMovieRenderer(nodeData as object, context as object) as object
|
function ParseCompactMovieRenderer(nodeData as object, context as object) as object
|
||||||
videoId = nodeData["videoId"]
|
videoId = nodeData["videoId"]
|
||||||
if not IsString(videoId)
|
if not IsString(videoId)
|
||||||
|
' TODO:P2 Can be a show, example
|
||||||
|
' {"badges":[{"metadataBadgeRenderer":{"accessibilityData":{"label":"Free with ads"},"label":"Free with ads","style":"BADGE_STYLE_TYPE_YPC","trackingParams":"CKQBEJaLARgJIhMI15bJgdLnkAMVoHtMCB0nGTYG"}},{"metadataBadgeRenderer":{"accessibilityData":{"label":"tv-g"},"label":"TV-G","style":"BADGE_STYLE_TYPE_MEDIA","trackingParams":"CKQBEJaLARgJIhMI15bJgdLnkAMVoHtMCB0nGTYG"}}],"navigationEndpoint":{"browseEndpoint":{"browseId":"SCLKZr4NmdhyFZXLCYhehRmg","params":"kgYcGhoSGFVDTEtacjRObWRoeUZaWExDWWhlaFJtZw%3D%3D"},"clickTrackingParams":"CKQBEJaLARgJIhMI15bJgdLnkAMVoHtMCB0nGTYGygEEl7wVRg==","commandMetadata":{"webCommandMetadata":{"apiUrl":"/youtubei/v1/browse","rootVe":6827,"url":"/show/SCLKZr4NmdhyFZXLCYhehRmg?sbp=GhoSGFVDTEtacjRObWRoeUZaWExDWWhlaFJtZw%253D%253D","webPageType":"WEB_PAGE_TYPE_BROWSE"}}},"thumbnail":{"thumbnails":[{"height":596,"url":"https://yt3.ggpht.com/KPRERPv8FmjHUtaEip00aL1RuIkU-0_YR4XrbzG_66s6kkm1sx9MtSJgzeYexpRVtXoN1P1OjQ=w1060-fcrop64=1,00000000ffffffff-k-c0xffffffff-no-nd-rj","width":1060}]},"thumbnailOverlays":[{"thumbnailOverlayBottomPanelRenderer":{"text":{"runs":[{"text":"4"},{"text":" seasons"}]}}}],"title":{"accessibility":{"accessibilityData":{"label":"Everything's Rosie 4 seasons"}},"simpleText":"Everything's Rosie"},"topMetadataItems":[{"simpleText":"Animation \u2022 2011"}],"trackingParams":"CKQBEJaLARgJIhMI15bJgdLnkAMVoHtMCB0nGTYG"}
|
||||||
Warning("Invalid videoId in compactMovieRenderer", nodeData, context)
|
Warning("Invalid videoId in compactMovieRenderer", nodeData, context)
|
||||||
return invalid
|
return invalid
|
||||||
end if
|
end if
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ namespace Innertube
|
|||||||
for i = 0 to adaptiveFormats.Count() - 1
|
for i = 0 to adaptiveFormats.Count() - 1
|
||||||
formatsToProcess.Push({
|
formatsToProcess.Push({
|
||||||
format: adaptiveFormats[i]
|
format: adaptiveFormats[i]
|
||||||
file: `tmp:/otf_segments/${i}.bin`
|
filePath: `tmp:/otf_segments/${i}.bin`
|
||||||
})
|
})
|
||||||
end for
|
end for
|
||||||
|
|
||||||
@@ -38,6 +38,8 @@ namespace Innertube
|
|||||||
requestHeaders["referer"] = "https://www.youtube.com"
|
requestHeaders["referer"] = "https://www.youtube.com"
|
||||||
requestHeaders["DNT"] = "?1"
|
requestHeaders["DNT"] = "?1"
|
||||||
|
|
||||||
|
segmentDurationsRegex = CreateObject("roRegex", "(\d+)(?:\(r=(\d+)\))?", "g")
|
||||||
|
|
||||||
fs = CreateObject("roFileSystem")
|
fs = CreateObject("roFileSystem")
|
||||||
fs.Delete("tmp:/otf_segments")
|
fs.Delete("tmp:/otf_segments")
|
||||||
fs.CreateDirectory("tmp:/otf_segments")
|
fs.CreateDirectory("tmp:/otf_segments")
|
||||||
@@ -45,7 +47,7 @@ namespace Innertube
|
|||||||
while true
|
while true
|
||||||
while formatsToProcess.Count() > 0 and pendingFormats.Count() < OTF_MAX_REQUEST_COUNT
|
while formatsToProcess.Count() > 0 and pendingFormats.Count() < OTF_MAX_REQUEST_COUNT
|
||||||
formatToProcess = formatsToProcess.Pop()
|
formatToProcess = formatsToProcess.Pop()
|
||||||
request = OTFMakeSegmentInfoRequest(formatToProcess.format, formatToProcess.file, requestHeaders, errors, cancellation)
|
request = OTFMakeSegmentInfoRequest(formatToProcess.format, formatToProcess.filePath, requestHeaders, errors, cancellation)
|
||||||
if request <> invalid
|
if request <> invalid
|
||||||
formatToProcess.request = request
|
formatToProcess.request = request
|
||||||
pendingFormats.Push(formatToProcess)
|
pendingFormats.Push(formatToProcess)
|
||||||
@@ -58,7 +60,7 @@ namespace Innertube
|
|||||||
|
|
||||||
pendingFormat = pendingFormats.Shift()
|
pendingFormat = pendingFormats.Shift()
|
||||||
' returns false if processing should stop (e.g., cancelled)
|
' returns false if processing should stop (e.g., cancelled)
|
||||||
if not OTFProcessPendingFormat(pendingFormat.format, pendingFormat.request, pendingFormat.file, errors)
|
if not OTFProcessPendingFormat(pendingFormat.format, pendingFormat.request, pendingFormat.filePath, segmentDurationsRegex, errors)
|
||||||
exit while
|
exit while
|
||||||
end if
|
end if
|
||||||
end while
|
end while
|
||||||
@@ -75,7 +77,7 @@ namespace Innertube
|
|||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OTFMakeSegmentInfoRequest(format as object, file as string, requestHeaders as object, errors as object, cancellation as object) as object
|
function OTFMakeSegmentInfoRequest(format as object, filePath as string, requestHeaders as object, errors as object, cancellation as object) as object
|
||||||
url = format.url
|
url = format.url
|
||||||
if StringUtils.IsNullOrEmpty(url)
|
if StringUtils.IsNullOrEmpty(url)
|
||||||
errors.message += `URL is empty for itag ${format.itag}.\n`
|
errors.message += `URL is empty for itag ${format.itag}.\n`
|
||||||
@@ -89,14 +91,14 @@ namespace Innertube
|
|||||||
|
|
||||||
request = HttpClient.Get(otfUrl)
|
request = HttpClient.Get(otfUrl)
|
||||||
request.Headers(requestHeaders)
|
request.Headers(requestHeaders)
|
||||||
request.ToFile(file)
|
request.ToFile(filePath)
|
||||||
request.Cancellation(cancellation)
|
request.Cancellation(cancellation)
|
||||||
request.Send()
|
request.Send()
|
||||||
|
|
||||||
return request
|
return request
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OTFProcessPendingFormat(format as object, request as object, file as string, errors as object) as boolean
|
function OTFProcessPendingFormat(format as object, request as object, filePath as string, segmentDurationsRegex as object, errors as object) as boolean
|
||||||
response = request.Await()
|
response = request.Await()
|
||||||
|
|
||||||
if response.IsCancelled()
|
if response.IsCancelled()
|
||||||
@@ -108,18 +110,18 @@ namespace Innertube
|
|||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
segmentDurations = OTFParseFileForSegmentInfo(file, errors)
|
segmentDurations = OTFParseFileForSegmentDurations(filePath, segmentDurationsRegex, errors)
|
||||||
if segmentDurations = invalid
|
if segmentDurations = invalid
|
||||||
errors.message += `Failed to parse segment info for itag ${format.itag}.\n`
|
errors.message += `Failed to parse segment durations for itag ${format.itag}.\n`
|
||||||
errors.message += `Headers: ${ToString(response.Headers())}\n`
|
errors.message += `Headers: ${ToString(response.Headers())}\n`
|
||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
format.otfSegmentInfo = segmentDurations
|
format["otfSegmentDurations"] = segmentDurations
|
||||||
return true
|
return true
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OTFParseFileForSegmentInfo(filePath as string, errors as object) as dynamic
|
function OTFParseFileForSegmentDurations(filePath as string, segmentDurationsRegex as object, errors as object) as dynamic
|
||||||
buffer = CreateObject("roByteArray")
|
buffer = CreateObject("roByteArray")
|
||||||
|
|
||||||
buffer.FromAsciiString("Segment-Durations-Ms:")
|
buffer.FromAsciiString("Segment-Durations-Ms:")
|
||||||
@@ -129,14 +131,14 @@ namespace Innertube
|
|||||||
endMarkerHex = buffer.ToHexString()
|
endMarkerHex = buffer.ToHexString()
|
||||||
|
|
||||||
if not buffer.ReadFile(filePath)
|
if not buffer.ReadFile(filePath)
|
||||||
errors.message += `Failed to read file at path ${filePath}.\n`
|
errors.message += `Failed to read filePath ${filePath}.\n`
|
||||||
return invalid
|
return invalid
|
||||||
end if
|
end if
|
||||||
contentHex = buffer.ToHexString()
|
contentHex = buffer.ToHexString()
|
||||||
|
|
||||||
startIndex = contentHex.InStr(startMarkerHex)
|
startIndex = contentHex.InStr(startMarkerHex)
|
||||||
if startIndex = -1
|
if startIndex = -1
|
||||||
errors.message += `Start marker not found in file at path ${filePath}.\n`
|
errors.message += `Start marker not found in filePath ${filePath}.\n`
|
||||||
errors.attachments.Push({
|
errors.attachments.Push({
|
||||||
filename: filePath
|
filename: filePath
|
||||||
content_type: "plain/text"
|
content_type: "plain/text"
|
||||||
@@ -147,7 +149,7 @@ namespace Innertube
|
|||||||
|
|
||||||
endIndex = contentHex.InStr(startIndex, endMarkerHex)
|
endIndex = contentHex.InStr(startIndex, endMarkerHex)
|
||||||
if endIndex = -1
|
if endIndex = -1
|
||||||
errors.message += `End marker not found in file at path ${filePath}.\n`
|
errors.message += `End marker not found in filePath ${filePath}.\n`
|
||||||
errors.attachments.Push({
|
errors.attachments.Push({
|
||||||
filename: filePath
|
filename: filePath
|
||||||
content_type: "plain/text"
|
content_type: "plain/text"
|
||||||
@@ -160,10 +162,9 @@ namespace Innertube
|
|||||||
buffer.FromHexString(segmentDurationsMsHex)
|
buffer.FromHexString(segmentDurationsMsHex)
|
||||||
segmentDurationsMs = buffer.ToAsciiString()
|
segmentDurationsMs = buffer.ToAsciiString()
|
||||||
|
|
||||||
regex = CreateObject("roRegex", "(\d+)(?:\(r=(\d+)\))?", "g")
|
matches = segmentDurationsRegex.MatchAll(segmentDurationsMs)
|
||||||
matches = regex.MatchAll(segmentDurationsMs)
|
|
||||||
if not IsArray(matches) or matches.Count() = 0
|
if not IsArray(matches) or matches.Count() = 0
|
||||||
errors.message += `No segment duration matches found in file at path ${filePath}.\n`
|
errors.message += `No segment duration matches found in filePath ${filePath}.\n`
|
||||||
errors.attachments.Push({
|
errors.attachments.Push({
|
||||||
filename: filePath
|
filename: filePath
|
||||||
content_type: "plain/text"
|
content_type: "plain/text"
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ namespace Innertube
|
|||||||
return context.feeds
|
return context.feeds
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function ParseChannelPageResponseData(responseData as object, response as object) as object
|
function ParseChannelPageResponseData(browseId as string, responseData as object, response as object) as object
|
||||||
if responseData = invalid
|
if responseData = invalid
|
||||||
return {
|
return {
|
||||||
error: "Invalid response data"
|
error: "Invalid response data"
|
||||||
@@ -63,6 +63,9 @@ namespace Innertube
|
|||||||
author = ObjectUtils.Dig(responseData, ["header", "pageHeaderRenderer", "pageTitle"])
|
author = ObjectUtils.Dig(responseData, ["header", "pageHeaderRenderer", "pageTitle"])
|
||||||
end if
|
end if
|
||||||
authorId = ObjectUtils.Dig(responseData, ["metadata", "channelMetadataRenderer", "externalId"])
|
authorId = ObjectUtils.Dig(responseData, ["metadata", "channelMetadataRenderer", "externalId"])
|
||||||
|
if StringUtils.IsNullOrEmpty(authorId)
|
||||||
|
authorId = browseId
|
||||||
|
end if
|
||||||
|
|
||||||
thumbnails = ObjectUtils.Dig(responseData, ["metadata", "channelMetadataRenderer", "avatar", "thumbnails"])
|
thumbnails = ObjectUtils.Dig(responseData, ["metadata", "channelMetadataRenderer", "avatar", "thumbnails"])
|
||||||
if thumbnails = invalid
|
if thumbnails = invalid
|
||||||
@@ -149,6 +152,7 @@ namespace Innertube
|
|||||||
response: response
|
response: response
|
||||||
"currentAuthor": author
|
"currentAuthor": author
|
||||||
"currentAuthorId": authorId
|
"currentAuthorId": authorId
|
||||||
|
browseId: browseId
|
||||||
})
|
})
|
||||||
if feeds.Count() > 0
|
if feeds.Count() > 0
|
||||||
items = ValidArray(feeds[0].items)
|
items = ValidArray(feeds[0].items)
|
||||||
@@ -183,7 +187,7 @@ namespace Innertube
|
|||||||
return channel
|
return channel
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function ParsePlaylistPageResponseData(responseData as object, response as object) as object
|
function ParsePlaylistPageResponseData(browseId as string, responseData as object, response as object) as object
|
||||||
if responseData = invalid
|
if responseData = invalid
|
||||||
return {
|
return {
|
||||||
error: "Invalid response data"
|
error: "Invalid response data"
|
||||||
@@ -251,13 +255,16 @@ namespace Innertube
|
|||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
if StringUtils.IsNullOrEmpty(playlistId)
|
||||||
|
playlistId = browseId
|
||||||
|
end if
|
||||||
|
|
||||||
playlist = {
|
playlist = {
|
||||||
|
"playlistId": playlistId
|
||||||
"videoCount": videoCount
|
"videoCount": videoCount
|
||||||
"videos": []
|
"videos": []
|
||||||
}
|
}
|
||||||
if playlistId <> invalid
|
|
||||||
playlist["playlistId"] = playlistId
|
|
||||||
end if
|
|
||||||
if title <> invalid
|
if title <> invalid
|
||||||
playlist["title"] = title
|
playlist["title"] = title
|
||||||
end if
|
end if
|
||||||
@@ -279,6 +286,7 @@ namespace Innertube
|
|||||||
|
|
||||||
feeds = ParseResponseDataForFeeds(responseData, {
|
feeds = ParseResponseDataForFeeds(responseData, {
|
||||||
response: response
|
response: response
|
||||||
|
browseId: browseId
|
||||||
})
|
})
|
||||||
if feeds.Count() > 0
|
if feeds.Count() > 0
|
||||||
playlist["videos"] = ValidArray(feeds[0].items)
|
playlist["videos"] = ValidArray(feeds[0].items)
|
||||||
|
|||||||
@@ -122,6 +122,7 @@ namespace Innertube
|
|||||||
formats = TransformFormats(formats)
|
formats = TransformFormats(formats)
|
||||||
|
|
||||||
parsedResponse["type"] = "video"
|
parsedResponse["type"] = "video"
|
||||||
|
parsedResponse["parser"] = "playlet"
|
||||||
parsedResponse["videoId"] = videoDetails["videoId"]
|
parsedResponse["videoId"] = videoDetails["videoId"]
|
||||||
parsedResponse["videoThumbnails"] = videoDetails["thumbnail"]["thumbnails"]
|
parsedResponse["videoThumbnails"] = videoDetails["thumbnail"]["thumbnails"]
|
||||||
parsedResponse["storyboards"] = ParseStoryboards(payload, lengthSeconds)
|
parsedResponse["storyboards"] = ParseStoryboards(payload, lengthSeconds)
|
||||||
@@ -316,6 +317,7 @@ namespace Innertube
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
captions = []
|
captions = []
|
||||||
|
autoCaptions = []
|
||||||
for each track in tracks
|
for each track in tracks
|
||||||
if not IsAssociativeArray(track)
|
if not IsAssociativeArray(track)
|
||||||
continue for
|
continue for
|
||||||
@@ -341,13 +343,22 @@ namespace Innertube
|
|||||||
|
|
||||||
label = ParseText(track["name"])
|
label = ParseText(track["name"])
|
||||||
|
|
||||||
captions.Push({
|
thisCaption = {
|
||||||
"label": label
|
"label": label
|
||||||
"language_code": languageCode
|
"language_code": languageCode
|
||||||
"url": baseUrl
|
"url": baseUrl
|
||||||
})
|
}
|
||||||
|
|
||||||
|
if track["kind"] = "asr"
|
||||||
|
autoCaptions.Push(thisCaption)
|
||||||
|
continue for
|
||||||
|
end if
|
||||||
|
|
||||||
|
captions.Push(thisCaption)
|
||||||
end for
|
end for
|
||||||
|
|
||||||
|
' Put automatically generated captions at the end so human-generated ones take priority
|
||||||
|
captions.Append(autoCaptions)
|
||||||
return captions
|
return captions
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@@ -443,7 +454,7 @@ namespace Innertube
|
|||||||
LogDebug(`ReadAsciiFile("tmp:/sts_cache.json")`)
|
LogDebug(`ReadAsciiFile("tmp:/sts_cache.json")`)
|
||||||
cache = ReadAsciiFile("tmp:/sts_cache.json")
|
cache = ReadAsciiFile("tmp:/sts_cache.json")
|
||||||
if not StringUtils.IsNullOrEmpty(cache)
|
if not StringUtils.IsNullOrEmpty(cache)
|
||||||
json = ParseJson(cache)
|
json = StringUtils.ParseJsonSafe(cache)
|
||||||
return json["sts"]
|
return json["sts"]
|
||||||
end if
|
end if
|
||||||
|
|
||||||
@@ -639,6 +650,10 @@ namespace Innertube
|
|||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
if ValidBool(ObjectUtils.Dig(payload, ["videoDetails", "isPostLiveDvr"]))
|
||||||
|
return false
|
||||||
|
end if
|
||||||
|
|
||||||
adaptiveFormats = ValidArray(ObjectUtils.Dig(payload, ["streamingData", "adaptiveFormats"]))
|
adaptiveFormats = ValidArray(ObjectUtils.Dig(payload, ["streamingData", "adaptiveFormats"]))
|
||||||
if FormatsHaveLiveStreamingData(adaptiveFormats)
|
if FormatsHaveLiveStreamingData(adaptiveFormats)
|
||||||
return true
|
return true
|
||||||
@@ -718,7 +733,13 @@ namespace Innertube
|
|||||||
headers = response.Headers()
|
headers = response.Headers()
|
||||||
|
|
||||||
if not headers.DoesExist("X-Head-Time-Millis") or not headers.DoesExist("X-Head-Seqnum")
|
if not headers.DoesExist("X-Head-Time-Millis") or not headers.DoesExist("X-Head-Seqnum")
|
||||||
LogError("GetPostLiveDvrInfo: Missing Post-Live DVR info in headers", headers)
|
msg = "GetPostLiveDvrInfo: Missing Post-Live DVR info in headers"
|
||||||
|
LogErrorNoTelemetry(msg, url, headers)
|
||||||
|
LogTelemetryEvent({
|
||||||
|
level: "error"
|
||||||
|
message: msg + `\nVideoID: ${parsedResponse["videoId"]}\nUrl: ${url}\nHeaders: ${FormatJson(headers)}`
|
||||||
|
fingerprint: [msg]
|
||||||
|
})
|
||||||
end if
|
end if
|
||||||
|
|
||||||
durationMs = ValidString(headers["X-Head-Time-Millis"]).ToInt()
|
durationMs = ValidString(headers["X-Head-Time-Millis"]).ToInt()
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ namespace Innertube
|
|||||||
text = response.Text()
|
text = response.Text()
|
||||||
text = text.Replace(`)]}'`, "")
|
text = text.Replace(`)]}'`, "")
|
||||||
|
|
||||||
parsed = ParseJson(text)
|
parsed = StringUtils.ParseJsonSafe(text)
|
||||||
if not IsArray(parsed) or parsed.Count() < 2
|
if not IsArray(parsed) or parsed.Count() < 2
|
||||||
return {
|
return {
|
||||||
error: "Failed to parse search suggestions"
|
error: "Failed to parse search suggestions"
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ namespace Innertube
|
|||||||
text = response.Text()
|
text = response.Text()
|
||||||
text = text.Replace(`)]}'`, "")
|
text = text.Replace(`)]}'`, "")
|
||||||
|
|
||||||
json = ParseJson(text)
|
json = StringUtils.ParseJsonSafe(text)
|
||||||
if json = invalid
|
if json = invalid
|
||||||
return {
|
return {
|
||||||
"error": "Failed to parse session data: " + text
|
"error": "Failed to parse session data: " + text
|
||||||
@@ -78,7 +78,7 @@ namespace Innertube
|
|||||||
return invalid
|
return invalid
|
||||||
end if
|
end if
|
||||||
|
|
||||||
sessionData = ParseJson(sessionData)
|
sessionData = StringUtils.ParseJsonSafe(sessionData)
|
||||||
if sessionData = invalid
|
if sessionData = invalid
|
||||||
RegistryUtils.Delete(RegistryUtils.INNERTUBE_SESSION_DATA)
|
RegistryUtils.Delete(RegistryUtils.INNERTUBE_SESSION_DATA)
|
||||||
return invalid
|
return invalid
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import "InvidiousService.bs"
|
import "InvidiousService.bs"
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
m.top.apiDefinitions = ParseJson(ReadAsciiFile("libpkg:/config/invidious_video_api.yaml"))
|
m.top.apiDefinitions = StringUtils.ParseJsonSafe(ReadAsciiFile("libpkg:/config/invidious_video_api.yaml"))
|
||||||
m.service = new Invidious.InvidiousService(m.top)
|
m.service = new Invidious.InvidiousService(m.top)
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
|||||||
@@ -698,7 +698,7 @@ namespace Invidious
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function VerifyTokenScope(token as string) as boolean
|
function VerifyTokenScope(token as string) as boolean
|
||||||
tokenObject = ParseJson(token)
|
tokenObject = StringUtils.ParseJsonSafe(token)
|
||||||
if tokenObject = invalid
|
if tokenObject = invalid
|
||||||
LogWarn("Failed to json parse token:", token)
|
LogWarn("Failed to json parse token:", token)
|
||||||
return false
|
return false
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ class LoungeApi
|
|||||||
commandHandlers[COMMAND_TYPE_GRACEFUL_RECONNECT] = m.HandleIgnoreCommand
|
commandHandlers[COMMAND_TYPE_GRACEFUL_RECONNECT] = m.HandleIgnoreCommand
|
||||||
commandHandlers[COMMAND_TYPE_GET_RECEIVER_STATUS] = m.HandleIgnoreCommand
|
commandHandlers[COMMAND_TYPE_GET_RECEIVER_STATUS] = m.HandleIgnoreCommand
|
||||||
commandHandlers[COMMAND_TYPE_SEND_DEBUG_COMMAND] = m.HandleIgnoreCommand
|
commandHandlers[COMMAND_TYPE_SEND_DEBUG_COMMAND] = m.HandleIgnoreCommand
|
||||||
|
commandHandlers[COMMAND_TYPE_SET_AUTOPLAY_MODE] = 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
|
||||||
@@ -211,7 +212,7 @@ class LoungeApi
|
|||||||
text = text.Mid(text.instr(`\n`) + 1)
|
text = text.Mid(text.instr(`\n`) + 1)
|
||||||
|
|
||||||
messagesToSend = []
|
messagesToSend = []
|
||||||
commands = ParseJson(text)
|
commands = StringUtils.ParseJsonSafe(text)
|
||||||
m.ProcessCommands(commands, messagesToSend)
|
m.ProcessCommands(commands, messagesToSend)
|
||||||
m.SendMessages(messagesToSend)
|
m.SendMessages(messagesToSend)
|
||||||
return true
|
return true
|
||||||
@@ -267,7 +268,7 @@ class LoungeApi
|
|||||||
payloadSize = chunk.Left(newLineIndex).trim()
|
payloadSize = chunk.Left(newLineIndex).trim()
|
||||||
payloadSize = payloadSize.ToInt()
|
payloadSize = payloadSize.ToInt()
|
||||||
payload = chunk.Mid(newLineIndex + 1, payloadSize)
|
payload = chunk.Mid(newLineIndex + 1, payloadSize)
|
||||||
commands = ParseJson(payload)
|
commands = StringUtils.ParseJsonSafe(payload)
|
||||||
m.ProcessCommands(commands, messagesToSend)
|
m.ProcessCommands(commands, messagesToSend)
|
||||||
chunk = chunk.Mid(newLineIndex + payloadSize + 1)
|
chunk = chunk.Mid(newLineIndex + payloadSize + 1)
|
||||||
newLineIndex = chunk.InStr(`\n`)
|
newLineIndex = chunk.InStr(`\n`)
|
||||||
@@ -324,9 +325,16 @@ class LoungeApi
|
|||||||
LogInfo(commandIndex, commandType)
|
LogInfo(commandIndex, commandType)
|
||||||
m[handler](commandIndex, commandType, commandArgs, messagesToSend)
|
m[handler](commandIndex, commandType, commandArgs, messagesToSend)
|
||||||
else
|
else
|
||||||
LogWarn("Unknown command type:", commandType, "command:", command)
|
fingerprint = "Unknown command type:" + ToString(commandType)
|
||||||
|
message = fingerprint + " command:" + ToString(command)
|
||||||
|
LogWarnNoTelemetry(message)
|
||||||
|
LogTelemetryEvent({
|
||||||
|
level: "warning"
|
||||||
|
message: message
|
||||||
|
fingerprint: fingerprint
|
||||||
|
})
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
throw `Unknown command type: ${commandType} command: ${ToString(command)}`
|
throw message
|
||||||
#end if
|
#end if
|
||||||
end if
|
end if
|
||||||
end for
|
end for
|
||||||
@@ -368,7 +376,7 @@ class LoungeApi
|
|||||||
if not IsString(devices)
|
if not IsString(devices)
|
||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
devices = ParseJson(devices)
|
devices = StringUtils.ParseJsonSafe(devices)
|
||||||
if devices = invalid
|
if devices = invalid
|
||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
@@ -610,7 +618,7 @@ class LoungeApi
|
|||||||
|
|
||||||
RegistryUtils.Delete(RegistryUtils.LAST_LOUNGE_DATA)
|
RegistryUtils.Delete(RegistryUtils.LAST_LOUNGE_DATA)
|
||||||
|
|
||||||
loungeData = ParseJson(loungeData)
|
loungeData = StringUtils.ParseJsonSafe(loungeData)
|
||||||
if not IsAssociativeArray(loungeData)
|
if not IsAssociativeArray(loungeData)
|
||||||
LogWarn("Can't disconnect from lounge. Invalid data:", loungeData)
|
LogWarn("Can't disconnect from lounge. Invalid data:", loungeData)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ const COMMAND_TYPE_GET_DISCOVERT_DEVICE_ID = "getDiscoveryDeviceId"
|
|||||||
const COMMAND_TYPE_GRACEFUL_RECONNECT = "gracefulReconnect"
|
const COMMAND_TYPE_GRACEFUL_RECONNECT = "gracefulReconnect"
|
||||||
const COMMAND_TYPE_GET_RECEIVER_STATUS = "getReceiverStatus"
|
const COMMAND_TYPE_GET_RECEIVER_STATUS = "getReceiverStatus"
|
||||||
const COMMAND_TYPE_SEND_DEBUG_COMMAND = "sendDebugCommand"
|
const COMMAND_TYPE_SEND_DEBUG_COMMAND = "sendDebugCommand"
|
||||||
|
const COMMAND_TYPE_SET_AUTOPLAY_MODE = "setAutoplayMode"
|
||||||
' 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"
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ namespace LoungeVideoQueue
|
|||||||
' - eventDetails is of the form {"eventType":"VIDEO_REMOVED","videoId":"<videoId>"}
|
' - eventDetails is of the form {"eventType":"VIDEO_REMOVED","videoId":"<videoId>"}
|
||||||
eventDetails = playlistData[FIELD_EVENT_DETAILS]
|
eventDetails = playlistData[FIELD_EVENT_DETAILS]
|
||||||
if IsString(eventDetails)
|
if IsString(eventDetails)
|
||||||
eventDetails = ParseJson(eventDetails)
|
eventDetails = StringUtils.ParseJsonSafe(eventDetails)
|
||||||
end if
|
end if
|
||||||
if eventDetails <> invalid and eventDetails["eventType"] = "VIDEO_ADDED"
|
if eventDetails <> invalid and eventDetails["eventType"] = "VIDEO_ADDED"
|
||||||
eventVideoId = eventDetails[FIELD_VIDEO_ID]
|
eventVideoId = eventDetails[FIELD_VIDEO_ID]
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ function Init()
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function LoadPreferencesFile()
|
function LoadPreferencesFile()
|
||||||
m.top.prefsModel = ParseJson(ReadAsciiFile("libpkg:/config/preferences.json5"))
|
m.top.prefsModel = StringUtils.ParseJsonSafe(ReadAsciiFile("libpkg:/config/preferences.json5"))
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function AddNodeFields()
|
function AddNodeFields()
|
||||||
@@ -60,7 +60,7 @@ function LoadUserPreferencesFromRegistry()
|
|||||||
if userPrefs = invalid
|
if userPrefs = invalid
|
||||||
userPrefs = {}
|
userPrefs = {}
|
||||||
else
|
else
|
||||||
userPrefs = ParseJson(userPrefs)
|
userPrefs = StringUtils.ParseJsonSafe(userPrefs)
|
||||||
end if
|
end if
|
||||||
|
|
||||||
' Step 2: Migrate existing preferences to new format (if needed)
|
' Step 2: Migrate existing preferences to new format (if needed)
|
||||||
@@ -101,7 +101,7 @@ function MigrateExistingPreferences(userPrefs as object) as boolean
|
|||||||
if not StringUtils.IsNullOrEmpty(instances)
|
if not StringUtils.IsNullOrEmpty(instances)
|
||||||
currentInstance = userPrefs["invidious.instance"]
|
currentInstance = userPrefs["invidious.instance"]
|
||||||
if StringUtils.IsNullOrEmpty(currentInstance)
|
if StringUtils.IsNullOrEmpty(currentInstance)
|
||||||
instances = ParseJson(instances)
|
instances = StringUtils.ParseJsonSafe(instances)
|
||||||
if IsArray(instances) and instances.Count() > 0
|
if IsArray(instances) and instances.Count() > 0
|
||||||
instance = instances[0]
|
instance = instances[0]
|
||||||
if not StringUtils.IsNullOrEmpty(instance)
|
if not StringUtils.IsNullOrEmpty(instance)
|
||||||
@@ -162,6 +162,20 @@ function MigrateExistingPreferences(userPrefs as object) as boolean
|
|||||||
isDirty = true
|
isDirty = true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
if userPrefs.__version = 5
|
||||||
|
filteredLayout = []
|
||||||
|
homeScreenLayout = ValidArray(userPrefs["misc.home_screen_layout"])
|
||||||
|
for each item in homeScreenLayout
|
||||||
|
if item.id = "trending" or item.id = "trending_music" or item.id = "trending_gaming" or item.id = "trending_movies"
|
||||||
|
continue for
|
||||||
|
end if
|
||||||
|
filteredLayout.Push(item)
|
||||||
|
end for
|
||||||
|
userPrefs["misc.home_screen_layout"] = filteredLayout
|
||||||
|
userPrefs.__version = 6
|
||||||
|
isDirty = true
|
||||||
|
end if
|
||||||
|
|
||||||
' TODO:P2 handle case where saved preferences version is higher than current version (e.g. user downgraded)
|
' TODO:P2 handle case where saved preferences version is higher than current version (e.g. user downgraded)
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
user prefs saved need to be migrated. If the version is less than the
|
user prefs saved need to be migrated. If the version is less than the
|
||||||
current version, a migration is needed.
|
current version, a migration is needed.
|
||||||
-->
|
-->
|
||||||
<field id="__version" type="integer" value="5" />
|
<field id="__version" type="integer" value="6" />
|
||||||
<field id="prefsModel" type="array" />
|
<field id="prefsModel" type="array" />
|
||||||
<field id="preferenceFields" type="assocarray" />
|
<field id="preferenceFields" type="assocarray" />
|
||||||
<function name="GetUserPreferences" />
|
<function name="GetUserPreferences" />
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ function LoadProfilesFromRegistry()
|
|||||||
currentProfile: invalid
|
currentProfile: invalid
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
userProfiles = ParseJson(userProfiles)
|
userProfiles = StringUtils.ParseJsonSafe(userProfiles)
|
||||||
end if
|
end if
|
||||||
|
|
||||||
' Step 2: Migrate existing profiles to new format (if needed)
|
' Step 2: Migrate existing profiles to new format (if needed)
|
||||||
@@ -98,7 +98,7 @@ function MigrateExistingProfiles(userProfiles as object) as boolean
|
|||||||
return false
|
return false
|
||||||
end if
|
end if
|
||||||
|
|
||||||
authToken = ParseJson(tokenPayload)
|
authToken = StringUtils.ParseJsonSafe(tokenPayload)
|
||||||
RegistryUtils.Delete(RegistryUtils.INVIDIOUS_TOKEN)
|
RegistryUtils.Delete(RegistryUtils.INVIDIOUS_TOKEN)
|
||||||
|
|
||||||
if authToken = invalid or authToken.instance = invalid or authToken.token = invalid or authToken.username = invalid
|
if authToken = invalid or authToken.instance = invalid or authToken.token = invalid or authToken.username = invalid
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ namespace SearchHistoryUtils
|
|||||||
return []
|
return []
|
||||||
end if
|
end if
|
||||||
|
|
||||||
history = ParseJson(history)
|
history = StringUtils.ParseJsonSafe(history)
|
||||||
if not IsArray(history)
|
if not IsArray(history)
|
||||||
return []
|
return []
|
||||||
end if
|
end if
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ namespace SponsorBlock
|
|||||||
class SponsorBlockService
|
class SponsorBlockService
|
||||||
function new()
|
function new()
|
||||||
' TODO:P2 this is being read and parsed on every skipped segment. It should be cached.
|
' TODO:P2 this is being read and parsed on every skipped segment. It should be cached.
|
||||||
m.sponsorBlockConfig = ParseJson(ReadAsciiFile("libpkg:/config/sponsorblock_config.json5"))
|
m.sponsorBlockConfig = StringUtils.ParseJsonSafe(ReadAsciiFile("libpkg:/config/sponsorblock_config.json5"))
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function GetCategories() as object
|
function GetCategories() as object
|
||||||
|
|||||||
@@ -65,33 +65,11 @@ function ExecuteJob() as void
|
|||||||
})
|
})
|
||||||
|
|
||||||
if not response.success
|
if not response.success
|
||||||
if response.error = Invidious.ERROR_NOT_AUTHENTICATED
|
if RemoveSingleFailedRow(response.error, feedSource, feedSources, feedContentNode)
|
||||||
if feedSources.Count() = 1
|
|
||||||
parent = feedContentNode.getParent()
|
|
||||||
if parent <> invalid
|
|
||||||
parent.removeChild(feedContentNode)
|
|
||||||
end if
|
|
||||||
JobSuccess()
|
JobSuccess()
|
||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
|
|
||||||
continue while
|
|
||||||
end if
|
|
||||||
|
|
||||||
if response.error.instr("Administrator has disabled this endpoint.") > -1
|
|
||||||
LogWarnNoTelemetry(feedSource.endpoint, "feedSource not available:", response.error)
|
|
||||||
if feedSources.Count() = 1
|
|
||||||
parent = feedContentNode.getParent()
|
|
||||||
if parent <> invalid
|
|
||||||
parent.removeChild(feedContentNode)
|
|
||||||
end if
|
|
||||||
JobSuccess()
|
|
||||||
return
|
|
||||||
end if
|
|
||||||
|
|
||||||
continue while
|
|
||||||
end if
|
|
||||||
|
|
||||||
feedSource.state.loadState = FeedLoadState.Error
|
feedSource.state.loadState = FeedLoadState.Error
|
||||||
feedSources[feedSourcesIndex] = feedSource
|
feedSources[feedSourcesIndex] = feedSource
|
||||||
feedContentNode.feedSources = feedSources
|
feedContentNode.feedSources = feedSources
|
||||||
@@ -243,6 +221,32 @@ function DeduplicateAppendAuthPlaylists(feedContentNode as object, itemNodes as
|
|||||||
return nodesToAdd.Count()
|
return nodesToAdd.Count()
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
function RemoveSingleFailedRow(error as dynamic, feedSource as object, feedSources as object, feedContentNode as object) as boolean
|
||||||
|
error = ValidString(error)
|
||||||
|
LogWarnNoTelemetry(feedSource.id, "feedSource not available:", error)
|
||||||
|
|
||||||
|
if feedSources.Count() <> 1
|
||||||
|
return false
|
||||||
|
end if
|
||||||
|
|
||||||
|
isError = error = Invidious.ERROR_NOT_AUTHENTICATED
|
||||||
|
' Invidious admins disable endpoints sometimes
|
||||||
|
isError = isError or error.instr("Administrator has disabled this endpoint") <> -1
|
||||||
|
isError = isError or error.instr("API disabled") <> -1
|
||||||
|
' Playlet not supporting popular
|
||||||
|
isError = isError or feedSource.id = "inv_popular"
|
||||||
|
if not isError
|
||||||
|
return false
|
||||||
|
end if
|
||||||
|
|
||||||
|
parent = feedContentNode.getParent()
|
||||||
|
if parent <> invalid
|
||||||
|
parent.removeChild(feedContentNode)
|
||||||
|
end if
|
||||||
|
|
||||||
|
return true
|
||||||
|
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)
|
||||||
if isCancelled
|
if isCancelled
|
||||||
|
|||||||
@@ -99,7 +99,19 @@ function ExecuteJob() as void
|
|||||||
streamUrls = CreateStreamUrls(metadata, service, preferencesNode, backend, playletServerPort)
|
streamUrls = CreateStreamUrls(metadata, service, preferencesNode, backend, playletServerPort)
|
||||||
if streamUrls.Count() = 0
|
if streamUrls.Count() = 0
|
||||||
contentNode.addFields({ metadata: metadata })
|
contentNode.addFields({ metadata: metadata })
|
||||||
JobError("No playable streams found for this video.")
|
error = "No playable streams found for this video."
|
||||||
|
lastPlayerResponse = ValidString(ReadAsciiFile("cachefs:/last_player_response.json"))
|
||||||
|
LogTelemetryEvent({
|
||||||
|
level: "error"
|
||||||
|
message: error
|
||||||
|
fingerprint: error
|
||||||
|
attachments: [{
|
||||||
|
filename: "last_player_response.json"
|
||||||
|
content_type: "application/json"
|
||||||
|
data: lastPlayerResponse
|
||||||
|
}]
|
||||||
|
})
|
||||||
|
JobError(error)
|
||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
|
|
||||||
@@ -329,7 +341,7 @@ function SetCaptions(metadata as object, service as object, contentNode as objec
|
|||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
|
|
||||||
isoLanguageList = ParseJson(ReadAsciiFile("libpkg:/config/ISO-639-1-to-ISO-639-2T.json5"))
|
isoLanguageList = StringUtils.ParseJsonSafe(ReadAsciiFile("libpkg:/config/ISO-639-1-to-ISO-639-2T.json5"))
|
||||||
instance = service.GetInstance()
|
instance = service.GetInstance()
|
||||||
|
|
||||||
subtitleTracks = []
|
subtitleTracks = []
|
||||||
|
|||||||
@@ -13,6 +13,18 @@ import "pkg:/source/utils/ErrorUtils.bs"
|
|||||||
import "pkg:/source/utils/Logging.bs"
|
import "pkg:/source/utils/Logging.bs"
|
||||||
import "pkg:/source/utils/RemoteKeys.bs"
|
import "pkg:/source/utils/RemoteKeys.bs"
|
||||||
|
|
||||||
|
enum DownloadErrors
|
||||||
|
Unknown = 900
|
||||||
|
TimeoutByCurl = 950
|
||||||
|
TimeoutBySelector = 951
|
||||||
|
Abort = 960
|
||||||
|
AbortByServer = 961
|
||||||
|
AbortBySelector = 962
|
||||||
|
AbortByParallel = 963
|
||||||
|
ParallelFragmentError = 964
|
||||||
|
BadMedia = 970
|
||||||
|
end enum
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
SetPlayerStyle()
|
SetPlayerStyle()
|
||||||
SetupAnimation()
|
SetupAnimation()
|
||||||
@@ -441,32 +453,23 @@ function OnVideoPlayerStateChange() as void
|
|||||||
m.videoPlayingSuccess = true
|
m.videoPlayingSuccess = true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
errorReported = false
|
errorData = invalid
|
||||||
if state = "error"
|
if state = "error"
|
||||||
errorInfo = m.top.errorInfo
|
errorInfo = m.top.errorInfo
|
||||||
errorData = GetPlayerErrorData(content.videoId, errorInfo)
|
errorData = GetPlayerErrorData(content.videoId, errorInfo)
|
||||||
|
|
||||||
LogErrorNoTelemetry(errorData.title, errorData.body)
|
LogErrorNoTelemetry(errorData.title, errorData.body)
|
||||||
ReportVideoError(errorData, content.url)
|
|
||||||
errorReported = true
|
|
||||||
|
|
||||||
if m.videoPlayingSuccess <> true
|
if m.videoPlayingSuccess <> true
|
||||||
' http for stream format, mediaerror for DASH
|
' http for stream format, mediaerror for DASH
|
||||||
if errorInfo.category = "http" or errorInfo.category = "mediaerror"
|
if errorInfo.category = "http" or errorInfo.category = "mediaerror"
|
||||||
currentUrl = content.url
|
|
||||||
playletStreamUrls = content.playletStreamUrls
|
playletStreamUrls = content.playletStreamUrls
|
||||||
playletStreamUrlIndex = content.playletStreamUrlIndex
|
currentUrlIndex = content.playletStreamUrlIndex
|
||||||
playletStreamUrlIndex++
|
nextUrlIndex = currentUrlIndex + 1
|
||||||
content.playletStreamUrlIndex = playletStreamUrlIndex
|
content.playletStreamUrlIndex = nextUrlIndex
|
||||||
if playletStreamUrlIndex < playletStreamUrls.Count()
|
if nextUrlIndex < playletStreamUrls.Count()
|
||||||
nextUrl = playletStreamUrls[playletStreamUrlIndex]
|
currentUrl = content.url
|
||||||
msg = `Stream ${currentUrl} failed to play. Trying next stream ${nextUrl}`
|
nextUrl = playletStreamUrls[nextUrlIndex]
|
||||||
LogErrorNoTelemetry(msg)
|
|
||||||
LogTelemetryEvent({
|
|
||||||
level: "error"
|
|
||||||
message: msg
|
|
||||||
fingerprint: ["Stream <URL> failed to play. Trying next stream <URL>"]
|
|
||||||
})
|
|
||||||
|
|
||||||
if StringUtils.IsNullOrEmpty(nextUrl)
|
if StringUtils.IsNullOrEmpty(nextUrl)
|
||||||
LogError("Next stream URL is empty, cannot try next stream")
|
LogError("Next stream URL is empty, cannot try next stream")
|
||||||
@@ -487,6 +490,12 @@ function OnVideoPlayerStateChange() as void
|
|||||||
if hasTimestamp and timestamp > 0
|
if hasTimestamp and timestamp > 0
|
||||||
m.top.seek = content.timestamp
|
m.top.seek = content.timestamp
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
msg = `Stream ${currentUrl} failed to play. Trying next stream ${nextUrl}`
|
||||||
|
LogErrorNoTelemetry(msg)
|
||||||
|
|
||||||
|
errorData.title = msg + `\n` + errorData.title
|
||||||
|
ReportVideoError(errorData, currentUrl, playletStreamUrls, currentUrlIndex, false)
|
||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
@@ -504,13 +513,8 @@ function OnVideoPlayerStateChange() as void
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
if state = "error"
|
if state = "error"
|
||||||
errorInfo = m.top.errorInfo
|
|
||||||
errorData = GetPlayerErrorData(content.videoId, errorInfo)
|
|
||||||
|
|
||||||
LogErrorNoTelemetry(errorData.title, errorData.body)
|
LogErrorNoTelemetry(errorData.title, errorData.body)
|
||||||
if not errorReported
|
ReportVideoError(errorData, content.url, content.playletStreamUrls, content.playletStreamUrlIndex, true)
|
||||||
ReportVideoError(errorData, content.url)
|
|
||||||
end if
|
|
||||||
|
|
||||||
buttons = [Tr(Locale.Buttons.PlayNextVideo), Tr(Locale.Buttons.Cancel)]
|
buttons = [Tr(Locale.Buttons.PlayNextVideo), Tr(Locale.Buttons.Cancel)]
|
||||||
|
|
||||||
@@ -557,7 +561,7 @@ function GetPlayerErrorData(videoId as string, errorInfo as object) as object
|
|||||||
}
|
}
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function ReportVideoError(errorData as object, url as string) as void
|
function ReportVideoError(errorData as object, url as dynamic, urls as object, urlIndex as dynamic, shownInDialog as boolean) as void
|
||||||
attachments = invalid
|
attachments = invalid
|
||||||
if errorData.body.Instr("malformed data") <> -1 or errorData.body.Instr("invalid pathname") <> -1
|
if errorData.body.Instr("malformed data") <> -1 or errorData.body.Instr("invalid pathname") <> -1
|
||||||
lastGeneratedDash = ValidString(ReadAsciiFile("cachefs:/last_generated_dash.xml"))
|
lastGeneratedDash = ValidString(ReadAsciiFile("cachefs:/last_generated_dash.xml"))
|
||||||
@@ -581,9 +585,28 @@ function ReportVideoError(errorData as object, url as string) as void
|
|||||||
|
|
||||||
position = m.top.position
|
position = m.top.position
|
||||||
duration = m.top.duration
|
duration = m.top.duration
|
||||||
|
message = [
|
||||||
|
errorData.title
|
||||||
|
errorData.body
|
||||||
|
`Dialog shown: ${shownInDialog}`
|
||||||
|
`Position: ${position}`
|
||||||
|
`Duration: ${duration}`
|
||||||
|
`Url: ${url}`
|
||||||
|
`Urls: ` + ToString(urls)
|
||||||
|
`Url index: ${urlIndex}`
|
||||||
|
].Join(`\n`)
|
||||||
|
|
||||||
|
errorData.fingerprint.push(shownInDialog)
|
||||||
|
|
||||||
|
if shownInDialog
|
||||||
|
level = "error"
|
||||||
|
else
|
||||||
|
level = "warning"
|
||||||
|
end if
|
||||||
|
|
||||||
LogTelemetryEvent({
|
LogTelemetryEvent({
|
||||||
level: "error"
|
level: level
|
||||||
message: errorData.title + " " + errorData.body + `\nurl: ${url}\nposition: ${position}\nduration: ${duration}`
|
message: message
|
||||||
fingerprint: errorData.fingerprint
|
fingerprint: errorData.fingerprint
|
||||||
attachments: attachments
|
attachments: attachments
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ namespace Http
|
|||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
feedSource = ParseJson(feedSource)
|
feedSource = StringUtils.ParseJsonSafe(feedSource)
|
||||||
if feedSource = invalid
|
if feedSource = invalid
|
||||||
response.Default(400, "Expected valid JSON for feed-source")
|
response.Default(400, "Expected valid JSON for feed-source")
|
||||||
return true
|
return true
|
||||||
|
|||||||
+4
-35
@@ -253,9 +253,8 @@ namespace Http
|
|||||||
return true
|
return true
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@get("/playlet-invidious-backend/api/v1/trending")
|
|
||||||
@get("/playlet-invidious-backend/api/v1/popular")
|
@get("/playlet-invidious-backend/api/v1/popular")
|
||||||
function GetTrending(context as object) as boolean
|
function GetPopular(context as object) as boolean
|
||||||
request = context.request
|
request = context.request
|
||||||
response = context.response
|
response = context.response
|
||||||
|
|
||||||
@@ -264,40 +263,10 @@ namespace Http
|
|||||||
return m.GetAuthRecommended(context)
|
return m.GetAuthRecommended(context)
|
||||||
end if
|
end if
|
||||||
|
|
||||||
raw = request.query.raw <> invalid
|
|
||||||
|
|
||||||
options = {
|
|
||||||
"disableShorts": m.preferences["content_feed.disable_shorts"]
|
|
||||||
raw: raw
|
|
||||||
type: request.query.type
|
|
||||||
}
|
|
||||||
|
|
||||||
result = InnertubeService.GetTrending(options)
|
|
||||||
if raw
|
|
||||||
response.Json(result)
|
|
||||||
return true
|
|
||||||
end if
|
|
||||||
|
|
||||||
if result.error <> invalid
|
|
||||||
response.Json(result)
|
|
||||||
response.http_code = 500
|
|
||||||
return true
|
|
||||||
end if
|
|
||||||
|
|
||||||
if not IsArray(result.feeds) or result.feeds.Count() = 0
|
|
||||||
response.Json({
|
response.Json({
|
||||||
"error": "Failed to get trending feed"
|
"error": "Playlet built-in Invidious backend does not support popular videos."
|
||||||
})
|
})
|
||||||
response.http_code = 500
|
response.http_code = 400
|
||||||
return true
|
|
||||||
end if
|
|
||||||
|
|
||||||
response.Json(ValidArray(result.feeds[0].items))
|
|
||||||
|
|
||||||
if result.DoesExist("cache-control")
|
|
||||||
response.headers["cache-control"] = result["cache-control"]
|
|
||||||
end if
|
|
||||||
|
|
||||||
return true
|
return true
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@@ -804,7 +773,7 @@ namespace Http
|
|||||||
' (such as "newest", "oldest", etc.), we'll ignore it, as it is not supported.
|
' (such as "newest", "oldest", etc.), we'll ignore it, as it is not supported.
|
||||||
sortBy = request.query.sort_by
|
sortBy = request.query.sort_by
|
||||||
if not StringUtils.IsNullOrEmpty(sortBy) and sortBy.StartsWith("{")
|
if not StringUtils.IsNullOrEmpty(sortBy) and sortBy.StartsWith("{")
|
||||||
sortBy = ParseJson(sortBy)
|
sortBy = StringUtils.ParseJsonSafe(sortBy)
|
||||||
if IsAssociativeArray(sortBy)
|
if IsAssociativeArray(sortBy)
|
||||||
if sortBy.DoesExist("params")
|
if sortBy.DoesExist("params")
|
||||||
options.params = sortBy.params
|
options.params = sortBy.params
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace Http
|
|||||||
|
|
||||||
saved = RegistryUtils.Read(RegistryUtils.PLAYLET_LIB_URLS)
|
saved = RegistryUtils.Read(RegistryUtils.PLAYLET_LIB_URLS)
|
||||||
if saved <> invalid
|
if saved <> invalid
|
||||||
saved = ParseJson(saved)
|
saved = StringUtils.ParseJsonSafe(saved)
|
||||||
end if
|
end if
|
||||||
|
|
||||||
response.Json({
|
response.Json({
|
||||||
|
|||||||
@@ -272,7 +272,7 @@ namespace Http
|
|||||||
return invalid
|
return invalid
|
||||||
end if
|
end if
|
||||||
|
|
||||||
m.body_json = ParseJson(text)
|
m.body_json = StringUtils.ParseJsonSafe(text)
|
||||||
return m.body_json
|
return m.body_json
|
||||||
end function
|
end function
|
||||||
end class
|
end class
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ namespace Http
|
|||||||
if StringUtils.IsNullOrEmpty(json)
|
if StringUtils.IsNullOrEmpty(json)
|
||||||
return "application/octet-stream"
|
return "application/octet-stream"
|
||||||
end if
|
end if
|
||||||
map = ParseJson(json)
|
map = StringUtils.ParseJsonSafe(json)
|
||||||
if not IsAssociativeArray(map)
|
if not IsAssociativeArray(map)
|
||||||
return "application/octet-stream"
|
return "application/octet-stream"
|
||||||
end if
|
end if
|
||||||
@@ -41,7 +41,7 @@ namespace Http
|
|||||||
if StringUtils.IsNullOrEmpty(json)
|
if StringUtils.IsNullOrEmpty(json)
|
||||||
return ""
|
return ""
|
||||||
end if
|
end if
|
||||||
map = ParseJson(json)
|
map = StringUtils.ParseJsonSafe(json)
|
||||||
if not IsAssociativeArray(map)
|
if not IsAssociativeArray(map)
|
||||||
return ""
|
return ""
|
||||||
end if
|
end if
|
||||||
|
|||||||
@@ -14,44 +14,6 @@
|
|||||||
apiType: Invidious
|
apiType: Invidious
|
||||||
endpoint: auth_recommended
|
endpoint: auth_recommended
|
||||||
|
|
||||||
- title: Trending
|
|
||||||
id: trending
|
|
||||||
feedSources:
|
|
||||||
- id: inv_trending
|
|
||||||
title: Trending
|
|
||||||
apiType: Invidious
|
|
||||||
endpoint: trending
|
|
||||||
|
|
||||||
- title: Trending - Music
|
|
||||||
id: trending_music
|
|
||||||
feedSources:
|
|
||||||
- id: inv_trending_music
|
|
||||||
title: Trending - Music
|
|
||||||
apiType: Invidious
|
|
||||||
endpoint: trending
|
|
||||||
queryParams:
|
|
||||||
type: Music
|
|
||||||
|
|
||||||
- title: Trending - Gaming
|
|
||||||
id: trending_gaming
|
|
||||||
feedSources:
|
|
||||||
- id: inv_trending_gaming
|
|
||||||
title: Trending - Gaming
|
|
||||||
apiType: Invidious
|
|
||||||
endpoint: trending
|
|
||||||
queryParams:
|
|
||||||
type: Gaming
|
|
||||||
|
|
||||||
- title: Trending - Movies
|
|
||||||
id: trending_movies
|
|
||||||
feedSources:
|
|
||||||
- id: inv_trending_movies
|
|
||||||
title: Trending - Movies
|
|
||||||
apiType: Invidious
|
|
||||||
endpoint: trending
|
|
||||||
queryParams:
|
|
||||||
type: Movies
|
|
||||||
|
|
||||||
- title: Popular
|
- title: Popular
|
||||||
id: popular
|
id: popular
|
||||||
feedSources:
|
feedSources:
|
||||||
|
|||||||
@@ -1,18 +1,3 @@
|
|||||||
trending:
|
|
||||||
title: Trending
|
|
||||||
url: /api/v1/trending
|
|
||||||
cacheSeconds: 21600 # 6 hours
|
|
||||||
queryParams:
|
|
||||||
type:
|
|
||||||
type:
|
|
||||||
- Music
|
|
||||||
- Gaming
|
|
||||||
- Movies
|
|
||||||
region:
|
|
||||||
type: "#ISO3166"
|
|
||||||
default: GetUserCountryCode
|
|
||||||
tryCount: 3 # trending is being phased out, sometimes it returns a 400 INVALID_ARGUMENT
|
|
||||||
|
|
||||||
popular:
|
popular:
|
||||||
title: Popular
|
title: Popular
|
||||||
url: /api/v1/popular
|
url: /api/v1/popular
|
||||||
|
|||||||
@@ -243,22 +243,6 @@
|
|||||||
id: "recommended",
|
id: "recommended",
|
||||||
enabled: true,
|
enabled: true,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: "trending",
|
|
||||||
enabled: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "trending_music",
|
|
||||||
enabled: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "trending_gaming",
|
|
||||||
enabled: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "trending_movies",
|
|
||||||
enabled: true,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id: "popular",
|
id: "popular",
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
|||||||
@@ -312,22 +312,6 @@
|
|||||||
<source>Watch history</source>
|
<source>Watch history</source>
|
||||||
<translation>Wiedergabeverlauf</translation>
|
<translation>Wiedergabeverlauf</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>Trending</source>
|
|
||||||
<translation>Trends</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Trending - Movies</source>
|
|
||||||
<translation>Trends - Filme</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Trending - Music</source>
|
|
||||||
<translation>Trends - Musik</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Trending - Gaming</source>
|
|
||||||
<translation>Trends - Gaming</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Popular</source>
|
<source>Popular</source>
|
||||||
<translation>Populär</translation>
|
<translation>Populär</translation>
|
||||||
|
|||||||
@@ -88,22 +88,6 @@
|
|||||||
<source>Watch history</source>
|
<source>Watch history</source>
|
||||||
<translation>Watch history</translation>
|
<translation>Watch history</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>Trending</source>
|
|
||||||
<translation>Trending</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Trending - Movies</source>
|
|
||||||
<translation>Trending - Movies</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Trending - Music</source>
|
|
||||||
<translation>Trending - Music</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Trending - Gaming</source>
|
|
||||||
<translation>Trending - Gaming</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Popular</source>
|
<source>Popular</source>
|
||||||
<translation>Popular</translation>
|
<translation>Popular</translation>
|
||||||
|
|||||||
@@ -80,22 +80,6 @@
|
|||||||
<source>Watch history</source>
|
<source>Watch history</source>
|
||||||
<translation>Ver el historial</translation>
|
<translation>Ver el historial</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>Trending</source>
|
|
||||||
<translation>Tendencias</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Trending - Movies</source>
|
|
||||||
<translation>Tendencias - Películas</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Trending - Music</source>
|
|
||||||
<translation>Tendencias - Música</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Trending - Gaming</source>
|
|
||||||
<translation>Tendencias - Juegos</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Popular</source>
|
<source>Popular</source>
|
||||||
<translation>Popular</translation>
|
<translation>Popular</translation>
|
||||||
|
|||||||
@@ -36,10 +36,6 @@
|
|||||||
<source>Filters</source>
|
<source>Filters</source>
|
||||||
<translation>Filtros</translation>
|
<translation>Filtros</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>Trending - Music</source>
|
|
||||||
<translation>Tendencias - Música</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Login to Invidious in order to view Subscriptions, Playlists, and use the Watch history.</source>
|
<source>Login to Invidious in order to view Subscriptions, Playlists, and use the Watch history.</source>
|
||||||
<translation>Accede a Invidious para ver tus suscripciones, playlists, y usar el historial de reproducción.</translation>
|
<translation>Accede a Invidious para ver tus suscripciones, playlists, y usar el historial de reproducción.</translation>
|
||||||
@@ -80,18 +76,6 @@
|
|||||||
<source>Watch history</source>
|
<source>Watch history</source>
|
||||||
<translation>Historial de reproducción</translation>
|
<translation>Historial de reproducción</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>Trending</source>
|
|
||||||
<translation>Tendencias</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Trending - Movies</source>
|
|
||||||
<translation>Tendencias - Películas</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Trending - Gaming</source>
|
|
||||||
<translation>Tendencias - Videojuegos</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Edit</source>
|
<source>Edit</source>
|
||||||
<translation>Editar</translation>
|
<translation>Editar</translation>
|
||||||
|
|||||||
@@ -76,22 +76,6 @@
|
|||||||
<source>Watch history</source>
|
<source>Watch history</source>
|
||||||
<translation>Historique</translation>
|
<translation>Historique</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>Trending</source>
|
|
||||||
<translation>Tendances</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Trending - Movies</source>
|
|
||||||
<translation>Tendances - Films</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Trending - Music</source>
|
|
||||||
<translation>Tendances - Musique</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Trending - Gaming</source>
|
|
||||||
<translation>Tendances - Jeux vidéo</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Popular</source>
|
<source>Popular</source>
|
||||||
<translation>Populaire</translation>
|
<translation>Populaire</translation>
|
||||||
|
|||||||
@@ -140,22 +140,6 @@
|
|||||||
<source>Watch history</source>
|
<source>Watch history</source>
|
||||||
<translation>Histórico de assistidos</translation>
|
<translation>Histórico de assistidos</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>Trending</source>
|
|
||||||
<translation>Em alta</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Trending - Movies</source>
|
|
||||||
<translation>Em alta - Flimes</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Trending - Music</source>
|
|
||||||
<translation>Em alta - Música</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Trending - Gaming</source>
|
|
||||||
<translation>Em alta - Jogos</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Popular</source>
|
<source>Popular</source>
|
||||||
<translation>Popular</translation>
|
<translation>Popular</translation>
|
||||||
|
|||||||
@@ -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=43
|
minor_version=44
|
||||||
build_version=00008
|
build_version=00004
|
||||||
|
|
||||||
ui_resolutions=hd
|
ui_resolutions=hd
|
||||||
uri_resolution_autosub=$$RES$$,480p,720p,1080p
|
uri_resolution_autosub=$$RES$$,480p,720p,1080p
|
||||||
|
|||||||
@@ -454,7 +454,7 @@ namespace HttpClient
|
|||||||
backoffMs = 1000 + Rnd(2000)
|
backoffMs = 1000 + Rnd(2000)
|
||||||
tryNumber = m._tryCount - triesLeft + 1
|
tryNumber = m._tryCount - triesLeft + 1
|
||||||
LogWarnNoTelemetry("Request failed ID:", m.urlTransfer.GetIdentity(), "ErrorMessage:", response.ErrorMessage(), `\nRetrying: (`, tryNumber, "/", m._tryCount, ") in", backoffMs, "ms")
|
LogWarnNoTelemetry("Request failed ID:", m.urlTransfer.GetIdentity(), "ErrorMessage:", response.ErrorMessage(), `\nRetrying: (`, tryNumber, "/", m._tryCount, ") in", backoffMs, "ms")
|
||||||
LogWarnTelemetry(response.ErrorMessage())
|
LogWarnTelemetry(response.ErrorMessage() + `\n` + m.ToCurlCommand())
|
||||||
|
|
||||||
if IsFunction(m._retryCallback)
|
if IsFunction(m._retryCallback)
|
||||||
try
|
try
|
||||||
@@ -703,7 +703,7 @@ namespace HttpClient
|
|||||||
if text = invalid
|
if text = invalid
|
||||||
return invalid
|
return invalid
|
||||||
end if
|
end if
|
||||||
m._json = ParseJson(text)
|
m._json = StringUtils.ParseJsonSafe(text)
|
||||||
return m._json
|
return m._json
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@@ -813,7 +813,7 @@ namespace HttpClientCache
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
metadataText = cacheText.Left(firstLineIndex)
|
metadataText = cacheText.Left(firstLineIndex)
|
||||||
metadata = ParseJson(metadataText)
|
metadata = StringUtils.ParseJsonSafe(metadataText)
|
||||||
if metadata = invalid
|
if metadata = invalid
|
||||||
LogWarn("Failed to parse metadata from cache.")
|
LogWarn("Failed to parse metadata from cache.")
|
||||||
Delete(request)
|
Delete(request)
|
||||||
@@ -821,7 +821,7 @@ namespace HttpClientCache
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
headersText = cacheText.Mid(firstLineIndex + 1, metadata.headers)
|
headersText = cacheText.Mid(firstLineIndex + 1, metadata.headers)
|
||||||
headers = ParseJson(headersText)
|
headers = StringUtils.ParseJsonSafe(headersText)
|
||||||
if headers = invalid
|
if headers = invalid
|
||||||
LogWarn("Failed to parse headers from cache.")
|
LogWarn("Failed to parse headers from cache.")
|
||||||
Delete(request)
|
Delete(request)
|
||||||
|
|||||||
@@ -41,10 +41,6 @@ namespace Locale
|
|||||||
Recommended = "Recommended"
|
Recommended = "Recommended"
|
||||||
Playlists = "Playlists"
|
Playlists = "Playlists"
|
||||||
WatchHistory = "Watch history"
|
WatchHistory = "Watch history"
|
||||||
Trending = "Trending"
|
|
||||||
TrendingMovies = "Trending - Movies"
|
|
||||||
TrendingMusic = "Trending - Music"
|
|
||||||
TrendingGaming = "Trending - Gaming"
|
|
||||||
Popular = "Popular"
|
Popular = "Popular"
|
||||||
Videos = "Videos"
|
Videos = "Videos"
|
||||||
Shorts = "Shorts"
|
Shorts = "Shorts"
|
||||||
|
|||||||
@@ -29,5 +29,18 @@ namespace StringUtils
|
|||||||
function RandomId() as string
|
function RandomId() as string
|
||||||
return StrI(rnd(2147483647), 36)
|
return StrI(rnd(2147483647), 36)
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
function ParseJsonSafe(jsonString as dynamic) as dynamic
|
||||||
|
if IsNullOrEmpty(jsonString)
|
||||||
|
return invalid
|
||||||
|
end if
|
||||||
|
' bs:disable-next-line NO_PARSE_JSON
|
||||||
|
json = ParseJson(jsonString)
|
||||||
|
if json <> invalid
|
||||||
|
return json
|
||||||
|
end if
|
||||||
|
' bs:disable-next-line NO_PARSE_JSON
|
||||||
|
return ParseJson(jsonString.Replace("\u0000", ""))
|
||||||
|
end function
|
||||||
end namespace
|
end namespace
|
||||||
|
|
||||||
Generated
+142
-129
@@ -1,34 +1,34 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-web",
|
"name": "playlet-web",
|
||||||
"version": "0.43.8",
|
"version": "0.44.4",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet-web",
|
"name": "playlet-web",
|
||||||
"version": "0.43.8",
|
"version": "0.44.4",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
||||||
"@tailwindcss/postcss": "^4.1.16",
|
"@tailwindcss/postcss": "^4.1.17",
|
||||||
"@tailwindcss/typography": "^0.5.19",
|
"@tailwindcss/typography": "^0.5.19",
|
||||||
"@tsconfig/svelte": "^5.0.5",
|
"@tsconfig/svelte": "^5.0.6",
|
||||||
"@vitejs/plugin-legacy": "^7.2.1",
|
"@vitejs/plugin-legacy": "^7.2.1",
|
||||||
"autoprefixer": "^10.4.21",
|
"autoprefixer": "^10.4.22",
|
||||||
"bgutils-js": "^3.2.0",
|
"bgutils-js": "^3.2.0",
|
||||||
"daisyui": "^5.3.10",
|
"daisyui": "^5.5.5",
|
||||||
"dotenv": "^17.2.3",
|
"dotenv": "^17.2.3",
|
||||||
"ip": "^2.0.1",
|
"ip": "^2.0.1",
|
||||||
"jszip": "^3.10.1",
|
"jszip": "^3.10.1",
|
||||||
"postcss": "^8.5.6",
|
"postcss": "^8.5.6",
|
||||||
"rollup-plugin-visualizer": "^6.0.5",
|
"rollup-plugin-visualizer": "^6.0.5",
|
||||||
"svelte": "^5.43.2",
|
"svelte": "^5.43.14",
|
||||||
"svelte-check": "^4.3.3",
|
"svelte-check": "^4.3.4",
|
||||||
"svelte-preprocess": "^6.0.3",
|
"svelte-preprocess": "^6.0.3",
|
||||||
"tailwindcss": "^4.1.16",
|
"tailwindcss": "^4.1.17",
|
||||||
"terser": "^5.44.0",
|
"terser": "^5.44.1",
|
||||||
"tslib": "^2.8.1",
|
"tslib": "^2.8.1",
|
||||||
"typescript": "^5.9.3",
|
"typescript": "^5.9.3",
|
||||||
"vite": "^7.1.12",
|
"vite": "^7.2.4",
|
||||||
"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": "^16.0.1"
|
"youtubei.js": "^16.0.1"
|
||||||
@@ -2394,9 +2394,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/node": {
|
"node_modules/@tailwindcss/node": {
|
||||||
"version": "4.1.16",
|
"version": "4.1.17",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.1.16.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.1.17.tgz",
|
||||||
"integrity": "sha512-BX5iaSsloNuvKNHRN3k2RcCuTEgASTo77mofW0vmeHkfrDWaoFAFvNHpEgtu0eqyypcyiBkDWzSMxJhp3AUVcw==",
|
"integrity": "sha512-csIkHIgLb3JisEFQ0vxr2Y57GUNYh447C8xzwj89U/8fdW8LhProdxvnVH6U8M2Y73QKiTIH+LWbK3V2BBZsAg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -2404,39 +2404,39 @@
|
|||||||
"enhanced-resolve": "^5.18.3",
|
"enhanced-resolve": "^5.18.3",
|
||||||
"jiti": "^2.6.1",
|
"jiti": "^2.6.1",
|
||||||
"lightningcss": "1.30.2",
|
"lightningcss": "1.30.2",
|
||||||
"magic-string": "^0.30.19",
|
"magic-string": "^0.30.21",
|
||||||
"source-map-js": "^1.2.1",
|
"source-map-js": "^1.2.1",
|
||||||
"tailwindcss": "4.1.16"
|
"tailwindcss": "4.1.17"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide": {
|
"node_modules/@tailwindcss/oxide": {
|
||||||
"version": "4.1.16",
|
"version": "4.1.17",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.1.16.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.1.17.tgz",
|
||||||
"integrity": "sha512-2OSv52FRuhdlgyOQqgtQHuCgXnS8nFSYRp2tJ+4WZXKgTxqPy7SMSls8c3mPT5pkZ17SBToGM5LHEJBO7miEdg==",
|
"integrity": "sha512-F0F7d01fmkQhsTjXezGBLdrl1KresJTcI3DB8EkScCldyKp3Msz4hub4uyYaVnk88BAS1g5DQjjF6F5qczheLA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 10"
|
"node": ">= 10"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@tailwindcss/oxide-android-arm64": "4.1.16",
|
"@tailwindcss/oxide-android-arm64": "4.1.17",
|
||||||
"@tailwindcss/oxide-darwin-arm64": "4.1.16",
|
"@tailwindcss/oxide-darwin-arm64": "4.1.17",
|
||||||
"@tailwindcss/oxide-darwin-x64": "4.1.16",
|
"@tailwindcss/oxide-darwin-x64": "4.1.17",
|
||||||
"@tailwindcss/oxide-freebsd-x64": "4.1.16",
|
"@tailwindcss/oxide-freebsd-x64": "4.1.17",
|
||||||
"@tailwindcss/oxide-linux-arm-gnueabihf": "4.1.16",
|
"@tailwindcss/oxide-linux-arm-gnueabihf": "4.1.17",
|
||||||
"@tailwindcss/oxide-linux-arm64-gnu": "4.1.16",
|
"@tailwindcss/oxide-linux-arm64-gnu": "4.1.17",
|
||||||
"@tailwindcss/oxide-linux-arm64-musl": "4.1.16",
|
"@tailwindcss/oxide-linux-arm64-musl": "4.1.17",
|
||||||
"@tailwindcss/oxide-linux-x64-gnu": "4.1.16",
|
"@tailwindcss/oxide-linux-x64-gnu": "4.1.17",
|
||||||
"@tailwindcss/oxide-linux-x64-musl": "4.1.16",
|
"@tailwindcss/oxide-linux-x64-musl": "4.1.17",
|
||||||
"@tailwindcss/oxide-wasm32-wasi": "4.1.16",
|
"@tailwindcss/oxide-wasm32-wasi": "4.1.17",
|
||||||
"@tailwindcss/oxide-win32-arm64-msvc": "4.1.16",
|
"@tailwindcss/oxide-win32-arm64-msvc": "4.1.17",
|
||||||
"@tailwindcss/oxide-win32-x64-msvc": "4.1.16"
|
"@tailwindcss/oxide-win32-x64-msvc": "4.1.17"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide-android-arm64": {
|
"node_modules/@tailwindcss/oxide-android-arm64": {
|
||||||
"version": "4.1.16",
|
"version": "4.1.17",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.1.16.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.1.17.tgz",
|
||||||
"integrity": "sha512-8+ctzkjHgwDJ5caq9IqRSgsP70xhdhJvm+oueS/yhD5ixLhqTw9fSL1OurzMUhBwE5zK26FXLCz2f/RtkISqHA==",
|
"integrity": "sha512-BMqpkJHgOZ5z78qqiGE6ZIRExyaHyuxjgrJ6eBO5+hfrfGkuya0lYfw8fRHG77gdTjWkNWEEm+qeG2cDMxArLQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -2451,9 +2451,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide-darwin-arm64": {
|
"node_modules/@tailwindcss/oxide-darwin-arm64": {
|
||||||
"version": "4.1.16",
|
"version": "4.1.17",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.1.16.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.1.17.tgz",
|
||||||
"integrity": "sha512-C3oZy5042v2FOALBZtY0JTDnGNdS6w7DxL/odvSny17ORUnaRKhyTse8xYi3yKGyfnTUOdavRCdmc8QqJYwFKA==",
|
"integrity": "sha512-EquyumkQweUBNk1zGEU/wfZo2qkp/nQKRZM8bUYO0J+Lums5+wl2CcG1f9BgAjn/u9pJzdYddHWBiFXJTcxmOg==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -2468,9 +2468,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide-darwin-x64": {
|
"node_modules/@tailwindcss/oxide-darwin-x64": {
|
||||||
"version": "4.1.16",
|
"version": "4.1.17",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.1.16.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.1.17.tgz",
|
||||||
"integrity": "sha512-vjrl/1Ub9+JwU6BP0emgipGjowzYZMjbWCDqwA2Z4vCa+HBSpP4v6U2ddejcHsolsYxwL5r4bPNoamlV0xDdLg==",
|
"integrity": "sha512-gdhEPLzke2Pog8s12oADwYu0IAw04Y2tlmgVzIN0+046ytcgx8uZmCzEg4VcQh+AHKiS7xaL8kGo/QTiNEGRog==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -2485,9 +2485,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide-freebsd-x64": {
|
"node_modules/@tailwindcss/oxide-freebsd-x64": {
|
||||||
"version": "4.1.16",
|
"version": "4.1.17",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.1.16.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.1.17.tgz",
|
||||||
"integrity": "sha512-TSMpPYpQLm+aR1wW5rKuUuEruc/oOX3C7H0BTnPDn7W/eMw8W+MRMpiypKMkXZfwH8wqPIRKppuZoedTtNj2tg==",
|
"integrity": "sha512-hxGS81KskMxML9DXsaXT1H0DyA+ZBIbyG/sSAjWNe2EDl7TkPOBI42GBV3u38itzGUOmFfCzk1iAjDXds8Oh0g==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -2502,9 +2502,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": {
|
"node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": {
|
||||||
"version": "4.1.16",
|
"version": "4.1.17",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.1.16.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.1.17.tgz",
|
||||||
"integrity": "sha512-p0GGfRg/w0sdsFKBjMYvvKIiKy/LNWLWgV/plR4lUgrsxFAoQBFrXkZ4C0w8IOXfslB9vHK/JGASWD2IefIpvw==",
|
"integrity": "sha512-k7jWk5E3ldAdw0cNglhjSgv501u7yrMf8oeZ0cElhxU6Y2o7f8yqelOp3fhf7evjIS6ujTI3U8pKUXV2I4iXHQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm"
|
"arm"
|
||||||
],
|
],
|
||||||
@@ -2519,9 +2519,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide-linux-arm64-gnu": {
|
"node_modules/@tailwindcss/oxide-linux-arm64-gnu": {
|
||||||
"version": "4.1.16",
|
"version": "4.1.17",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.1.16.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.1.17.tgz",
|
||||||
"integrity": "sha512-DoixyMmTNO19rwRPdqviTrG1rYzpxgyYJl8RgQvdAQUzxC1ToLRqtNJpU/ATURSKgIg6uerPw2feW0aS8SNr/w==",
|
"integrity": "sha512-HVDOm/mxK6+TbARwdW17WrgDYEGzmoYayrCgmLEw7FxTPLcp/glBisuyWkFz/jb7ZfiAXAXUACfyItn+nTgsdQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -2536,9 +2536,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide-linux-arm64-musl": {
|
"node_modules/@tailwindcss/oxide-linux-arm64-musl": {
|
||||||
"version": "4.1.16",
|
"version": "4.1.17",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.1.16.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.1.17.tgz",
|
||||||
"integrity": "sha512-H81UXMa9hJhWhaAUca6bU2wm5RRFpuHImrwXBUvPbYb+3jo32I9VIwpOX6hms0fPmA6f2pGVlybO6qU8pF4fzQ==",
|
"integrity": "sha512-HvZLfGr42i5anKtIeQzxdkw/wPqIbpeZqe7vd3V9vI3RQxe3xU1fLjss0TjyhxWcBaipk7NYwSrwTwK1hJARMg==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -2553,9 +2553,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide-linux-x64-gnu": {
|
"node_modules/@tailwindcss/oxide-linux-x64-gnu": {
|
||||||
"version": "4.1.16",
|
"version": "4.1.17",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.1.16.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.1.17.tgz",
|
||||||
"integrity": "sha512-ZGHQxDtFC2/ruo7t99Qo2TTIvOERULPl5l0K1g0oK6b5PGqjYMga+FcY1wIUnrUxY56h28FxybtDEla+ICOyew==",
|
"integrity": "sha512-M3XZuORCGB7VPOEDH+nzpJ21XPvK5PyjlkSFkFziNHGLc5d6g3di2McAAblmaSUNl8IOmzYwLx9NsE7bplNkwQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -2570,9 +2570,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide-linux-x64-musl": {
|
"node_modules/@tailwindcss/oxide-linux-x64-musl": {
|
||||||
"version": "4.1.16",
|
"version": "4.1.17",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.1.16.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.1.17.tgz",
|
||||||
"integrity": "sha512-Oi1tAaa0rcKf1Og9MzKeINZzMLPbhxvm7rno5/zuP1WYmpiG0bEHq4AcRUiG2165/WUzvxkW4XDYCscZWbTLZw==",
|
"integrity": "sha512-k7f+pf9eXLEey4pBlw+8dgfJHY4PZ5qOUFDyNf7SI6lHjQ9Zt7+NcscjpwdCEbYi6FI5c2KDTDWyf2iHcCSyyQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -2587,9 +2587,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide-wasm32-wasi": {
|
"node_modules/@tailwindcss/oxide-wasm32-wasi": {
|
||||||
"version": "4.1.16",
|
"version": "4.1.17",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.1.16.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.1.17.tgz",
|
||||||
"integrity": "sha512-B01u/b8LteGRwucIBmCQ07FVXLzImWESAIMcUU6nvFt/tYsQ6IHz8DmZ5KtvmwxD+iTYBtM1xwoGXswnlu9v0Q==",
|
"integrity": "sha512-cEytGqSSoy7zK4JRWiTCx43FsKP/zGr0CsuMawhH67ONlH+T79VteQeJQRO/X7L0juEUA8ZyuYikcRBf0vsxhg==",
|
||||||
"bundleDependencies": [
|
"bundleDependencies": [
|
||||||
"@napi-rs/wasm-runtime",
|
"@napi-rs/wasm-runtime",
|
||||||
"@emnapi/core",
|
"@emnapi/core",
|
||||||
@@ -2605,8 +2605,8 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@emnapi/core": "^1.5.0",
|
"@emnapi/core": "^1.6.0",
|
||||||
"@emnapi/runtime": "^1.5.0",
|
"@emnapi/runtime": "^1.6.0",
|
||||||
"@emnapi/wasi-threads": "^1.1.0",
|
"@emnapi/wasi-threads": "^1.1.0",
|
||||||
"@napi-rs/wasm-runtime": "^1.0.7",
|
"@napi-rs/wasm-runtime": "^1.0.7",
|
||||||
"@tybys/wasm-util": "^0.10.1",
|
"@tybys/wasm-util": "^0.10.1",
|
||||||
@@ -2617,9 +2617,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide-win32-arm64-msvc": {
|
"node_modules/@tailwindcss/oxide-win32-arm64-msvc": {
|
||||||
"version": "4.1.16",
|
"version": "4.1.17",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.1.16.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.1.17.tgz",
|
||||||
"integrity": "sha512-zX+Q8sSkGj6HKRTMJXuPvOcP8XfYON24zJBRPlszcH1Np7xuHXhWn8qfFjIujVzvH3BHU+16jBXwgpl20i+v9A==",
|
"integrity": "sha512-JU5AHr7gKbZlOGvMdb4722/0aYbU+tN6lv1kONx0JK2cGsh7g148zVWLM0IKR3NeKLv+L90chBVYcJ8uJWbC9A==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -2634,9 +2634,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/oxide-win32-x64-msvc": {
|
"node_modules/@tailwindcss/oxide-win32-x64-msvc": {
|
||||||
"version": "4.1.16",
|
"version": "4.1.17",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.1.16.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.1.17.tgz",
|
||||||
"integrity": "sha512-m5dDFJUEejbFqP+UXVstd4W/wnxA4F61q8SoL+mqTypId2T2ZpuxosNSgowiCnLp2+Z+rivdU0AqpfgiD7yCBg==",
|
"integrity": "sha512-SKWM4waLuqx0IH+FMDUw6R66Hu4OuTALFgnleKbqhgGU30DY20NORZMZUKgLRjQXNN2TLzKvh48QXTig4h4bGw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -2651,17 +2651,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/postcss": {
|
"node_modules/@tailwindcss/postcss": {
|
||||||
"version": "4.1.16",
|
"version": "4.1.17",
|
||||||
"resolved": "https://registry.npmjs.org/@tailwindcss/postcss/-/postcss-4.1.16.tgz",
|
"resolved": "https://registry.npmjs.org/@tailwindcss/postcss/-/postcss-4.1.17.tgz",
|
||||||
"integrity": "sha512-Qn3SFGPXYQMKR/UtqS+dqvPrzEeBZHrFA92maT4zijCVggdsXnDBMsPFJo1eArX3J+O+Gi+8pV4PkqjLCNBk3A==",
|
"integrity": "sha512-+nKl9N9mN5uJ+M7dBOOCzINw94MPstNR/GtIhz1fpZysxL/4a+No64jCBD6CPN+bIHWFx3KWuu8XJRrj/572Dw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@alloc/quick-lru": "^5.2.0",
|
"@alloc/quick-lru": "^5.2.0",
|
||||||
"@tailwindcss/node": "4.1.16",
|
"@tailwindcss/node": "4.1.17",
|
||||||
"@tailwindcss/oxide": "4.1.16",
|
"@tailwindcss/oxide": "4.1.17",
|
||||||
"postcss": "^8.4.41",
|
"postcss": "^8.4.41",
|
||||||
"tailwindcss": "4.1.16"
|
"tailwindcss": "4.1.17"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tailwindcss/typography": {
|
"node_modules/@tailwindcss/typography": {
|
||||||
@@ -2678,9 +2678,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tsconfig/svelte": {
|
"node_modules/@tsconfig/svelte": {
|
||||||
"version": "5.0.5",
|
"version": "5.0.6",
|
||||||
"resolved": "https://registry.npmjs.org/@tsconfig/svelte/-/svelte-5.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/@tsconfig/svelte/-/svelte-5.0.6.tgz",
|
||||||
"integrity": "sha512-48fAnUjKye38FvMiNOj0J9I/4XlQQiZlpe9xaNPfe8vy2Y1hFBt8g1yqf2EGjVvHavo4jf2lC+TQyENCr4BJBQ==",
|
"integrity": "sha512-yGxYL0I9eETH1/DR9qVJey4DAsCdeau4a9wYPKuXfEhm8lFO8wg+LLYJjIpAm6Fw7HSlhepPhYPDop75485yWQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
@@ -2760,9 +2760,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/autoprefixer": {
|
"node_modules/autoprefixer": {
|
||||||
"version": "10.4.21",
|
"version": "10.4.22",
|
||||||
"resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.21.tgz",
|
"resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.22.tgz",
|
||||||
"integrity": "sha512-O+A6LWV5LDHSJD3LjHYoNi4VLsj/Whi7k6zG12xTYaU4cQ8oxQGckXNX8cRHK5yOZ/ppVHe0ZBXGzSV9jXdVbQ==",
|
"integrity": "sha512-ARe0v/t9gO28Bznv6GgqARmVqcWOV3mfgUPn9becPHMiD3o9BwlRgaeccZnwTpZ7Zwqrm+c1sUSsMxIzQzc8Xg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -2780,9 +2780,9 @@
|
|||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"browserslist": "^4.24.4",
|
"browserslist": "^4.27.0",
|
||||||
"caniuse-lite": "^1.0.30001702",
|
"caniuse-lite": "^1.0.30001754",
|
||||||
"fraction.js": "^4.3.7",
|
"fraction.js": "^5.3.4",
|
||||||
"normalize-range": "^0.1.2",
|
"normalize-range": "^0.1.2",
|
||||||
"picocolors": "^1.1.1",
|
"picocolors": "^1.1.1",
|
||||||
"postcss-value-parser": "^4.2.0"
|
"postcss-value-parser": "^4.2.0"
|
||||||
@@ -2848,6 +2848,16 @@
|
|||||||
"@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"
|
"@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/baseline-browser-mapping": {
|
||||||
|
"version": "2.8.28",
|
||||||
|
"resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.28.tgz",
|
||||||
|
"integrity": "sha512-gYjt7OIqdM0PcttNYP2aVrr2G0bMALkBaoehD4BuRGjAOtipg0b6wHg1yNL+s5zSnLZZrGHOw4IrND8CD+3oIQ==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"bin": {
|
||||||
|
"baseline-browser-mapping": "dist/cli.js"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/bgutils-js": {
|
"node_modules/bgutils-js": {
|
||||||
"version": "3.2.0",
|
"version": "3.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/bgutils-js/-/bgutils-js-3.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/bgutils-js/-/bgutils-js-3.2.0.tgz",
|
||||||
@@ -2859,9 +2869,9 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/browserslist": {
|
"node_modules/browserslist": {
|
||||||
"version": "4.25.1",
|
"version": "4.28.0",
|
||||||
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.25.1.tgz",
|
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.0.tgz",
|
||||||
"integrity": "sha512-KGj0KoOMXLpSNkkEI6Z6mShmQy0bc1I+T7K9N81k4WWMrfz+6fQ6es80B/YLAeRoKvjYE1YSHHOW1qe9xIVzHw==",
|
"integrity": "sha512-tbydkR/CxfMwelN0vwdP/pLkDwyAASZ+VfWm4EOwlB6SWhx1sYnWLqo8N5j0rAzPfzfRaxt0mM/4wPU/Su84RQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -2879,10 +2889,11 @@
|
|||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"caniuse-lite": "^1.0.30001726",
|
"baseline-browser-mapping": "^2.8.25",
|
||||||
"electron-to-chromium": "^1.5.173",
|
"caniuse-lite": "^1.0.30001754",
|
||||||
"node-releases": "^2.0.19",
|
"electron-to-chromium": "^1.5.249",
|
||||||
"update-browserslist-db": "^1.1.3"
|
"node-releases": "^2.0.27",
|
||||||
|
"update-browserslist-db": "^1.1.4"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"browserslist": "cli.js"
|
"browserslist": "cli.js"
|
||||||
@@ -2916,9 +2927,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/caniuse-lite": {
|
"node_modules/caniuse-lite": {
|
||||||
"version": "1.0.30001727",
|
"version": "1.0.30001754",
|
||||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001727.tgz",
|
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001754.tgz",
|
||||||
"integrity": "sha512-pB68nIHmbN6L/4C6MH1DokyR3bYqFwjaSs/sWDHGj4CTcFtQUQMuJftVwWkXq7mNWOybD3KhUv3oWHoGxgP14Q==",
|
"integrity": "sha512-x6OeBXueoAceOmotzx3PO4Zpt4rzpeIFsSr6AAePTZxSkXiYDUmpypEl7e2+8NCd9bD7bXjqyef8CJYPC1jfxg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -3123,9 +3134,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/daisyui": {
|
"node_modules/daisyui": {
|
||||||
"version": "5.3.10",
|
"version": "5.5.5",
|
||||||
"resolved": "https://registry.npmjs.org/daisyui/-/daisyui-5.3.10.tgz",
|
"resolved": "https://registry.npmjs.org/daisyui/-/daisyui-5.5.5.tgz",
|
||||||
"integrity": "sha512-vmjyPmm0hvFhA95KB6uiGmWakziB2pBv6CUcs5Ka/3iMBMn9S+C3SZYx9G9l2JrgTZ1EFn61F/HrPcwaUm2kLQ==",
|
"integrity": "sha512-ekvI93ZkWIJoCOtDl0D2QMxnWvTejk9V5nWBqRv+7t0xjiBXqAK5U6o6JE2RPvlIC3EqwNyUoIZSdHX9MZK3nw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"funding": {
|
"funding": {
|
||||||
@@ -3193,9 +3204,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/electron-to-chromium": {
|
"node_modules/electron-to-chromium": {
|
||||||
"version": "1.5.182",
|
"version": "1.5.252",
|
||||||
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.182.tgz",
|
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.252.tgz",
|
||||||
"integrity": "sha512-Lv65Btwv9W4J9pyODI6EWpdnhfvrve/us5h1WspW8B2Fb0366REPtY3hX7ounk1CkV/TBjWCEvCBBbYbmV0qCA==",
|
"integrity": "sha512-53uTpjtRgS7gjIxZ4qCgFdNO2q+wJt/Z8+xAvxbCqXPJrY6h7ighUkadQmNMXH96crtpa6gPFNP7BF4UBGDuaA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "ISC"
|
"license": "ISC"
|
||||||
},
|
},
|
||||||
@@ -3309,15 +3320,16 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/fraction.js": {
|
"node_modules/fraction.js": {
|
||||||
"version": "4.3.7",
|
"version": "5.3.4",
|
||||||
"resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz",
|
"resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-5.3.4.tgz",
|
||||||
"integrity": "sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==",
|
"integrity": "sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "*"
|
"node": "*"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"type": "patreon",
|
"type": "github",
|
||||||
"url": "https://github.com/sponsors/rawify"
|
"url": "https://github.com/sponsors/rawify"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -3870,9 +3882,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/magic-string": {
|
"node_modules/magic-string": {
|
||||||
"version": "0.30.19",
|
"version": "0.30.21",
|
||||||
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.19.tgz",
|
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",
|
||||||
"integrity": "sha512-2N21sPY9Ws53PZvsEpVtNuSW+ScYbQdp4b9qUaL+9QkHUrGFKo56Lg9Emg5s9V/qrtNBmiR01sYhUOwu3H+VOw==",
|
"integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -3936,10 +3948,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/node-releases": {
|
"node_modules/node-releases": {
|
||||||
"version": "2.0.19",
|
"version": "2.0.27",
|
||||||
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz",
|
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz",
|
||||||
"integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==",
|
"integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==",
|
||||||
"dev": true
|
"dev": true,
|
||||||
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/normalize-range": {
|
"node_modules/normalize-range": {
|
||||||
"version": "0.1.2",
|
"version": "0.1.2",
|
||||||
@@ -4403,9 +4416,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/svelte": {
|
"node_modules/svelte": {
|
||||||
"version": "5.43.2",
|
"version": "5.43.14",
|
||||||
"resolved": "https://registry.npmjs.org/svelte/-/svelte-5.43.2.tgz",
|
"resolved": "https://registry.npmjs.org/svelte/-/svelte-5.43.14.tgz",
|
||||||
"integrity": "sha512-ro1umEzX8rT5JpCmlf0PPv7ncD8MdVob9e18bhwqTKNoLjS8kDvhVpaoYVPc+qMwDAOfcwJtyY7ZFSDbOaNPgA==",
|
"integrity": "sha512-pHeUrp1A5S6RGaXhJB7PtYjL1VVjbVrJ2EfuAoPu9/1LeoMaJa/pcdCsCSb0gS4eUHAHnhCbUDxORZyvGK6kOQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -4429,9 +4442,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/svelte-check": {
|
"node_modules/svelte-check": {
|
||||||
"version": "4.3.3",
|
"version": "4.3.4",
|
||||||
"resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-4.3.3.tgz",
|
"resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-4.3.4.tgz",
|
||||||
"integrity": "sha512-RYP0bEwenDXzfv0P1sKAwjZSlaRyqBn0Fz1TVni58lqyEiqgwztTpmodJrGzP6ZT2aHl4MbTvWP6gbmQ3FOnBg==",
|
"integrity": "sha512-DVWvxhBrDsd+0hHWKfjP99lsSXASeOhHJYyuKOFYJcP7ThfSCKgjVarE8XfuMWpS5JV3AlDf+iK1YGGo2TACdw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -4514,9 +4527,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/tailwindcss": {
|
"node_modules/tailwindcss": {
|
||||||
"version": "4.1.16",
|
"version": "4.1.17",
|
||||||
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.16.tgz",
|
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.17.tgz",
|
||||||
"integrity": "sha512-pONL5awpaQX4LN5eiv7moSiSPd/DLDzKVRJz8Q9PgzmAdd1R4307GQS2ZpfiN7ZmekdQrfhZZiSE5jkLR4WNaA==",
|
"integrity": "sha512-j9Ee2YjuQqYT9bbRTfTZht9W/ytp5H+jJpZKiYdP/bpnXARAuELt9ofP0lPnmHjbga7SNQIxdTAXCmtKVYjN+Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
@@ -4535,9 +4548,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/terser": {
|
"node_modules/terser": {
|
||||||
"version": "5.44.0",
|
"version": "5.44.1",
|
||||||
"resolved": "https://registry.npmjs.org/terser/-/terser-5.44.0.tgz",
|
"resolved": "https://registry.npmjs.org/terser/-/terser-5.44.1.tgz",
|
||||||
"integrity": "sha512-nIVck8DK+GM/0Frwd+nIhZ84pR/BX7rmXMfYwyg+Sri5oGVE99/E3KvXqpC2xHFxyqXyGHTKBSioxxplrO4I4w==",
|
"integrity": "sha512-t/R3R/n0MSwnnazuPpPNVO60LX0SKL45pyl9YlvxIdkH0Of7D5qM2EVe+yASRIlY5pZ73nclYJfNANGWPwFDZw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "BSD-2-Clause",
|
"license": "BSD-2-Clause",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -4670,9 +4683,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/update-browserslist-db": {
|
"node_modules/update-browserslist-db": {
|
||||||
"version": "1.1.3",
|
"version": "1.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.4.tgz",
|
||||||
"integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==",
|
"integrity": "sha512-q0SPT4xyU84saUX+tomz1WLkxUbuaJnR1xWt17M7fJtEJigJeWUNGUqrauFXsHnqev9y9JTRGwk13tFBuKby4A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -4707,9 +4720,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/vite": {
|
"node_modules/vite": {
|
||||||
"version": "7.1.12",
|
"version": "7.2.4",
|
||||||
"resolved": "https://registry.npmjs.org/vite/-/vite-7.1.12.tgz",
|
"resolved": "https://registry.npmjs.org/vite/-/vite-7.2.4.tgz",
|
||||||
"integrity": "sha512-ZWyE8YXEXqJrrSLvYgrRP7p62OziLW7xI5HYGWFzOvupfAlrLvURSzv/FyGyy0eidogEM3ujU+kUG1zuHgb6Ug==",
|
"integrity": "sha512-NL8jTlbo0Tn4dUEXEsUg8KeyG/Lkmc4Fnzb8JXN/Ykm9G4HNImjtABMJgkQoVjOBN/j2WAwDTRytdqJbZsah7w==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
+10
-10
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-web",
|
"name": "playlet-web",
|
||||||
"version": "0.43.8",
|
"version": "0.44.4",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
@@ -10,26 +10,26 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
||||||
"@tailwindcss/postcss": "^4.1.16",
|
"@tailwindcss/postcss": "^4.1.17",
|
||||||
"@tailwindcss/typography": "^0.5.19",
|
"@tailwindcss/typography": "^0.5.19",
|
||||||
"@tsconfig/svelte": "^5.0.5",
|
"@tsconfig/svelte": "^5.0.6",
|
||||||
"@vitejs/plugin-legacy": "^7.2.1",
|
"@vitejs/plugin-legacy": "^7.2.1",
|
||||||
"autoprefixer": "^10.4.21",
|
"autoprefixer": "^10.4.22",
|
||||||
"bgutils-js": "^3.2.0",
|
"bgutils-js": "^3.2.0",
|
||||||
"daisyui": "^5.3.10",
|
"daisyui": "^5.5.5",
|
||||||
"dotenv": "^17.2.3",
|
"dotenv": "^17.2.3",
|
||||||
"ip": "^2.0.1",
|
"ip": "^2.0.1",
|
||||||
"jszip": "^3.10.1",
|
"jszip": "^3.10.1",
|
||||||
"postcss": "^8.5.6",
|
"postcss": "^8.5.6",
|
||||||
"rollup-plugin-visualizer": "^6.0.5",
|
"rollup-plugin-visualizer": "^6.0.5",
|
||||||
"svelte": "^5.43.2",
|
"svelte": "^5.43.14",
|
||||||
"svelte-check": "^4.3.3",
|
"svelte-check": "^4.3.4",
|
||||||
"svelte-preprocess": "^6.0.3",
|
"svelte-preprocess": "^6.0.3",
|
||||||
"tailwindcss": "^4.1.16",
|
"tailwindcss": "^4.1.17",
|
||||||
"terser": "^5.44.0",
|
"terser": "^5.44.1",
|
||||||
"tslib": "^2.8.1",
|
"tslib": "^2.8.1",
|
||||||
"typescript": "^5.9.3",
|
"typescript": "^5.9.3",
|
||||||
"vite": "^7.1.12",
|
"vite": "^7.2.4",
|
||||||
"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": "^16.0.1"
|
"youtubei.js": "^16.0.1"
|
||||||
|
|||||||
@@ -15,6 +15,6 @@ INVIDIOUS_HMAC_KEY=PASSWORD_1
|
|||||||
INVIDIOUS_COMPANION_KEY=PASSWORD_2
|
INVIDIOUS_COMPANION_KEY=PASSWORD_2
|
||||||
```
|
```
|
||||||
|
|
||||||
- Run `docker-compose up`
|
- Run `docker compose up -d --pull always`
|
||||||
|
|
||||||
Invidious should now be running locally on port 3000.
|
Invidious should now be running locally on port 3000.
|
||||||
@@ -32,7 +32,7 @@ services:
|
|||||||
# Use the key generated in the 2nd step
|
# Use the key generated in the 2nd step
|
||||||
hmac_key: $INVIDIOUS_HMAC_KEY
|
hmac_key: $INVIDIOUS_HMAC_KEY
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/trending || exit 1
|
test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/popular || exit 1
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 2
|
retries: 2
|
||||||
|
|||||||
Reference in new issue
Block a user