Compare commits

..
28 Commits
Author SHA1 Message Date
Brahim Hadriche 58f521f923 Release v0.44.0 (#787) 2025-11-08 21:10:21 -05:00
Brahim Hadriche 4293a958d0 [skip ci] Comment for TILE_CONTENT_TYPE_EDU 2025-11-08 20:54:07 -05:00
Brahim Hadriche 4a89fd0aa9 changelog 2025-11-08 14:26:37 -05:00
Dave Wickham f1a3df81b2 Add code to prioritise human-made subtitles (#786) 2025-11-08 14:25:57 -05:00
Brahim Hadriche d876f819fc [skip ci] mark transient playback error as a warning 2025-11-08 14:09:59 -05:00
Brahim Hadriche 757dc6069e [skip ci] OTF small refactor 2025-11-08 14:03:14 -05:00
Brahim Hadriche e7f4b3fee1 [skip ci] adjust telemetry events 2025-11-08 13:52:57 -05:00
Brahim Hadriche 319457bada update dependencies (#785) 2025-11-08 13:37:57 -05:00
Brahim Hadriche c91f5e49c0 [skip ci] Ignore setAutoplayMode 2025-11-08 11:43:07 -05:00
Brahim Hadriche 45e320abe4 [skip ci] remove todo 2025-11-07 17:23:11 -05:00
Brahim Hadriche 4d1673ecfb [skip ci] Implemented compactRadioRenderer node 2025-11-07 17:19:16 -05:00
Brahim Hadriche 3eb3c0854a [skip ci] more error tweaks 2025-11-07 16:31:37 -05:00
Brahim Hadriche 24cf06bf44 [skip ci] adjust player errors 2025-11-07 15:55:24 -05:00
Brahim Hadriche 9318db7762 Release v0.43.9 (#783) 2025-11-07 14:27:26 -05:00
Brahim Hadriche 42ca2d1b30 [skip ci] another otf fix 2025-11-07 14:24:40 -05:00
Brahim Hadriche 446bba67c9 [skip ci] video error capture 2025-11-07 09:09:23 -05:00
Brahim Hadriche c034dfe109 Release v0.43.8 (#782) 2025-11-07 08:40:47 -05:00
Brahim Hadriche 129f0a8adb [skip ci] document OTF 2025-11-07 08:40:32 -05:00
Brahim Hadriche a42c7221c6 [skip ci] Redo OTF processing 2025-11-07 08:29:45 -05:00
Brahim Hadriche c602fe3ed2 [skip ci] add more info in otf telemetry 2025-11-06 16:24:57 -05:00
Brahim Hadriche 33bb74d976 [skip ci] Fix in url decipher logic 2025-11-06 12:26:28 -05:00
Brahim Hadriche 422c867c00 Release v0.43.7 (#781) 2025-11-06 11:52:24 -05:00
Brahim Hadriche 6e43528802 [skip ci] Adjust telemetry for OTF streams to debug 2025-11-06 11:48:20 -05:00
Brahim Hadriche 61d4baa181 [skip ci] Remove redundant log 2025-11-06 11:39:44 -05:00
Brahim Hadriche 7f451af418 Release v0.43.6 (#780) 2025-11-06 08:44:23 -05:00
Brahim Hadriche b72a1522a4 [skip ci] adjust gvs headers 2025-11-06 08:43:59 -05:00
Brahim Hadriche 86b1afe243 [skip ci] adjust error check 2025-11-06 08:25:33 -05:00
Brahim Hadriche 67bf473dda [skip ci] Fix bug in processing OTF streams info 2025-11-06 08:13:50 -05:00
21 changed files with 553 additions and 318 deletions

No files matched your search

+32
View File
@@ -5,6 +5,38 @@ 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.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
### Fixed
- Fix in url decipher logic
- Redo OTF segment processing
## [0.43.7] - 2025-11-06
### Fixed
- Adjust telemetry for OTF streams to debug
## [0.43.6] - 2025-11-06
### Fixed
- Bug in processing OTF streams info
## [0.43.5] - 2025-11-06 ## [0.43.5] - 2025-11-06
### Fixed ### Fixed
+48 -48
View File
@@ -1,18 +1,18 @@
{ {
"name": "playlet", "name": "playlet",
"version": "0.43.5", "version": "0.44.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playlet", "name": "playlet",
"version": "0.43.5", "version": "0.44.0",
"hasInstallScript": true, "hasInstallScript": true,
"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.0",
"@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",
@@ -25,9 +25,9 @@
"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.29.1",
"roku-deploy": "^3.14.4", "roku-deploy": "^3.14.4",
"roku-test-automation": "^2.2.1", "roku-test-automation": "^2.2.1",
"rooibos-roku": "5.15.5", "rooibos-roku": "5.15.5",
@@ -44,7 +44,7 @@
"node": "22" "node": "22"
}, },
"optionalDependencies": { "optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "^4.52.5" "@rollup/rollup-linux-x64-gnu": "^4.53.1"
} }
}, },
"node_modules/@babel/code-frame": { "node_modules/@babel/code-frame": {
@@ -574,9 +574,9 @@
} }
}, },
"node_modules/@rollup/rollup-linux-x64-gnu": { "node_modules/@rollup/rollup-linux-x64-gnu": {
"version": "4.52.5", "version": "4.53.1",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.52.5.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.53.1.tgz",
"integrity": "sha512-hXGLYpdhiNElzN770+H2nlx+jRog8TyynpTVzdlc6bndktjKWyZyiCsuDAlpd+j+W+WNqfcyAWz9HxxIGfZm1Q==", "integrity": "sha512-E/n8x2MSjAQgjj9IixO4UeEUeqXLtiA7pyoXCFYLuXpBA/t2hnbIdxHfA7kK9BFsYAoNU4st1rHYdldl8dTqGA==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@@ -737,9 +737,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/@types/node": { "node_modules/@types/node": {
"version": "24.9.2", "version": "24.10.0",
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.9.2.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.0.tgz",
"integrity": "sha512-uWN8YqxXxqFMX2RqGOrumsKeti4LlmIMIyV0lgut4jx7KQBcBiW6vkDtIBvHnHIquwNfJhk8v2OtmO8zXWHfPA==", "integrity": "sha512-qzQZRBqkFsYyaSWXuEHc2WR9c0a0CXwiE5FWUvn7ZM+vdy1uZLfCunD38UzhuB7YN/J11ndbDBcTmOdxJo9Q7A==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@@ -856,6 +856,18 @@
"regexp-to-ast": "0.5.0" "regexp-to-ast": "0.5.0"
} }
}, },
"node_modules/@zone-eu/mailsplit": {
"version": "5.4.7",
"resolved": "https://registry.npmjs.org/@zone-eu/mailsplit/-/mailsplit-5.4.7.tgz",
"integrity": "sha512-jApX86aDgolMz08pP20/J2zcns02NSK3zSiYouf01QQg4250L+GUAWSWicmS7eRvs+Z7wP7QfXrnkaTBGrIpwQ==",
"dev": true,
"license": "(MIT OR EUPL-1.1+)",
"dependencies": {
"libbase64": "1.3.0",
"libmime": "5.3.7",
"libqp": "2.1.1"
}
},
"node_modules/accepts": { "node_modules/accepts": {
"version": "1.3.8", "version": "1.3.8",
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
@@ -4322,22 +4334,22 @@
} }
}, },
"node_modules/mailparser": { "node_modules/mailparser": {
"version": "3.7.5", "version": "3.9.0",
"resolved": "https://registry.npmjs.org/mailparser/-/mailparser-3.7.5.tgz", "resolved": "https://registry.npmjs.org/mailparser/-/mailparser-3.9.0.tgz",
"integrity": "sha512-o59RgZC+4SyCOn4xRH1mtRiZ1PbEmi6si6Ufnd3tbX/V9zmZN1qcqu8xbXY62H6CwIclOT3ppm5u/wV2nujn4g==", "integrity": "sha512-jpaNLhDjwy0w2f8sySOSRiWREjPqssSc0C2czV98btCXCRX3EyNloQ2IWirmMDj1Ies8Fkm0l96bZBZpDG7qkg==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@zone-eu/mailsplit": "5.4.7",
"encoding-japanese": "2.2.0", "encoding-japanese": "2.2.0",
"he": "1.2.0", "he": "1.2.0",
"html-to-text": "9.0.5", "html-to-text": "9.0.5",
"iconv-lite": "0.7.0", "iconv-lite": "0.7.0",
"libmime": "5.3.7", "libmime": "5.3.7",
"linkify-it": "5.0.0", "linkify-it": "5.0.0",
"mailsplit": "5.4.6", "nodemailer": "7.0.10",
"nodemailer": "7.0.9",
"punycode.js": "2.3.1", "punycode.js": "2.3.1",
"tlds": "1.260.0" "tlds": "1.261.0"
} }
}, },
"node_modules/mailparser/node_modules/iconv-lite": { "node_modules/mailparser/node_modules/iconv-lite": {
@@ -4357,18 +4369,6 @@
"url": "https://opencollective.com/express" "url": "https://opencollective.com/express"
} }
}, },
"node_modules/mailsplit": {
"version": "5.4.6",
"resolved": "https://registry.npmjs.org/mailsplit/-/mailsplit-5.4.6.tgz",
"integrity": "sha512-M+cqmzaPG/mEiCDmqQUz8L177JZLZmXAUpq38owtpq2xlXlTSw+kntnxRt2xsxVFFV6+T8Mj/U0l5s7s6e0rNw==",
"dev": true,
"license": "(MIT OR EUPL-1.1+)",
"dependencies": {
"libbase64": "1.3.0",
"libmime": "5.3.7",
"libqp": "2.1.1"
}
},
"node_modules/make-error": { "node_modules/make-error": {
"version": "1.3.6", "version": "1.3.6",
"resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",
@@ -4669,9 +4669,9 @@
} }
}, },
"node_modules/nodemailer": { "node_modules/nodemailer": {
"version": "7.0.9", "version": "7.0.10",
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-7.0.9.tgz", "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-7.0.10.tgz",
"integrity": "sha512-9/Qm0qXIByEP8lEV2qOqcAW7bRpL8CR9jcTwk3NBnHJNmP9fIJ86g2fgmIXqHY+nj55ZEMwWqYAT2QTDpRUYiQ==", "integrity": "sha512-Us/Se1WtT0ylXgNFfyFSx4LElllVLJXQjWi2Xz17xWw7amDKO2MLtFnVp1WACy7GkVGs+oBlRopVNUzlrGSw1w==",
"dev": true, "dev": true,
"license": "MIT-0", "license": "MIT-0",
"engines": { "engines": {
@@ -5318,18 +5318,18 @@
} }
}, },
"node_modules/puppeteer": { "node_modules/puppeteer": {
"version": "24.27.0", "version": "24.29.1",
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-24.27.0.tgz", "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-24.29.1.tgz",
"integrity": "sha512-eEcAFGxmHRSrk74DVkFAMAwfj4l3Ak8avBuA2bZaAoocY1+Fb9WLS3I7jlOc/tIOU7EmGLiDdVP08R44wADpHw==", "integrity": "sha512-pX05JV1mMP+1N0vP3I4DOVwjMdpihv2LxQTtSfw6CUm5F0ZFLUFE/LSZ4yUWHYaM3C11Hdu+sgn7uY7teq5MYw==",
"dev": true, "dev": true,
"hasInstallScript": true, "hasInstallScript": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@puppeteer/browsers": "2.10.12", "@puppeteer/browsers": "2.10.13",
"chromium-bidi": "10.5.1", "chromium-bidi": "10.5.1",
"cosmiconfig": "^9.0.0", "cosmiconfig": "^9.0.0",
"devtools-protocol": "0.0.1521046", "devtools-protocol": "0.0.1521046",
"puppeteer-core": "24.27.0", "puppeteer-core": "24.29.1",
"typed-query-selector": "^2.12.0" "typed-query-selector": "^2.12.0"
}, },
"bin": { "bin": {
@@ -5363,9 +5363,9 @@
"dev": true "dev": true
}, },
"node_modules/puppeteer/node_modules/@puppeteer/browsers": { "node_modules/puppeteer/node_modules/@puppeteer/browsers": {
"version": "2.10.12", "version": "2.10.13",
"resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-2.10.12.tgz", "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-2.10.13.tgz",
"integrity": "sha512-mP9iLFZwH+FapKJLeA7/fLqOlSUwYpMwjR1P5J23qd4e7qGJwecJccJqHYrjw33jmIZYV4dtiTHPD/J+1e7cEw==", "integrity": "sha512-a9Ruw3j3qlnB5a/zHRTkruppynxqaeE4H9WNj5eYGRWqw0ZauZ23f4W2ARf3hghF5doozyD+CRtt7XSYuYRI/Q==",
"dev": true, "dev": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
@@ -5474,13 +5474,13 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/puppeteer/node_modules/puppeteer-core": { "node_modules/puppeteer/node_modules/puppeteer-core": {
"version": "24.27.0", "version": "24.29.1",
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-24.27.0.tgz", "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-24.29.1.tgz",
"integrity": "sha512-yubwj2XXmTM3wRIpbhO5nCjbByPgpFHlgrsD4IK+gMPqO7/a5FfnoSXDKjmqi8A2M1Ewusz0rTI/r+IN0GU0MA==", "integrity": "sha512-ErJ9qKCK+bdLvBa7QVSQTBSPm8KZbl1yC/WvhrZ0ut27hDf2QBzjDsn1IukzE1i1KtZ7NYGETOV4W1beoo9izA==",
"dev": true, "dev": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@puppeteer/browsers": "2.10.12", "@puppeteer/browsers": "2.10.13",
"chromium-bidi": "10.5.1", "chromium-bidi": "10.5.1",
"debug": "^4.4.3", "debug": "^4.4.3",
"devtools-protocol": "0.0.1521046", "devtools-protocol": "0.0.1521046",
@@ -7344,9 +7344,9 @@
"dev": true "dev": true
}, },
"node_modules/tlds": { "node_modules/tlds": {
"version": "1.260.0", "version": "1.261.0",
"resolved": "https://registry.npmjs.org/tlds/-/tlds-1.260.0.tgz", "resolved": "https://registry.npmjs.org/tlds/-/tlds-1.261.0.tgz",
"integrity": "sha512-78+28EWBhCEE7qlyaHA9OR3IPvbCLiDh3Ckla593TksfFc9vfTsgvH7eS+dr3o9qr31gwGbogcI16yN91PoRjQ==", "integrity": "sha512-QXqwfEl9ddlGBaRFXIvNKK6OhipSiLXuRuLJX5DErz0o0Q0rYxulWLdFryTkV5PkdZct5iMInwYEGe/eR++1AA==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"bin": { "bin": {
+5 -5
View File
@@ -1,12 +1,12 @@
{ {
"name": "playlet", "name": "playlet",
"version": "0.43.5", "version": "0.44.0",
"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.0",
"@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",
@@ -19,9 +19,9 @@
"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.29.1",
"roku-deploy": "^3.14.4", "roku-deploy": "^3.14.4",
"roku-test-automation": "^2.2.1", "roku-test-automation": "^2.2.1",
"rooibos-roku": "5.15.5", "rooibos-roku": "5.15.5",
@@ -75,6 +75,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.1"
} }
} }
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "playlet-app", "name": "playlet-app",
"version": "0.43.5", "version": "0.44.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playlet-app", "name": "playlet-app",
"version": "0.43.5" "version": "0.44.0"
} }
} }
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "playlet-app", "name": "playlet-app",
"version": "0.43.5", "version": "0.44.0",
"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",
+2 -2
View File
@@ -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=00005 build_version=00000
ui_resolutions=hd ui_resolutions=hd
uri_resolution_autosub=$$RES$$,480p,720p,1080p uri_resolution_autosub=$$RES$$,480p,720p,1080p
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "playlet-lib", "name": "playlet-lib",
"version": "0.43.5", "version": "0.44.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playlet-lib", "name": "playlet-lib",
"version": "0.43.5" "version": "0.44.0"
} }
} }
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "playlet-lib", "name": "playlet-lib",
"version": "0.43.5", "version": "0.44.0",
"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",
@@ -496,11 +496,7 @@ class DashManifest
xml.Comment(`[ERROR] OTF stream has empty otfSegmentDurations for itag: ${stream.itag}`) xml.Comment(`[ERROR] OTF stream has empty otfSegmentDurations for itag: ${stream.itag}`)
end if end if
for each segment in segmentDurations for each segment in segmentDurations
sAttributes = { "d": segment.duration } xml.EmptyNode("S", segment)
if segment.repeatCount <> invalid
sAttributes["r"] = segment.repeatCount
end if
xml.EmptyNode("S", sAttributes)
end for end for
xml.End() xml.End()
end if end if
@@ -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
@@ -1025,6 +1024,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 +1429,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)
@@ -0,0 +1,195 @@
import "pkg:/components/Services/Innertube/Context.bs"
namespace Innertube
' OTF (On-The-Fly?) segment info retrieval and parsing
' When innertube returns adaptive formats, sometimes there's a property
' attached to the object: adaptiveFormats[].type = "FORMAT_STREAM_TYPE_OTF".
' When that happens, the segment info (durations, repeat counts) is not included
' in the response. Instead, they are appended to the media init segment itself.
' The init segment would contain video init information, which is binary, appended
' with a text section in this format:
' `Segment-Count: 731\r\n` +
' `Segment-Durations-Ms: 5333,5334,5333(r=1),5334,5333(r=1),\r\n`
' Because of this, the init segment needs to be downloaded to a tmp file, loaded in
' a byte array, converted to hex, and parsed. Loading the file to ascii string directly
' would not work because it would be truncated at the first null byte.
const OTF_MAX_REQUEST_COUNT = 8
function OTFGetSegmentInfo(adaptiveFormats as object, client as Innertube.ClientType, cancellation as object) as void
errors = {
message: ""
attachments: []
}
formatsToProcess = []
for i = 0 to adaptiveFormats.Count() - 1
formatsToProcess.Push({
format: adaptiveFormats[i]
filePath: `tmp:/otf_segments/${i}.bin`
})
end for
pendingFormats = []
requestHeaders = Innertube.CreateHeaders(client)
requestHeaders["origin"] = "https://www.youtube.com"
requestHeaders["referer"] = "https://www.youtube.com"
requestHeaders["DNT"] = "?1"
segmentDurationsRegex = CreateObject("roRegex", "(\d+)(?:\(r=(\d+)\))?", "g")
fs = CreateObject("roFileSystem")
fs.Delete("tmp:/otf_segments")
fs.CreateDirectory("tmp:/otf_segments")
while true
while formatsToProcess.Count() > 0 and pendingFormats.Count() < OTF_MAX_REQUEST_COUNT
formatToProcess = formatsToProcess.Pop()
request = OTFMakeSegmentInfoRequest(formatToProcess.format, formatToProcess.filePath, requestHeaders, errors, cancellation)
if request <> invalid
formatToProcess.request = request
pendingFormats.Push(formatToProcess)
end if
end while
if pendingFormats.Count() = 0
exit while
end if
pendingFormat = pendingFormats.Shift()
' returns false if processing should stop (e.g., cancelled)
if not OTFProcessPendingFormat(pendingFormat.format, pendingFormat.request, pendingFormat.filePath, segmentDurationsRegex, errors)
exit while
end if
end while
fs.Delete("tmp:/otf_segments")
if not StringUtils.IsNullOrEmpty(errors.message) or errors.attachments.Count() > 0
LogTelemetryEvent({
level: "error"
message: `OTF errors during segment info retrieval: \n${errors.message}`
fingerprint: ["OTF errors during segment info retrieval"]
attachments: errors.attachments
})
end if
end function
function OTFMakeSegmentInfoRequest(format as object, filePath as string, requestHeaders as object, errors as object, cancellation as object) as object
url = format.url
if StringUtils.IsNullOrEmpty(url)
errors.message += `URL is empty for itag ${format.itag}.\n`
return invalid
end if
queryComponents = UrlUtils.ParseQueryComponents(url)
queryComponents["rn"] = "0"
queryComponents["sq"] = "0"
otfUrl = UrlUtils.SetQueryParams(url, queryComponents)
request = HttpClient.Get(otfUrl)
request.Headers(requestHeaders)
request.ToFile(filePath)
request.Cancellation(cancellation)
request.Send()
return request
end function
function OTFProcessPendingFormat(format as object, request as object, filePath as string, segmentDurationsRegex as object, errors as object) as boolean
response = request.Await()
if response.IsCancelled()
return false
end if
if not response.IsSuccess()
errors.message += `Failed to get segment info for itag ${format.itag}: ${response.ErrorMessage()}\n`
return true
end if
segmentDurations = OTFParseFileForSegmentDurations(filePath, segmentDurationsRegex, errors)
if segmentDurations = invalid
errors.message += `Failed to parse segment durations for itag ${format.itag}.\n`
errors.message += `Headers: ${ToString(response.Headers())}\n`
return true
end if
format["otfSegmentDurations"] = segmentDurations
return true
end function
function OTFParseFileForSegmentDurations(filePath as string, segmentDurationsRegex as object, errors as object) as dynamic
buffer = CreateObject("roByteArray")
buffer.FromAsciiString("Segment-Durations-Ms:")
startMarkerHex = buffer.ToHexString()
buffer.FromAsciiString(`\r\n`)
endMarkerHex = buffer.ToHexString()
if not buffer.ReadFile(filePath)
errors.message += `Failed to read filePath ${filePath}.\n`
return invalid
end if
contentHex = buffer.ToHexString()
startIndex = contentHex.InStr(startMarkerHex)
if startIndex = -1
errors.message += `Start marker not found in filePath ${filePath}.\n`
errors.attachments.Push({
filename: filePath
content_type: "plain/text"
data: contentHex
})
return invalid
end if
endIndex = contentHex.InStr(startIndex, endMarkerHex)
if endIndex = -1
errors.message += `End marker not found in filePath ${filePath}.\n`
errors.attachments.Push({
filename: filePath
content_type: "plain/text"
data: contentHex
})
return invalid
end if
segmentDurationsMsHex = contentHex.Mid(startIndex + startMarkerHex.len(), endIndex - (startIndex + startMarkerHex.len()))
buffer.FromHexString(segmentDurationsMsHex)
segmentDurationsMs = buffer.ToAsciiString()
matches = segmentDurationsRegex.MatchAll(segmentDurationsMs)
if not IsArray(matches) or matches.Count() = 0
errors.message += `No segment duration matches found in filePath ${filePath}.\n`
errors.attachments.Push({
filename: filePath
content_type: "plain/text"
data: contentHex
})
return invalid
end if
segmentDurations = CreateObject("roArray", matches.Count(), false)
for i = 0 to matches.Count() - 1
match = matches[i]
segment = {}
' We set duration and repeatCount to "d" and "r" so that we can feed
' them directly into the DashManifest generation code.
if match.Count() >= 2
segment["d"] = match[1].ToInt()
end if
if match.Count() >= 3
segment["r"] = match[2].ToInt()
end if
segmentDurations[i] = segment
end for
return segmentDurations
end function
end namespace
@@ -1,5 +1,6 @@
import "pkg:/components/Services/Innertube/Context.bs" import "pkg:/components/Services/Innertube/Context.bs"
import "pkg:/components/Services/Innertube/NodesParser.bs" import "pkg:/components/Services/Innertube/NodesParser.bs"
import "pkg:/components/Services/Innertube/OTFSegmentInfo.bs"
import "pkg:/source/services/HttpClient.bs" import "pkg:/source/services/HttpClient.bs"
import "pkg:/source/utils/ObjectUtils.bs" import "pkg:/source/utils/ObjectUtils.bs"
import "pkg:/source/utils/Types.bs" import "pkg:/source/utils/Types.bs"
@@ -168,7 +169,7 @@ namespace Innertube
if isOTF if isOTF
LogDebug("Fetching OTF segment info") LogDebug("Fetching OTF segment info")
GetOTFSegmentInfo(adaptiveFormats, client, cancellation) OTFGetSegmentInfo(adaptiveFormats, client, cancellation)
end if end if
return parsedResponse return parsedResponse
@@ -315,6 +316,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
@@ -340,13 +342,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
@@ -547,8 +558,7 @@ namespace Innertube
for i = 0 to decipheredFormats.Count() - 1 for i = 0 to decipheredFormats.Count() - 1
fmt = formats[i] fmt = formats[i]
decipheredFmt = decipheredFormats[i] decipheredFmt = decipheredFormats[i]
fmt["url"] = ResetUrlClientVersion(decipheredFmt["url"])
fmt["url"] = decipheredFmt["url"]
end for end for
decipheredAdaptiveFormats = json["adaptiveFormats"] decipheredAdaptiveFormats = json["adaptiveFormats"]
@@ -562,11 +572,34 @@ namespace Innertube
for i = 0 to decipheredAdaptiveFormats.Count() - 1 for i = 0 to decipheredAdaptiveFormats.Count() - 1
fmt = adaptiveFormats[i] fmt = adaptiveFormats[i]
decipheredFmt = decipheredAdaptiveFormats[i] decipheredFmt = decipheredAdaptiveFormats[i]
fmt["url"] = decipheredFmt["url"] fmt["url"] = ResetUrlClientVersion(decipheredFmt["url"])
end for end for
return invalid return invalid
end function end function
' YouTube.js sets cver to hardcoded values that might be different from
' What's used in Playlet. There's no indication that this makes a difference,
' but it makes sense to keep it consistent.
function ResetUrlClientVersion(url as dynamic) as dynamic
if StringUtils.IsNullOrEmpty(url)
return url
end if
queryComponents = UrlUtils.ParseQueryComponents(url)
client = ValidString(queryComponents["c"])
if client = "TVHTML5"
queryComponents["cver"] = INNERTUBE_TV_CLIENT_VERSION
else if client = "IOS"
queryComponents["cver"] = INNERTUBE_IOS_CLIENT_VERSION
else if client = "WEB"
queryComponents["cver"] = INNERTUBE_WEB_CLIENT_VERSION
else
return url
end if
return UrlUtils.SetQueryParams(url, queryComponents)
end function
function ParseIsLoggedIn(payload as object) as boolean function ParseIsLoggedIn(payload as object) as boolean
trackingParams = ObjectUtils.Dig(payload, ["responseContext", "serviceTrackingParams"]) trackingParams = ObjectUtils.Dig(payload, ["responseContext", "serviceTrackingParams"])
if not IsArray(trackingParams) if not IsArray(trackingParams)
@@ -677,7 +710,12 @@ namespace Innertube
url = UrlUtils.SetQueryParams(url, queryComponents) url = UrlUtils.SetQueryParams(url, queryComponents)
request = HttpClient.Head(url) request = HttpClient.Head(url)
request.Headers(Innertube.CreateHeaders(client)) requestHeaders = Innertube.CreateHeaders(client)
requestHeaders["origin"] = "https://www.youtube.com"
requestHeaders["referer"] = "https://www.youtube.com"
requestHeaders["DNT"] = "?1"
request.Headers(requestHeaders)
request.TryCount(2) request.TryCount(2)
request.Cancellation(cancellation) request.Cancellation(cancellation)
response = request.Await() response = request.Await()
@@ -689,6 +727,16 @@ namespace Innertube
headers = response.Headers() headers = response.Headers()
if not headers.DoesExist("X-Head-Time-Millis") or not headers.DoesExist("X-Head-Seqnum")
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: ["GetPostLiveDvrInfo Missing Post-Live DVR info in headers"]
})
end if
durationMs = ValidString(headers["X-Head-Time-Millis"]).ToInt() durationMs = ValidString(headers["X-Head-Time-Millis"]).ToInt()
segmentCount = ValidString(headers["X-Head-Seqnum"]).ToInt() segmentCount = ValidString(headers["X-Head-Seqnum"]).ToInt()
@@ -698,120 +746,6 @@ namespace Innertube
if segmentCount > 0 if segmentCount > 0
parsedResponse["postLiveDvrSegmentCount"] = segmentCount parsedResponse["postLiveDvrSegmentCount"] = segmentCount
end if end if
if segmentCount = 0 or durationMs = 0
LogError("GetPostLiveDvrInfo: Missing Post-Live DVR info in headers", headers)
end if
end function
function GetOTFSegmentInfo(adaptiveFormats as object, client as Innertube.ClientType, cancellation as object) as void
requests = CreateObject("roArray", adaptiveFormats.Count(), false)
requestHeaders = Innertube.CreateHeaders(client)
for i = 0 to adaptiveFormats.Count() - 1
format = adaptiveFormats[i]
if format.isTypeOTF <> true
continue for
end if
url = format.url
if StringUtils.IsNullOrEmpty(url)
LogError("GetOTFSegmentInfo: URL is empty for itag", format.itag)
continue for
end if
queryComponents = UrlUtils.ParseQueryComponents(url)
queryComponents["rn"] = "0"
queryComponents["sq"] = "0"
otfUrl = UrlUtils.SetQueryParams(url, queryComponents)
request = HttpClient.Get(otfUrl)
request.Headers(requestHeaders)
request.TryCount(2)
request.Cancellation(cancellation)
request.Send()
requests[`${i}`] = request
end for
for i = 0 to requests.Count() - 1
request = requests[`${i}`]
if request = invalid
continue for
end if
format = adaptiveFormats[i]
response = request.Await()
if response.IsCancelled()
return
end if
if not response.IsSuccess()
LogError("Failed to fetch OTF segment info for itag", format.itag, response.ErrorMessage())
continue for
end if
responseText = response.Text()
segmentDurationsMs = StringUtils.GetBetween(responseText, "Segment-Durations-Ms:", `\r\n`)
if StringUtils.IsNullOrEmpty(segmentDurationsMs)
LogError("Failed to extract Segment-Durations-Ms from OTF stream for itag", format.itag)
continue for
end if
segmentDurationStrings = segmentDurationsMs.Split(",")
segmentDurations = []
for each segmentDurationString in segmentDurationStrings
trimmedSegmentDuration = segmentDurationString.Trim()
if trimmedSegmentDuration.Len() = 0
continue for
end if
repeatCount = invalid
repeatCountString = StringUtils.GetBetween(trimmedSegmentDuration, "(r=", ")")
if not StringUtils.IsNullOrEmpty(repeatCountString)
repeatCount = repeatCountString.ToInt()
end if
duration = trimmedSegmentDuration.ToInt()
if duration <= 0
LogErrorNoTelemetry("Invalid OTF segment duration parsed", trimmedSegmentDuration, "for itag", format.itag)
LogTelemetryEvent({
level: "error"
message: `Invalid OTF segment duration parsed: ${trimmedSegmentDuration} for itag ${format.itag}`
fingerprint: ["OTF Invalid Segment Duration"]
attachments: [{
filename: "otf.txt"
content_type: "plain/text"
data: responseText
}]
})
continue for
end if
segmentDurations.Push({
duration: duration
repeatCount: repeatCount
})
end for
format["otfSegmentDurations"] = segmentDurations
if segmentDurations.Count() = 0
LogErrorNoTelemetry("No OTF segment durations found for itag", format.itag)
LogTelemetryEvent({
level: "error"
message: `No OTF segment durations found for itag ${format.itag}`
fingerprint: ["OTF No Segment Durations"]
attachments: [{
filename: "otf.txt"
content_type: "plain/text"
data: responseText
}]
})
end if
end for
end function end function
end namespace end namespace
@@ -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
@@ -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
@@ -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"
@@ -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
@@ -441,32 +441,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 +478,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 +501,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 +549,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 +573,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
}) })
@@ -56,7 +56,7 @@ namespace Http
xmlContent = m.dashManifest.FromVideoMetadata(metadata, qualityFilter, ValidString(local) = "true") xmlContent = m.dashManifest.FromVideoMetadata(metadata, qualityFilter, ValidString(local) = "true")
if xmlContent.InStr("[ERROR]") <> -1 if xmlContent.InStr("[ERROR]") <> -1
LogError("Dash manifest generated with errors") LogErrorNoTelemetry("Dash manifest generated with errors")
lastPlayerResponse = ValidString(ReadAsciiFile("cachefs:/last_player_response.json")) lastPlayerResponse = ValidString(ReadAsciiFile("cachefs:/last_player_response.json"))
LogTelemetryEvent({ LogTelemetryEvent({
level: "error" level: "error"
+2 -2
View File
@@ -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=00005 build_version=00000
ui_resolutions=hd ui_resolutions=hd
uri_resolution_autosub=$$RES$$,480p,720p,1080p uri_resolution_autosub=$$RES$$,480p,720p,1080p
+14 -1
View File
@@ -299,6 +299,11 @@ namespace HttpClient
return m return m
end function end function
function ToFile(filePath as string) as HttpRequest
m._toFilePath = filePath
return m
end function
function ToCurlCommand() as string function ToCurlCommand() as string
command = `curl "${m.BuildUrl()}"` command = `curl "${m.BuildUrl()}"`
if m._method = "HEAD" if m._method = "HEAD"
@@ -387,6 +392,10 @@ namespace HttpClient
end if end if
#end if #end if
if m._toFilePath <> invalid and m._method <> "GET"
throw "ToFile() can only be used with GET requests."
end if
if m._method = "POST" if m._method = "POST"
body = m._body body = m._body
if body = invalid if body = invalid
@@ -394,7 +403,11 @@ namespace HttpClient
end if end if
m._sent = m.urlTransfer.AsyncPostFromString(body) m._sent = m.urlTransfer.AsyncPostFromString(body)
else if m._method = "GET" else if m._method = "GET"
m._sent = m.urlTransfer.AsyncGetToString() if m._toFilePath <> invalid
m._sent = m.urlTransfer.AsyncGetToFile(m._toFilePath)
else
m._sent = m.urlTransfer.AsyncGetToString()
end if
else if m._method = "HEAD" else if m._method = "HEAD"
m._sent = m.urlTransfer.AsyncHead() m._sent = m.urlTransfer.AsyncHead()
else else
+90 -90
View File
@@ -1,34 +1,34 @@
{ {
"name": "playlet-web", "name": "playlet-web",
"version": "0.43.5", "version": "0.44.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playlet-web", "name": "playlet-web",
"version": "0.43.5", "version": "0.44.0",
"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.5",
"@vitejs/plugin-legacy": "^7.2.1", "@vitejs/plugin-legacy": "^7.2.1",
"autoprefixer": "^10.4.21", "autoprefixer": "^10.4.21",
"bgutils-js": "^3.2.0", "bgutils-js": "^3.2.0",
"daisyui": "^5.3.10", "daisyui": "^5.4.7",
"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.4",
"svelte-check": "^4.3.3", "svelte-check": "^4.3.3",
"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.2",
"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": {
@@ -3123,9 +3123,9 @@
} }
}, },
"node_modules/daisyui": { "node_modules/daisyui": {
"version": "5.3.10", "version": "5.4.7",
"resolved": "https://registry.npmjs.org/daisyui/-/daisyui-5.3.10.tgz", "resolved": "https://registry.npmjs.org/daisyui/-/daisyui-5.4.7.tgz",
"integrity": "sha512-vmjyPmm0hvFhA95KB6uiGmWakziB2pBv6CUcs5Ka/3iMBMn9S+C3SZYx9G9l2JrgTZ1EFn61F/HrPcwaUm2kLQ==", "integrity": "sha512-2wYO61vTPCXk7xEBgnzLZAYoE0xS5IRLu/GSq0vORpB+cTrtubdx69NnA0loc0exvCY1s2fYL4lGZtFHe2ohNQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"funding": { "funding": {
@@ -3870,9 +3870,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": {
@@ -4403,9 +4403,9 @@
} }
}, },
"node_modules/svelte": { "node_modules/svelte": {
"version": "5.43.2", "version": "5.43.4",
"resolved": "https://registry.npmjs.org/svelte/-/svelte-5.43.2.tgz", "resolved": "https://registry.npmjs.org/svelte/-/svelte-5.43.4.tgz",
"integrity": "sha512-ro1umEzX8rT5JpCmlf0PPv7ncD8MdVob9e18bhwqTKNoLjS8kDvhVpaoYVPc+qMwDAOfcwJtyY7ZFSDbOaNPgA==", "integrity": "sha512-tPNp21nDWB0PSHE+VrTvEy9cFtDp2Q+ATxQoFomISEVdikZ1QZ69UqBPz/LlT+Oc8/LYS/COYwDQZrmZEUr+JQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@@ -4514,9 +4514,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 +4535,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": {
@@ -4707,9 +4707,9 @@
"dev": true "dev": true
}, },
"node_modules/vite": { "node_modules/vite": {
"version": "7.1.12", "version": "7.2.2",
"resolved": "https://registry.npmjs.org/vite/-/vite-7.1.12.tgz", "resolved": "https://registry.npmjs.org/vite/-/vite-7.2.2.tgz",
"integrity": "sha512-ZWyE8YXEXqJrrSLvYgrRP7p62OziLW7xI5HYGWFzOvupfAlrLvURSzv/FyGyy0eidogEM3ujU+kUG1zuHgb6Ug==", "integrity": "sha512-BxAKBWmIbrDgrokdGZH1IgkIk/5mMHDreLDmCJ0qpyJaAteP8NvMhkwr/ZCQNqNH97bw/dANTE9PDzqwJghfMQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
+7 -7
View File
@@ -1,6 +1,6 @@
{ {
"name": "playlet-web", "name": "playlet-web",
"version": "0.43.5", "version": "0.44.0",
"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.5",
"@vitejs/plugin-legacy": "^7.2.1", "@vitejs/plugin-legacy": "^7.2.1",
"autoprefixer": "^10.4.21", "autoprefixer": "^10.4.21",
"bgutils-js": "^3.2.0", "bgutils-js": "^3.2.0",
"daisyui": "^5.3.10", "daisyui": "^5.4.7",
"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.4",
"svelte-check": "^4.3.3", "svelte-check": "^4.3.3",
"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.2",
"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"