Compare commits

..
8 Commits
Author SHA1 Message Date
Brahim Hadriche e8624cdb1f Release v0.44.8 (#847) 2026-04-24 11:01:28 -04:00
Brahim Hadriche d427989576 Watch history fix 2026-04-23 15:08:25 -04:00
Brahim Hadriche 4706d71639 Fix warning 2026-04-23 14:31:38 -04:00
Brahim Hadriche 16df893c2c Release v0.44.7 (#845) 2026-04-23 08:52:58 -04:00
Brahim Hadriche 6129afd695 [chore] update dependencies (#835)
* update dependencies

* Disable memory related telemetry warnings
2026-04-23 08:45:41 -04:00
Brahim Hadriche 84504a5931 fix channel sort 2026-04-08 19:33:27 -04:00
Brahim Hadriche 0123f9fa8e [chore] update dependencies (#832)
* update dependencies

* Update deps and fix
2026-03-18 09:15:04 -04:00
Brahim Hadriche 7227d4e26b Fix for watch progress 2026-03-10 21:07:36 -04:00
23 changed files with 1554 additions and 1873 deletions

No files matched your search

+14
View File
@@ -5,6 +5,20 @@ 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.8] - 2026-04-24
### Fixed
- Always use `signatureTimestamp` in `/player` calls to prevent "reload page" errors. This affects watch history.
- Attempt 2 to fix watch history and watch progress
## [0.44.7] - 2026-04-23
### Fixed
- Attempt to fix watch history and watch progress
- Channel sort
## [0.44.6] - 2026-02-08 ## [0.44.6] - 2026-02-08
### Fixed ### Fixed
+132 -128
View File
@@ -1,40 +1,40 @@
{ {
"name": "playlet", "name": "playlet",
"version": "0.44.6", "version": "0.44.8",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playlet", "name": "playlet",
"version": "0.44.6", "version": "0.44.8",
"hasInstallScript": true, "hasInstallScript": true,
"devDependencies": { "devDependencies": {
"@rokucommunity/bslint": "^0.8.38", "@rokucommunity/bslint": "^0.8.39",
"@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": "^25.2.1", "@types/node": "^25.5.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",
"brighterscript-formatter": "^1.7.19", "brighterscript-formatter": "^1.7.21",
"convert-svg-to-png": "^0.7.1", "convert-svg-to-png": "^0.7.1",
"crypto-js": "^4.2.0", "crypto-js": "^4.2.0",
"dotenv": "^17.2.4", "dotenv": "^17.3.1",
"fs-extra": "^11.3.3", "fs-extra": "^11.3.4",
"glob": "^13.0.1", "glob": "^13.0.6",
"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.9.3", "mailparser": "^3.9.4",
"protocol-buffers-schema": "^3.6.0", "protocol-buffers-schema": "^3.6.0",
"puppeteer": "^24.37.2", "puppeteer": "^24.40.0",
"roku-deploy": "^3.16.1", "roku-deploy": "^3.16.2",
"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",
"semver": "^7.7.4", "semver": "^7.7.4",
"shelljs": "^0.10.0", "shelljs": "^0.10.0",
"telnet-client": "^2.2.9", "telnet-client": "^2.2.11",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"typescript": "5.9.3", "typescript": "5.9.3",
"xml2js": "^0.6.2", "xml2js": "^0.6.2",
@@ -44,7 +44,7 @@
"node": "22" "node": "22"
}, },
"optionalDependencies": { "optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "^4.57.1" "@rollup/rollup-linux-x64-gnu": "^4.59.0"
} }
}, },
"node_modules/@babel/code-frame": { "node_modules/@babel/code-frame": {
@@ -94,29 +94,6 @@
"node": ">=12" "node": ">=12"
} }
}, },
"node_modules/@isaacs/balanced-match": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz",
"integrity": "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==",
"dev": true,
"license": "MIT",
"engines": {
"node": "20 || >=22"
}
},
"node_modules/@isaacs/brace-expansion": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.1.tgz",
"integrity": "sha512-WMz71T1JS624nWj2n2fnYAuPovhv7EUhk69R6i9dsVyzxt5eM3bjwvgk9L+APE1TRscGysAVMANkB0jh0LQZrQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"@isaacs/balanced-match": "^4.0.1"
},
"engines": {
"node": "20 || >=22"
}
},
"node_modules/@jridgewell/resolve-uri": { "node_modules/@jridgewell/resolve-uri": {
"version": "3.1.2", "version": "3.1.2",
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
@@ -306,9 +283,9 @@
"dev": true "dev": true
}, },
"node_modules/@rokucommunity/bslint": { "node_modules/@rokucommunity/bslint": {
"version": "0.8.38", "version": "0.8.39",
"resolved": "https://registry.npmjs.org/@rokucommunity/bslint/-/bslint-0.8.38.tgz", "resolved": "https://registry.npmjs.org/@rokucommunity/bslint/-/bslint-0.8.39.tgz",
"integrity": "sha512-HpAkxWHev3d/d9thJsSwjO8fP18IRspjI2xS95EAz0GIPrsEdWuazoa+dXwHcAHrJ8QDGVMBg2nyZRwyvt7hYw==", "integrity": "sha512-OegID7qnpg8MTVHmEpPmTpNe4DFXvOBxB+UPbRPd7dvIRIYRQ+g2QQ5SqVuqi1i3JqNqQDOV/1JQltKb67Vp/Q==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@@ -465,9 +442,9 @@
} }
}, },
"node_modules/@rollup/rollup-linux-x64-gnu": { "node_modules/@rollup/rollup-linux-x64-gnu": {
"version": "4.57.1", "version": "4.59.0",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.57.1.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.59.0.tgz",
"integrity": "sha512-ABca4ceT4N+Tv/GtotnWAeXZUZuM/9AQyCyKYyKnpk4yoA7QIAuBt6Hkgpw8kActYlew2mvckXkvx0FfoInnLg==", "integrity": "sha512-3AHmtQq/ppNuUspKAlvA8HtLybkDflkMuLK4DPo77DfthRb71V84/c4MlWJXixZz4uruIH4uaa07IqoAkG64fg==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@@ -628,13 +605,13 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/@types/node": { "node_modules/@types/node": {
"version": "25.2.1", "version": "25.5.0",
"resolved": "https://registry.npmjs.org/@types/node/-/node-25.2.1.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-25.5.0.tgz",
"integrity": "sha512-CPrnr8voK8vC6eEtyRzvMpgp3VyVRhgclonE7qYi6P9sXwYb59ucfrnmFBTaP0yUi8Gk4yZg/LlTJULGxvTNsg==", "integrity": "sha512-jp2P3tQMSxWugkCUKLRPVUpGaL5MVFwF8RDuSRztfwgN1wmqJeMSbKlnEtQqU8UrhTmzEmZdu2I6v2dpp7XIxw==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"undici-types": "~7.16.0" "undici-types": "~7.18.0"
} }
}, },
"node_modules/@types/qs": { "node_modules/@types/qs": {
@@ -1231,16 +1208,16 @@
} }
}, },
"node_modules/brighterscript-formatter": { "node_modules/brighterscript-formatter": {
"version": "1.7.19", "version": "1.7.21",
"resolved": "https://registry.npmjs.org/brighterscript-formatter/-/brighterscript-formatter-1.7.19.tgz", "resolved": "https://registry.npmjs.org/brighterscript-formatter/-/brighterscript-formatter-1.7.21.tgz",
"integrity": "sha512-GDitTZ0uM8AdKr9cwssx0IeA1jh9t6Lcp9fm68Pk9LrRG3otGe+eYP2Y/1+axn6T4MBo6zfjrsJy2JrdbaDbWw==", "integrity": "sha512-s2J9Rn8BxjxxOPkWa3/OJVwxsV1cTvYdmeQo0vsyjNfBZRKx9lZHvBNAANSfFArScd/7GEkhtiyuT79qg74xMw==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"brighterscript": "^0.70.2", "brighterscript": "^0.70.3",
"glob-all": "^3.3.0", "glob-all": "^3.3.0",
"jsonc-parser": "^3.0.0", "jsonc-parser": "^3.0.0",
"source-map": "^0.7.3", "source-map": "0.7.4",
"yargs": "^17.2.1" "yargs": "^17.2.1"
}, },
"bin": { "bin": {
@@ -2268,9 +2245,9 @@
} }
}, },
"node_modules/dotenv": { "node_modules/dotenv": {
"version": "17.2.4", "version": "17.3.1",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.2.4.tgz", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.3.1.tgz",
"integrity": "sha512-mudtfb4zRB4bVvdj0xRo+e6duH1csJRM8IukBqfTRvHotn9+LBXB8ynAidP9zHqoRC/fsllXgk4kCKlR21fIhw==", "integrity": "sha512-IO8C/dzEb6O3F9/twg6ZLXz164a2fhTnEWb95H23Dm4OuN+92NmEAlTrupP9VW6Jm3sO26tQlqyvyi4CsnY9GA==",
"dev": true, "dev": true,
"license": "BSD-2-Clause", "license": "BSD-2-Clause",
"engines": { "engines": {
@@ -2910,9 +2887,9 @@
} }
}, },
"node_modules/fs-extra": { "node_modules/fs-extra": {
"version": "11.3.3", "version": "11.3.4",
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.3.tgz", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.4.tgz",
"integrity": "sha512-VWSRii4t0AFm6ixFFmLLx1t7wS1gh+ckoa84aOeapGum0h+EZd1EhEumSB+ZdDLnEPuucsVB9oB7cxJHap6Afg==", "integrity": "sha512-CTXd6rk/M3/ULNQj8FBqBWHYBVYybQ3VPBw0xGKFe3tuH7ytT6ACnvzpIQ3UZtB8yvUKC2cXn1a+x+5EVQLovA==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@@ -3040,18 +3017,18 @@
} }
}, },
"node_modules/glob": { "node_modules/glob": {
"version": "13.0.1", "version": "13.0.6",
"resolved": "https://registry.npmjs.org/glob/-/glob-13.0.1.tgz", "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.6.tgz",
"integrity": "sha512-B7U/vJpE3DkJ5WXTgTpTRN63uV42DseiXXKMwG14LQBXmsdeIoHAPbU/MEo6II0k5ED74uc2ZGTC6MwHFQhF6w==", "integrity": "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==",
"dev": true, "dev": true,
"license": "BlueOak-1.0.0", "license": "BlueOak-1.0.0",
"dependencies": { "dependencies": {
"minimatch": "^10.1.2", "minimatch": "^10.2.2",
"minipass": "^7.1.2", "minipass": "^7.1.3",
"path-scurry": "^2.0.0" "path-scurry": "^2.0.2"
}, },
"engines": { "engines": {
"node": "20 || >=22" "node": "18 || 20 || >=22"
}, },
"funding": { "funding": {
"url": "https://github.com/sponsors/isaacs" "url": "https://github.com/sponsors/isaacs"
@@ -3103,17 +3080,40 @@
"node": ">= 6" "node": ">= 6"
} }
}, },
"node_modules/glob/node_modules/balanced-match": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
"integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
"dev": true,
"license": "MIT",
"engines": {
"node": "18 || 20 || >=22"
}
},
"node_modules/glob/node_modules/brace-expansion": {
"version": "5.0.4",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.4.tgz",
"integrity": "sha512-h+DEnpVvxmfVefa4jFbCf5HdH5YMDXRsmKflpf1pILZWRFlTbJpxeU55nJl4Smt5HQaGzg1o6RHFPJaOqnmBDg==",
"dev": true,
"license": "MIT",
"dependencies": {
"balanced-match": "^4.0.2"
},
"engines": {
"node": "18 || 20 || >=22"
}
},
"node_modules/glob/node_modules/minimatch": { "node_modules/glob/node_modules/minimatch": {
"version": "10.1.2", "version": "10.2.4",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.1.2.tgz", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.4.tgz",
"integrity": "sha512-fu656aJ0n2kcXwsnwnv9g24tkU5uSmOlTjd6WyyaKm2Z+h1qmY6bAjrcaIxF/BslFqbZ8UBtbJi7KgQOZD2PTw==", "integrity": "sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg==",
"dev": true, "dev": true,
"license": "BlueOak-1.0.0", "license": "BlueOak-1.0.0",
"dependencies": { "dependencies": {
"@isaacs/brace-expansion": "^5.0.1" "brace-expansion": "^5.0.2"
}, },
"engines": { "engines": {
"node": "20 || >=22" "node": "18 || 20 || >=22"
}, },
"funding": { "funding": {
"url": "https://github.com/sponsors/isaacs" "url": "https://github.com/sponsors/isaacs"
@@ -3836,10 +3836,11 @@
} }
}, },
"node_modules/lru-cache": { "node_modules/lru-cache": {
"version": "11.0.2", "version": "11.2.6",
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.0.2.tgz", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.6.tgz",
"integrity": "sha512-123qHRfJBmo2jXDbo/a5YOQrJoHF/GNQTLzQ5+IdK5pWpceK17yRc6ozlWd25FxvGKQbIUs91fDFkXmDHTKcyA==", "integrity": "sha512-ESL2CrkS/2wTPfuend7Zhkzo2u0daGJ/A2VucJOgQ/C48S/zB8MMeMHSGKYpXhIjbPxfuezITkaBH1wqv00DDQ==",
"dev": true, "dev": true,
"license": "BlueOak-1.0.0",
"engines": { "engines": {
"node": "20 || >=22" "node": "20 || >=22"
} }
@@ -3854,9 +3855,9 @@
} }
}, },
"node_modules/mailparser": { "node_modules/mailparser": {
"version": "3.9.3", "version": "3.9.4",
"resolved": "https://registry.npmjs.org/mailparser/-/mailparser-3.9.3.tgz", "resolved": "https://registry.npmjs.org/mailparser/-/mailparser-3.9.4.tgz",
"integrity": "sha512-AnB0a3zROum6fLaa52L+/K2SoRJVyFDk78Ea6q1D0ofcZLxWEWDtsS1+OrVqKbV7r5dulKL/AwYQccFGAPpuYQ==", "integrity": "sha512-ZmCnrMnRod+Cq6h7afn9DMFlT1B5gf484Ji+55NhUR4+w4q9z9d7lHHvL8pXP6kp/ehr8pGLQZBmjHpjvItuTQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@@ -3867,7 +3868,7 @@
"iconv-lite": "0.7.2", "iconv-lite": "0.7.2",
"libmime": "5.3.7", "libmime": "5.3.7",
"linkify-it": "5.0.0", "linkify-it": "5.0.0",
"nodemailer": "7.0.13", "nodemailer": "8.0.2",
"punycode.js": "2.3.1", "punycode.js": "2.3.1",
"tlds": "1.261.0" "tlds": "1.261.0"
} }
@@ -4030,10 +4031,11 @@
} }
}, },
"node_modules/minipass": { "node_modules/minipass": {
"version": "7.1.2", "version": "7.1.3",
"resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz",
"integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",
"dev": true, "dev": true,
"license": "BlueOak-1.0.0",
"engines": { "engines": {
"node": ">=16 || 14 >=14.17" "node": ">=16 || 14 >=14.17"
} }
@@ -4189,9 +4191,9 @@
} }
}, },
"node_modules/nodemailer": { "node_modules/nodemailer": {
"version": "7.0.13", "version": "8.0.2",
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-7.0.13.tgz", "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-8.0.2.tgz",
"integrity": "sha512-PNDFSJdP+KFgdsG3ZzMXCgquO7I6McjY2vlqILjtJd0hy8wEvtugS9xKRF2NWlPNGxvLCXlTNIae4serI7dinw==", "integrity": "sha512-zbj002pZAIkWQFxyAaqoxvn+zoIwRnS40hgjqTXudKOOJkiFFgBeNqjgD3/YCR12sZnrghWYBY+yP1ZucdDRpw==",
"dev": true, "dev": true,
"license": "MIT-0", "license": "MIT-0",
"engines": { "engines": {
@@ -4583,16 +4585,17 @@
} }
}, },
"node_modules/path-scurry": { "node_modules/path-scurry": {
"version": "2.0.0", "version": "2.0.2",
"resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.0.tgz", "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz",
"integrity": "sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==", "integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==",
"dev": true, "dev": true,
"license": "BlueOak-1.0.0",
"dependencies": { "dependencies": {
"lru-cache": "^11.0.0", "lru-cache": "^11.0.0",
"minipass": "^7.1.2" "minipass": "^7.1.2"
}, },
"engines": { "engines": {
"node": "20 || >=22" "node": "18 || 20 || >=22"
}, },
"funding": { "funding": {
"url": "https://github.com/sponsors/isaacs" "url": "https://github.com/sponsors/isaacs"
@@ -4832,19 +4835,19 @@
} }
}, },
"node_modules/puppeteer": { "node_modules/puppeteer": {
"version": "24.37.2", "version": "24.40.0",
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-24.37.2.tgz", "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-24.40.0.tgz",
"integrity": "sha512-FV1W/919ve0y0oiS/3Rp5XY4MUNUokpZOH/5M4MMDfrrvh6T9VbdKvAHrAFHBuCxvluDxhjra20W7Iz6HJUcIQ==", "integrity": "sha512-IxQbDq93XHVVLWHrAkFP7F7iHvb9o0mgfsSIMlhHb+JM+JjM1V4v4MNSQfcRWJopx9dsNOr9adYv0U5fm9BJBQ==",
"dev": true, "dev": true,
"hasInstallScript": true, "hasInstallScript": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@puppeteer/browsers": "2.12.0", "@puppeteer/browsers": "2.13.0",
"chromium-bidi": "13.1.1", "chromium-bidi": "14.0.0",
"cosmiconfig": "^9.0.0", "cosmiconfig": "^9.0.0",
"devtools-protocol": "0.0.1566079", "devtools-protocol": "0.0.1581282",
"puppeteer-core": "24.37.2", "puppeteer-core": "24.40.0",
"typed-query-selector": "^2.12.0" "typed-query-selector": "^2.12.1"
}, },
"bin": { "bin": {
"puppeteer": "lib/cjs/puppeteer/node/cli.js" "puppeteer": "lib/cjs/puppeteer/node/cli.js"
@@ -4877,9 +4880,9 @@
"dev": true "dev": true
}, },
"node_modules/puppeteer/node_modules/@puppeteer/browsers": { "node_modules/puppeteer/node_modules/@puppeteer/browsers": {
"version": "2.12.0", "version": "2.13.0",
"resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-2.12.0.tgz", "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-2.13.0.tgz",
"integrity": "sha512-Xuq42yxcQJ54ti8ZHNzF5snFvtpgXzNToJ1bXUGQRaiO8t+B6UM8sTUJfvV+AJnqtkJU/7hdy6nbKyA12aHtRw==", "integrity": "sha512-46BZJYJjc/WwmKjsvDFykHtXrtomsCIrwYQPOP7VfMJoZY2bsDF9oROBABR3paDjDcmkUye1Pb1BqdcdiipaWA==",
"dev": true, "dev": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
@@ -4887,7 +4890,7 @@
"extract-zip": "^2.0.1", "extract-zip": "^2.0.1",
"progress": "^2.0.3", "progress": "^2.0.3",
"proxy-agent": "^6.5.0", "proxy-agent": "^6.5.0",
"semver": "^7.7.3", "semver": "^7.7.4",
"tar-fs": "^3.1.1", "tar-fs": "^3.1.1",
"yargs": "^17.7.2" "yargs": "^17.7.2"
}, },
@@ -4899,9 +4902,9 @@
} }
}, },
"node_modules/puppeteer/node_modules/chromium-bidi": { "node_modules/puppeteer/node_modules/chromium-bidi": {
"version": "13.1.1", "version": "14.0.0",
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-13.1.1.tgz", "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-14.0.0.tgz",
"integrity": "sha512-zB9MpoPd7VJwjowQqiW3FKOvQwffFMjQ8Iejp5ZW+sJaKLRhZX1sTxzl3Zt22TDB4zP0OOqs8lRoY7eAW5geyQ==", "integrity": "sha512-9gYlLtS6tStdRWzrtXaTMnqcM4dudNegMXJxkR0I/CXObHalYeYcAMPrL19eroNZHtJ8DQmu1E+ZNOYu/IXMXw==",
"dev": true, "dev": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
@@ -4928,25 +4931,25 @@
} }
}, },
"node_modules/puppeteer/node_modules/devtools-protocol": { "node_modules/puppeteer/node_modules/devtools-protocol": {
"version": "0.0.1566079", "version": "0.0.1581282",
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1566079.tgz", "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1581282.tgz",
"integrity": "sha512-MJfAEA1UfVhSs7fbSQOG4czavUp1ajfg6prlAN0+cmfa2zNjaIbvq8VneP7do1WAQQIvgNJWSMeP6UyI90gIlQ==", "integrity": "sha512-nv7iKtNZQshSW2hKzYNr46nM/Cfh5SEvE2oV0/SEGgc9XupIY5ggf84Cz8eJIkBce7S3bmTAauFD6aysMpnqsQ==",
"dev": true, "dev": true,
"license": "BSD-3-Clause" "license": "BSD-3-Clause"
}, },
"node_modules/puppeteer/node_modules/puppeteer-core": { "node_modules/puppeteer/node_modules/puppeteer-core": {
"version": "24.37.2", "version": "24.40.0",
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-24.37.2.tgz", "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-24.40.0.tgz",
"integrity": "sha512-nN8qwE3TGF2vA/+xemPxbesntTuqD9vCGOiZL2uh8HES3pPzLX20MyQjB42dH2rhQ3W3TljZ4ZaKZ0yX/abQuw==", "integrity": "sha512-MWL3XbUCfVgGR0gRsidzT6oKJT2QydPLhMITU6HoVWiiv4gkb6gJi3pcdAa8q4HwjBTbqISOWVP4aJiiyUJvag==",
"dev": true, "dev": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@puppeteer/browsers": "2.12.0", "@puppeteer/browsers": "2.13.0",
"chromium-bidi": "13.1.1", "chromium-bidi": "14.0.0",
"debug": "^4.4.3", "debug": "^4.4.3",
"devtools-protocol": "0.0.1566079", "devtools-protocol": "0.0.1581282",
"typed-query-selector": "^2.12.0", "typed-query-selector": "^2.12.1",
"webdriver-bidi-protocol": "0.4.0", "webdriver-bidi-protocol": "0.4.1",
"ws": "^8.19.0" "ws": "^8.19.0"
}, },
"engines": { "engines": {
@@ -5621,9 +5624,9 @@
} }
}, },
"node_modules/roku-deploy": { "node_modules/roku-deploy": {
"version": "3.16.1", "version": "3.16.2",
"resolved": "https://registry.npmjs.org/roku-deploy/-/roku-deploy-3.16.1.tgz", "resolved": "https://registry.npmjs.org/roku-deploy/-/roku-deploy-3.16.2.tgz",
"integrity": "sha512-snCMjmJkFodBYu8K6mreYshPekQKvs8HtUYfj74mwREAjF9rtMoXdJb8XgD2NkvYaYwGe5i0vbRGCt7o6jWypg==", "integrity": "sha512-hZ+hQdVA9oUtOnqi+6EyiaeZ50QTe86XkZ9HKCj5PtIDOPFKbqF60fv8Azipb3tS1Wz3YSJUPymGl3/v1ei7GQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@@ -6375,9 +6378,9 @@
} }
}, },
"node_modules/telnet-client": { "node_modules/telnet-client": {
"version": "2.2.9", "version": "2.2.11",
"resolved": "https://registry.npmjs.org/telnet-client/-/telnet-client-2.2.9.tgz", "resolved": "https://registry.npmjs.org/telnet-client/-/telnet-client-2.2.11.tgz",
"integrity": "sha512-tFYiMP5fQxEWBSDDfZ8Kb8YQQW0avz9A83BY4lnA/cjl17XWx3DSLgfMTrQ6/clS+SWrntpYslM5FsdVKteerA==", "integrity": "sha512-9GYX3v2/ck9BDSkH9FwPTvZ/JVkx5ZgOH3JeflBCyyOt4ala0MwlKrZlXcsj3/hz1nxcM33e7WeEAFfB7Bghsg==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@@ -6551,10 +6554,11 @@
} }
}, },
"node_modules/typed-query-selector": { "node_modules/typed-query-selector": {
"version": "2.12.0", "version": "2.12.1",
"resolved": "https://registry.npmjs.org/typed-query-selector/-/typed-query-selector-2.12.0.tgz", "resolved": "https://registry.npmjs.org/typed-query-selector/-/typed-query-selector-2.12.1.tgz",
"integrity": "sha512-SbklCd1F0EiZOyPiW192rrHZzZ5sBijB6xM+cpmrwDqObvdtunOHHIk9fCGsoK5JVIYXoyEp4iEdE3upFH3PAg==", "integrity": "sha512-uzR+FzI8qrUEIu96oaeBJmd9E7CFEiQ3goA5qCVgc4s5llSubcfGHq9yUstZx/k4s9dXHVKsE35YWoFyvEqEHA==",
"dev": true "dev": true,
"license": "MIT"
}, },
"node_modules/typescript": { "node_modules/typescript": {
"version": "5.9.3", "version": "5.9.3",
@@ -6616,9 +6620,9 @@
} }
}, },
"node_modules/undici-types": { "node_modules/undici-types": {
"version": "7.16.0", "version": "7.18.2",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.18.2.tgz",
"integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", "integrity": "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==",
"dev": true, "dev": true,
"license": "MIT" "license": "MIT"
}, },
@@ -6810,9 +6814,9 @@
"dev": true "dev": true
}, },
"node_modules/webdriver-bidi-protocol": { "node_modules/webdriver-bidi-protocol": {
"version": "0.4.0", "version": "0.4.1",
"resolved": "https://registry.npmjs.org/webdriver-bidi-protocol/-/webdriver-bidi-protocol-0.4.0.tgz", "resolved": "https://registry.npmjs.org/webdriver-bidi-protocol/-/webdriver-bidi-protocol-0.4.1.tgz",
"integrity": "sha512-U9VIlNRrq94d1xxR9JrCEAx5Gv/2W7ERSv8oWRoNe/QYbfccS0V3h/H6qeNeCRJxXGMhhnkqvwNrvPAYeuP9VA==", "integrity": "sha512-ARrjNjtWRRs2w4Tk7nqrf2gBI0QXWuOmMCx2hU+1jUt6d00MjMxURrhxhGbrsoiZKJrhTSTzbIrc554iKI10qw==",
"dev": true, "dev": true,
"license": "Apache-2.0" "license": "Apache-2.0"
}, },
+12 -12
View File
@@ -1,28 +1,28 @@
{ {
"name": "playlet", "name": "playlet",
"version": "0.44.6", "version": "0.44.8",
"description": "Unofficial YouTube client for Roku", "description": "Unofficial YouTube client for Roku",
"devDependencies": { "devDependencies": {
"@rokucommunity/bslint": "^0.8.38", "@rokucommunity/bslint": "^0.8.39",
"@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": "^25.2.1", "@types/node": "^25.5.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",
"brighterscript-formatter": "^1.7.19", "brighterscript-formatter": "^1.7.21",
"convert-svg-to-png": "^0.7.1", "convert-svg-to-png": "^0.7.1",
"crypto-js": "^4.2.0", "crypto-js": "^4.2.0",
"dotenv": "^17.2.4", "dotenv": "^17.3.1",
"fs-extra": "^11.3.3", "fs-extra": "^11.3.4",
"glob": "^13.0.1", "glob": "^13.0.6",
"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.9.3", "mailparser": "^3.9.4",
"protocol-buffers-schema": "^3.6.0", "protocol-buffers-schema": "^3.6.0",
"puppeteer": "^24.37.2", "puppeteer": "^24.40.0",
"roku-deploy": "^3.16.1", "roku-deploy": "^3.16.2",
"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.9", "telnet-client": "^2.2.11",
"xml2js": "^0.6.2", "xml2js": "^0.6.2",
"yaml": "^2.8.2" "yaml": "^2.8.2"
}, },
@@ -76,6 +76,6 @@
"shutdown": "node tools/shutdown.js" "shutdown": "node tools/shutdown.js"
}, },
"optionalDependencies": { "optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "^4.57.1" "@rollup/rollup-linux-x64-gnu": "^4.59.0"
} }
} }
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "playlet-app", "name": "playlet-app",
"version": "0.44.6", "version": "0.44.8",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playlet-app", "name": "playlet-app",
"version": "0.44.6" "version": "0.44.8"
} }
} }
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "playlet-app", "name": "playlet-app",
"version": "0.44.6", "version": "0.44.8",
"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",
+1 -1
View File
@@ -3,7 +3,7 @@ title=Playlet
# Do not update version manually, it is auto updated from package.json # Do not update version manually, it is auto updated from package.json
major_version=0 major_version=0
minor_version=44 minor_version=44
build_version=00006 build_version=00008
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.44.6", "version": "0.44.8",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playlet-lib", "name": "playlet-lib",
"version": "0.44.6" "version": "0.44.8"
} }
} }
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "playlet-lib", "name": "playlet-lib",
"version": "0.44.6", "version": "0.44.8",
"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",
+10 -10
View File
@@ -145,11 +145,11 @@ function OnLineLogMonitorMemoryWarning(event as object, dateTime as object, logs
return return
end if end if
LogTelemetryEvent({ ' LogTelemetryEvent({
level: "warning" ' level: "warning"
message: line + `\nCurrentTime: ${m.eventThrottleTimer.TotalSeconds()}` ' message: line + `\nCurrentTime: ${m.eventThrottleTimer.TotalSeconds()}`
fingerprint: [message] ' fingerprint: [message]
}) ' })
end function end function
function OnLineLogDeviceInfoMemoryWarning(event as object, dateTime as object, logsFile as string, buffer as object) as void function OnLineLogDeviceInfoMemoryWarning(event as object, dateTime as object, logsFile as string, buffer as object) as void
@@ -168,11 +168,11 @@ function OnLineLogDeviceInfoMemoryWarning(event as object, dateTime as object, l
buffer.FromAsciiString(line + `\n`) buffer.FromAsciiString(line + `\n`)
buffer.AppendFile(logsFile) buffer.AppendFile(logsFile)
LogTelemetryEvent({ ' LogTelemetryEvent({
level: "warning" ' level: "warning"
message: line + `\nCurrentTime: ${m.eventThrottleTimer.TotalSeconds()}` ' message: line + `\nCurrentTime: ${m.eventThrottleTimer.TotalSeconds()}`
fingerprint: [message] ' fingerprint: [message]
}) ' })
end function end function
' Returns true if the event should be throttled ' Returns true if the event should be throttled
@@ -362,6 +362,7 @@ namespace InnertubeService
cancellation = OptionUtils.Get(options, "cancellation") cancellation = OptionUtils.Get(options, "cancellation")
accessToken = OptionUtils.Get(options, "accessToken") accessToken = OptionUtils.Get(options, "accessToken")
onBehalfOfUser = OptionUtils.Get(options, "onBehalfOfUser") onBehalfOfUser = OptionUtils.Get(options, "onBehalfOfUser")
cpn = OptionUtils.Get(options, "cpn")
videostatsPlaybackUrl = videostatsPlaybackUrl.replace("https://s.", "https://www.") videostatsPlaybackUrl = videostatsPlaybackUrl.replace("https://s.", "https://www.")
queryParams = UrlUtils.ParseQueryComponents(videostatsPlaybackUrl) queryParams = UrlUtils.ParseQueryComponents(videostatsPlaybackUrl)
@@ -369,8 +370,8 @@ namespace InnertubeService
queryParams["cbrver"] = INNERTUBE_TV_CLIENT_VERSION queryParams["cbrver"] = INNERTUBE_TV_CLIENT_VERSION
queryParams["cver"] = INNERTUBE_TV_CLIENT_VERSION queryParams["cver"] = INNERTUBE_TV_CLIENT_VERSION
queryParams["ver"] = "2" queryParams["ver"] = "2"
queryParams["cpn"] = InnertubeService.CreateClientPlaybackNonce() queryParams["cmt"] = "0"
queryParams["cmt"] = 0 queryParams["cpn"] = cpn
queryParams["final"] = "1" queryParams["final"] = "1"
videostatsPlaybackUrl = UrlUtils.SetQueryParams(videostatsPlaybackUrl, queryParams) videostatsPlaybackUrl = UrlUtils.SetQueryParams(videostatsPlaybackUrl, queryParams)
@@ -399,6 +400,7 @@ namespace InnertubeService
onBehalfOfUser = OptionUtils.Get(options, "onBehalfOfUser") onBehalfOfUser = OptionUtils.Get(options, "onBehalfOfUser")
timeStr = time.ToStr("%.3f") timeStr = time.ToStr("%.3f")
cpn = OptionUtils.Get(options, "cpn")
videostatsWatchtimeUrl = videostatsWatchtimeUrl.replace("https://s.", "https://www.") videostatsWatchtimeUrl = videostatsWatchtimeUrl.replace("https://s.", "https://www.")
queryParams = UrlUtils.ParseQueryComponents(videostatsWatchtimeUrl) queryParams = UrlUtils.ParseQueryComponents(videostatsWatchtimeUrl)
@@ -406,11 +408,11 @@ namespace InnertubeService
queryParams["cbrver"] = INNERTUBE_TV_CLIENT_VERSION queryParams["cbrver"] = INNERTUBE_TV_CLIENT_VERSION
queryParams["cver"] = INNERTUBE_TV_CLIENT_VERSION queryParams["cver"] = INNERTUBE_TV_CLIENT_VERSION
queryParams["ver"] = "2" queryParams["ver"] = "2"
queryParams["cpn"] = InnertubeService.CreateClientPlaybackNonce() queryParams["cpn"] = cpn
queryParams["cmt"] = 0 queryParams["cmt"] = "0"
queryParams["final"] = "1"
queryParams["st"] = timeStr queryParams["st"] = timeStr
queryParams["et"] = timeStr queryParams["et"] = timeStr
queryParams["final"] = "1"
videostatsWatchtimeUrl = UrlUtils.SetQueryParams(videostatsWatchtimeUrl, queryParams) videostatsWatchtimeUrl = UrlUtils.SetQueryParams(videostatsWatchtimeUrl, queryParams)
request = HttpClient.Get(videostatsWatchtimeUrl) request = HttpClient.Get(videostatsWatchtimeUrl)
@@ -86,6 +86,7 @@ namespace Innertube
"richGridRenderer": ParseRichGridRenderer "richGridRenderer": ParseRichGridRenderer
"richItemRenderer": ParseRichItemRenderer "richItemRenderer": ParseRichItemRenderer
"feedFilterChipBarRenderer": ParseFeedFilterChipBarRenderer "feedFilterChipBarRenderer": ParseFeedFilterChipBarRenderer
"chipBarViewModel": ParseChipBarViewModel
"continuationItemRenderer": ParseContinuationItemRenderer "continuationItemRenderer": ParseContinuationItemRenderer
"appendContinuationItemsAction": ParseAppendContinuationItemsAction "appendContinuationItemsAction": ParseAppendContinuationItemsAction
"reloadContinuationItemsCommand": ParseReloadContinuationItemsCommand "reloadContinuationItemsCommand": ParseReloadContinuationItemsCommand
@@ -1720,13 +1721,64 @@ namespace Innertube
end function end function
function ParseRichGridRenderer(nodeData as object, context as object) as object function ParseRichGridRenderer(nodeData as object, context as object) as object
feedFilterChipBarRenderer = ObjectUtils.Dig(nodeData, ["header", "feedFilterChipBarRenderer"]) header = nodeData["header"]
feedFilterChipBarRenderer = invalid
chipBarViewModel = invalid
if IsAssociativeArray(header)
feedFilterChipBarRenderer = header["feedFilterChipBarRenderer"]
chipBarViewModel = header["chipBarViewModel"]
end if
if feedFilterChipBarRenderer <> invalid if feedFilterChipBarRenderer <> invalid
ParseFeedFilterChipBarRenderer(feedFilterChipBarRenderer, context) ParseFeedFilterChipBarRenderer(feedFilterChipBarRenderer, context)
else if chipBarViewModel <> invalid
ParseChipBarViewModel(chipBarViewModel, context)
end if end if
return nodeData["contents"] return nodeData["contents"]
end function end function
function ParseChipBarViewModel(nodeData as object, context as object) as object
chips = ObjectUtils.Dig(nodeData, ["chips"])
if not IsArray(chips)
return invalid
end if
sortOptions = []
for each chip in chips
chipViewModel = chip["chipViewModel"]
if not IsAssociativeArray(chipViewModel)
continue for
end if
title = ValidString(chipViewModel["text"])
isSelected = ValidBool(chipViewModel["selected"])
token = invalid
tapCommand = chipViewModel["tapCommand"]
if IsAssociativeArray(tapCommand)
innertubeCommand = tapCommand["innertubeCommand"]
if IsAssociativeArray(innertubeCommand)
continuationCommand = innertubeCommand["continuationCommand"]
if IsAssociativeArray(continuationCommand)
token = ValidString(continuationCommand["token"])
end if
end if
end if
if title = "" or StringUtils.IsNullOrEmpty(token)
continue for
end if
sortOptions.Push({
"title": title
"continuation": token
"isSelected": isSelected
})
end for
if sortOptions.Count() > 0
context.currentFeed.sortOptions = sortOptions
end if
return invalid
end function
function ParseRichItemRenderer(nodeData as object, _context as object) as object function ParseRichItemRenderer(nodeData as object, _context as object) as object
return nodeData["content"] return nodeData["content"]
end function end function
@@ -13,8 +13,6 @@ namespace Innertube
cancellation = OptionUtils.Get(options, "cancellation") cancellation = OptionUtils.Get(options, "cancellation")
visitorData = OptionUtils.Get(options, "visitorData") visitorData = OptionUtils.Get(options, "visitorData")
accessToken = OptionUtils.Get(options, "accessToken") accessToken = OptionUtils.Get(options, "accessToken")
doSignatureTimestamp = ValidBool(OptionUtils.Get(options, "signatureTimestamp"))
cpn = InnertubeService.CreateClientPlaybackNonce() cpn = InnertubeService.CreateClientPlaybackNonce()
useAccessToken = client = Innertube.ClientType.TV and not StringUtils.IsNullOrEmpty(accessToken) useAccessToken = client = Innertube.ClientType.TV and not StringUtils.IsNullOrEmpty(accessToken)
@@ -52,12 +50,9 @@ namespace Innertube
"contentCheckOk": true "contentCheckOk": true
} }
signatureTimestamp = invalid signatureTimestamp = GetSignatureTimestamp(cancellation)
if doSignatureTimestamp if signatureTimestamp <> invalid
signatureTimestamp = GetSignatureTimestamp(cancellation) payload["playbackContext"]["contentPlaybackContext"]["signatureTimestamp"] = signatureTimestamp
if signatureTimestamp <> invalid
payload["playbackContext"]["contentPlaybackContext"]["signatureTimestamp"] = signatureTimestamp
end if
end if end if
request = HttpClient.PostJson("https://www.youtube.com/youtubei/v1/player?prettyPrint=false&alt=json", payload) request = HttpClient.PostJson("https://www.youtube.com/youtubei/v1/player?prettyPrint=false&alt=json", payload)
@@ -11,6 +11,7 @@ function ExecuteJob() as void
authToken = input.authToken authToken = input.authToken
profileType = input.profileType profileType = input.profileType
playbackTrackingUrls = input.playbackTrackingUrls playbackTrackingUrls = input.playbackTrackingUrls
cpn = input.cpn
cancellation = JobGetCancellation() cancellation = JobGetCancellation()
@@ -43,9 +44,14 @@ function ExecuteJob() as void
return return
end if end if
if StringUtils.IsNullOrEmpty(cpn)
cpn = InnertubeService.CreateClientPlaybackNonce()
end if
markedAsWatched = InnertubeService.AuthMarkVideoWatched(playbackTrackingUrls.videostatsPlaybackUrl, { markedAsWatched = InnertubeService.AuthMarkVideoWatched(playbackTrackingUrls.videostatsPlaybackUrl, {
accessToken: authToken.token accessToken: authToken.token
onBehalfOfUser: authToken.activeIdentifyToken onBehalfOfUser: authToken.activeIdentifyToken
cpn: cpn
cancellation: cancellation cancellation: cancellation
}) })
if not markedAsWatched if not markedAsWatched
@@ -93,6 +99,7 @@ function ExecuteJob() as void
success = InnertubeService.AuthMarkVideoWatchTime(watchTime, playbackTrackingUrls.videostatsWatchtimeUrl, { success = InnertubeService.AuthMarkVideoWatchTime(watchTime, playbackTrackingUrls.videostatsWatchtimeUrl, {
accessToken: authToken.token accessToken: authToken.token
onBehalfOfUser: authToken.activeIdentifyToken onBehalfOfUser: authToken.activeIdentifyToken
cpn: cpn
' TODO:P1 if we pass cancellation here, http client will remove scoped ' TODO:P1 if we pass cancellation here, http client will remove scoped
' observer, which is stored on the current node. ' observer, which is stored on the current node.
' This requires an extra observer node to be independent. ' This requires an extra observer node to be independent.
@@ -61,7 +61,6 @@ function ExecuteJob() as void
"visitorData": visitorData "visitorData": visitorData
"accessToken": accessToken "accessToken": accessToken
"onBehalfOfUser": onBehalfOfUser "onBehalfOfUser": onBehalfOfUser
"signatureTimestamp": true
}) })
else else
metadata = service.GetVideoMetadata(contentNode.videoId, { cancellation: m.top.cancellation }) metadata = service.GetVideoMetadata(contentNode.videoId, { cancellation: m.top.cancellation })
@@ -226,7 +226,7 @@ function OnVideoContentJobDone(event as object) as void
SeekToInitialPosition(content) SeekToInitialPosition(content)
PlayAfterPreviousPlayerHasStopped() PlayAfterPreviousPlayerHasStopped()
MarkVideoWatched(content.videoId, metadata.playbackTrackingUrls) MarkVideoWatched(content.videoId, metadata.playbackTrackingUrls, metadata.cpn)
end function end function
function SeekToInitialPosition(content as object) as void function SeekToInitialPosition(content as object) as void
@@ -345,7 +345,7 @@ function OnVideoContentJobErrorDialogResponse(event as object)
Lounge.SendOnStateChange() Lounge.SendOnStateChange()
end function end function
function MarkVideoWatched(videoId as dynamic, playbackTrackingUrls as dynamic) as void function MarkVideoWatched(videoId as dynamic, playbackTrackingUrls as dynamic, cpn as dynamic) as void
if StringUtils.IsNullOrEmpty(videoId) if StringUtils.IsNullOrEmpty(videoId)
return return
end if end if
@@ -368,6 +368,7 @@ function MarkVideoWatched(videoId as dynamic, playbackTrackingUrls as dynamic) a
authToken: authToken authToken: authToken
profileType: profileType profileType: profileType
playbackTrackingUrls: playbackTrackingUrls playbackTrackingUrls: playbackTrackingUrls
cpn: cpn
} }
m.markVideoWatchedJob = JobSystem.CreateCallback() m.markVideoWatchedJob = JobSystem.CreateCallback()
@@ -315,10 +315,6 @@ namespace Http
response.Json(result.feeds[0]) response.Json(result.feeds[0])
if result.DoesExist("cache-control")
response.headers["cache-control"] = result["cache-control"]
end if
return true return true
end function end function
@@ -588,7 +584,6 @@ namespace Http
} }
end if end if
else else
options["signatureTimestamp"] = true
options["credentialTransferToken"] = m.loungeService.credentialTransferToken options["credentialTransferToken"] = m.loungeService.credentialTransferToken
metadata = InnertubeService.GetVideoMetadata(videoId, options) metadata = InnertubeService.GetVideoMetadata(videoId, options)
end if end if
+1 -1
View File
@@ -3,7 +3,7 @@ title=PlayletLib
# Do not update version manually, it is auto updated from package.json # Do not update version manually, it is auto updated from package.json
major_version=0 major_version=0
minor_version=44 minor_version=44
build_version=00006 build_version=00008
ui_resolutions=hd ui_resolutions=hd
uri_resolution_autosub=$$RES$$,480p,720p,1080p uri_resolution_autosub=$$RES$$,480p,720p,1080p
+9 -10
View File
@@ -1,6 +1,7 @@
namespace DebugUtils #if DEBUG
function PrintStackTrace(message = invalid as dynamic) namespace DebugUtils
#if DEBUG function PrintStackTrace(message = invalid as dynamic)
try try
throw "Handled throw in DebugUtils.PrintStackTrace()" throw "Handled throw in DebugUtils.PrintStackTrace()"
catch error catch error
@@ -15,11 +16,9 @@ namespace DebugUtils
end for end for
PrintInABox(lines) PrintInABox(lines)
end try end try
#end if end function
end function
function PrintInABox(lines as object) function PrintInABox(lines as object)
#if DEBUG
maxLen = 0 maxLen = 0
for each line in lines for each line in lines
if line.len() > maxLen if line.len() > maxLen
@@ -32,6 +31,6 @@ namespace DebugUtils
end for end for
out += `\n` + "╚" + string(maxLen + 2, "═") + "╝" out += `\n` + "╚" + string(maxLen + 2, "═") + "╝"
print out print out
#end if end function
end function end namespace
end namespace #end if
+1243 -1637
View File
File diff suppressed because it is too large. Load diff
+16 -17
View File
@@ -1,6 +1,6 @@
{ {
"name": "playlet-web", "name": "playlet-web",
"version": "0.44.6", "version": "0.44.8",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
@@ -9,29 +9,28 @@
"lint": "svelte-check --tsconfig ./tsconfig.json --fail-on-warnings" "lint": "svelte-check --tsconfig ./tsconfig.json --fail-on-warnings"
}, },
"devDependencies": { "devDependencies": {
"@sveltejs/vite-plugin-svelte": "^6.2.4", "@sveltejs/vite-plugin-svelte": "^7.0.0",
"@tailwindcss/postcss": "^4.1.18", "@tailwindcss/postcss": "^4.2.2",
"@tailwindcss/typography": "^0.5.19", "@tailwindcss/typography": "^0.5.19",
"@tsconfig/svelte": "^5.0.7", "@tsconfig/svelte": "^5.0.8",
"@vitejs/plugin-legacy": "^7.2.1", "@vitejs/plugin-legacy": "^8.0.0",
"autoprefixer": "^10.4.24", "autoprefixer": "^10.4.27",
"bgutils-js": "^3.2.0", "bgutils-js": "^3.2.0",
"daisyui": "^5.5.18", "daisyui": "^5.5.19",
"dotenv": "^17.2.4", "dotenv": "^17.3.1",
"ip": "^2.0.1", "ip": "^2.0.1",
"jszip": "^3.10.1", "jszip": "^3.10.1",
"postcss": "^8.5.6", "postcss": "^8.5.8",
"rollup-plugin-visualizer": "^6.0.5", "rollup-plugin-visualizer": "^7.0.1",
"svelte": "^5.50.0", "svelte": "^5.54.0",
"svelte-check": "^4.3.6", "svelte-check": "^4.4.5",
"svelte-preprocess": "^6.0.3", "svelte-preprocess": "^6.0.3",
"tailwindcss": "^4.1.18", "tailwindcss": "^4.2.2",
"terser": "^5.46.0", "terser": "^5.46.1",
"tslib": "^2.8.1", "tslib": "^2.8.1",
"typescript": "^5.9.3", "typescript": "^5.9.3",
"vite": "^7.3.1", "vite": "^8.0.1",
"vite-plugin-compression": "^0.5.1", "vite-plugin-compression": "^0.5.1",
"vite-tsconfig-paths": "^6.0.5", "youtubei.js": "^17.0.1"
"youtubei.js": "^16.0.1"
} }
} }
+6 -14
View File
@@ -141,20 +141,8 @@ export class YoutubeJs {
static initJsEvaluator() { static initJsEvaluator() {
Platform.shim.eval = async (data: Types.BuildScriptResult, env: Record<string, Types.VMPrimative>) => { Platform.shim.eval = async (data: Types.BuildScriptResult, env: Record<string, Types.VMPrimative>) => {
const properties = []; return new Function(data.output)();
};
if (env.n) {
properties.push(`n: exportedVars.nFunction("${env.n}")`)
}
if (env.sig) {
properties.push(`sig: exportedVars.sigFunction("${env.sig}")`)
}
const code = `${data.output}\nreturn { ${properties.join(', ')} }`;
return new Function(code)();
}
} }
static async generateVisitorData() { static async generateVisitorData() {
@@ -255,6 +243,10 @@ export class YoutubeJs {
po_token: await YoutubeJs.generatePoToken(videoId), po_token: await YoutubeJs.generatePoToken(videoId),
}); });
if (info.playability_status.status !== 'OK') {
throw new Error(`Video is not playable: ${info.playability_status.status}\nReason: ${info.playability_status.reason}`);
}
// We can't generate a proper dash from live videos. // We can't generate a proper dash from live videos.
// By returning null, we're telling Playlet to fetch video info itself. // By returning null, we're telling Playlet to fetch video info itself.
if (info.basic_info.is_live) { if (info.basic_info.is_live) {
@@ -49,28 +49,43 @@
}); });
async function playOnTv() { async function playOnTv() {
const videoInfo = getVideoInfo(); try {
await PlayletApi.playVideo(videoInfo); const videoInfo = getVideoInfo();
await PlayletApi.playVideo(videoInfo);
} catch (error) {
console.error(error);
alert(error);
}
} }
async function playOnTvYtjs() { async function playOnTvYtjs() {
const videoInfo = getVideoInfo() as any; try {
const videoInfo = getVideoInfo() as any;
// measure length of time it takes to get video info // measure length of time it takes to get video info
const start = performance.now(); const start = performance.now();
const metadata = await YoutubeJs.getVideoInfo(videoId); const metadata = await YoutubeJs.getVideoInfo(videoId);
const end = performance.now(); const end = performance.now();
console.log(`Time to get video info: ${end - start}ms`); console.log(`Time to get video info: ${end - start}ms`);
if (metadata) { if (metadata) {
videoInfo.metadata = metadata; videoInfo.metadata = metadata;
}
await PlayletApi.playVideo(videoInfo);
} catch (error) {
console.error(error);
alert(error);
} }
await PlayletApi.playVideo(videoInfo);
} }
async function queueOnTv() { async function queueOnTv() {
const videoInfo = getVideoInfo(); try {
await PlayletApi.queueVideo(videoInfo); const videoInfo = getVideoInfo();
await PlayletApi.queueVideo(videoInfo);
} catch (error) {
console.error(error);
alert(error);
}
} }
function openInvidious() { function openInvidious() {
+3 -2
View File
@@ -2,7 +2,6 @@ import { visualizer } from 'rollup-plugin-visualizer';
import { defineConfig, UserConfig } from 'vite' import { defineConfig, UserConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte' import { svelte } from '@sveltejs/vite-plugin-svelte'
import viteCompression from 'vite-plugin-compression'; import viteCompression from 'vite-plugin-compression';
import tsconfigPaths from 'vite-tsconfig-paths'
import ip from 'ip'; import ip from 'ip';
import { existsSync, readFileSync } from 'fs' import { existsSync, readFileSync } from 'fs'
import { join as joinPath } from 'path' import { join as joinPath } from 'path'
@@ -13,7 +12,6 @@ const PORT = 5173
const config: UserConfig = { const config: UserConfig = {
plugins: [ plugins: [
tsconfigPaths(),
svelte(), svelte(),
legacy({ legacy({
targets: ['defaults', 'not IE 11'], targets: ['defaults', 'not IE 11'],
@@ -23,6 +21,9 @@ const config: UserConfig = {
deleteOriginFile: true deleteOriginFile: true
}) })
], ],
resolve: {
tsconfigPaths: true
},
build: { build: {
outDir: "../playlet-lib/src/www", outDir: "../playlet-lib/src/www",
emptyOutDir: true emptyOutDir: true