Compare commits

..
11 Commits
Author SHA1 Message Date
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
Brahim Hadriche 58fe601b25 Release v0.44.6 (#828) 2026-02-08 12:55:16 -05:00
Brahim Hadriche a61d132b57 update dependencies (#825) 2026-02-08 12:55:06 -05:00
Brahim Hadriche ee4acfc8e7 [skip ci] Add February 2026 update link to README 2026-02-08 11:39:20 -05:00
Brahim Hadriche fcd798a2fa update dependencies (#817) 2026-01-31 17:58:42 -05:00
Brahim Hadriche f5be0e5842 Close dialog on play state success (#821) 2026-01-31 17:57:46 -05:00
Brahim Hadriche 2d9f3abe5d Fix audio track display names (#820) 2026-01-31 17:56:51 -05:00
22 changed files with 1595 additions and 1879 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.7] - 2026-04-23
### Fixed
- Attempt to fix watch history and watch progress
- Channel sort
## [0.44.6] - 2026-02-08
### Fixed
- Error dialog doesn't close automatically when playback recovers after an error
- All audio track names are shown as "Other" in multi audio track videos
## [0.44.5] - 2026-01-17 ## [0.44.5] - 2026-01-17
### Fixed ### Fixed
+3
View File
@@ -27,6 +27,9 @@
Playlet is an unofficial YouTube client for Roku 📺 Playlet is an unofficial YouTube client for Roku 📺
**[Playlet February 2026 Update](https://github.com/iBicha/playlet/discussions/827)**
## Screenshots ## Screenshots
<a href="./docs/screenshots/README.md"> <a href="./docs/screenshots/README.md">
+140 -136
View File
@@ -1,40 +1,40 @@
{ {
"name": "playlet", "name": "playlet",
"version": "0.44.5", "version": "0.44.7",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playlet", "name": "playlet",
"version": "0.44.5", "version": "0.44.7",
"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.0.9", "@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.3", "dotenv": "^17.3.1",
"fs-extra": "^11.3.3", "fs-extra": "^11.3.4",
"glob": "^13.0.0", "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.1", "mailparser": "^3.9.4",
"protocol-buffers-schema": "^3.6.0", "protocol-buffers-schema": "^3.6.0",
"puppeteer": "^24.35.0", "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.3", "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.55.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.0",
"resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz",
"integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==",
"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.55.1", "version": "4.59.0",
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.55.1.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.59.0.tgz",
"integrity": "sha512-a8G4wiQxQG2BAvo+gU6XrReRRqj+pLS2NGXKm8io19goR+K8lw269eTrPkSdDTALwMmJp4th2Uh0D8J9bEV1vg==", "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.0.9", "version": "25.5.0",
"resolved": "https://registry.npmjs.org/@types/node/-/node-25.0.9.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-25.5.0.tgz",
"integrity": "sha512-/rpCXHlCWeqClNBwUhDcusJxXYDjZTyE8v5oTO7WbL8eij2nKhUeU89/6xgjU7N4/Vh3He0BtyhJdQbDyhiXAw==", "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.3", "version": "17.3.1",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.2.3.tgz", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.3.1.tgz",
"integrity": "sha512-JVUnt+DUIzu87TABbhPmNfVdBDt18BLOWjMUFJMSi/Qqg7NTYtabbvSNJGOJ7afbRuv9D/lngizHtP7QyLQ+9w==", "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.0", "version": "13.0.6",
"resolved": "https://registry.npmjs.org/glob/-/glob-13.0.0.tgz", "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.6.tgz",
"integrity": "sha512-tvZgpqk6fz4BaNZ66ZsRaZnbHvP/jG3uKJvAZOwEVUL4RTA5nJeeLYfyN9/VA8NX/V3IBG+hkeuGpKjvELkVhA==", "integrity": "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==",
"dev": true, "dev": true,
"license": "BlueOak-1.0.0", "license": "BlueOak-1.0.0",
"dependencies": { "dependencies": {
"minimatch": "^10.1.1", "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.1", "version": "10.2.4",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.1.1.tgz", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.4.tgz",
"integrity": "sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==", "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.0" "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.1", "version": "3.9.4",
"resolved": "https://registry.npmjs.org/mailparser/-/mailparser-3.9.1.tgz", "resolved": "https://registry.npmjs.org/mailparser/-/mailparser-3.9.4.tgz",
"integrity": "sha512-6vHZcco3fWsDMkf4Vz9iAfxvwrKNGbHx0dV1RKVphQ/zaNY34Buc7D37LSa09jeSeybWzYcTPjhiZFxzVRJedA==", "integrity": "sha512-ZmCnrMnRod+Cq6h7afn9DMFlT1B5gf484Ji+55NhUR4+w4q9z9d7lHHvL8pXP6kp/ehr8pGLQZBmjHpjvItuTQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@@ -3864,18 +3865,18 @@
"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.2",
"libmime": "5.3.7", "libmime": "5.3.7",
"linkify-it": "5.0.0", "linkify-it": "5.0.0",
"nodemailer": "7.0.11", "nodemailer": "8.0.2",
"punycode.js": "2.3.1", "punycode.js": "2.3.1",
"tlds": "1.261.0" "tlds": "1.261.0"
} }
}, },
"node_modules/mailparser/node_modules/iconv-lite": { "node_modules/mailparser/node_modules/iconv-lite": {
"version": "0.7.0", "version": "0.7.2",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.0.tgz", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz",
"integrity": "sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==", "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@@ -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.11", "version": "8.0.2",
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-7.0.11.tgz", "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-8.0.2.tgz",
"integrity": "sha512-gnXhNRE0FNhD7wPSCGhdNh46Hs6nm+uTyg+Kq0cZukNQiYdnCsoQjodNP9BQVG9XrcK/v6/MgpAPBUFyzh9pvw==", "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.35.0", "version": "24.40.0",
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-24.35.0.tgz", "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-24.40.0.tgz",
"integrity": "sha512-sbjB5JnJ+3nwgSdRM/bqkFXqLxRz/vsz0GRIeTlCk+j+fGpqaF2dId9Qp25rXz9zfhqnN9s0krek1M/C2GDKtA==", "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.11.1", "@puppeteer/browsers": "2.13.0",
"chromium-bidi": "12.0.1", "chromium-bidi": "14.0.0",
"cosmiconfig": "^9.0.0", "cosmiconfig": "^9.0.0",
"devtools-protocol": "0.0.1534754", "devtools-protocol": "0.0.1581282",
"puppeteer-core": "24.35.0", "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.11.1", "version": "2.13.0",
"resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-2.11.1.tgz", "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-2.13.0.tgz",
"integrity": "sha512-YmhAxs7XPuxN0j7LJloHpfD1ylhDuFmmwMvfy/+6nBSrETT2ycL53LrhgPtR+f+GcPSybQVuQ5inWWu5MrWCpA==", "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": "12.0.1", "version": "14.0.0",
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-12.0.1.tgz", "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-14.0.0.tgz",
"integrity": "sha512-fGg+6jr0xjQhzpy5N4ErZxQ4wF7KLEvhGZXD6EgvZKDhu7iOhZXnZhcDxPJDcwTcrD48NPzOCo84RP2lv3Z+Cg==", "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.1534754", "version": "0.0.1581282",
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1534754.tgz", "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1581282.tgz",
"integrity": "sha512-26T91cV5dbOYnXdJi5qQHoTtUoNEqwkHcAyu/IKtjIAxiEqPMrDiRkDOPWVsGfNZGmlQVHQbZRSjD8sxagWVsQ==", "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.35.0", "version": "24.40.0",
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-24.35.0.tgz", "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-24.40.0.tgz",
"integrity": "sha512-vt1zc2ME0kHBn7ZDOqLvgvrYD5bqNv5y2ZNXzYnCv8DEtZGw/zKhljlrGuImxptZ4rq+QI9dFGrUIYqG4/IQzA==", "integrity": "sha512-MWL3XbUCfVgGR0gRsidzT6oKJT2QydPLhMITU6HoVWiiv4gkb6gJi3pcdAa8q4HwjBTbqISOWVP4aJiiyUJvag==",
"dev": true, "dev": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@puppeteer/browsers": "2.11.1", "@puppeteer/browsers": "2.13.0",
"chromium-bidi": "12.0.1", "chromium-bidi": "14.0.0",
"debug": "^4.4.3", "debug": "^4.4.3",
"devtools-protocol": "0.0.1534754", "devtools-protocol": "0.0.1581282",
"typed-query-selector": "^2.12.0", "typed-query-selector": "^2.12.1",
"webdriver-bidi-protocol": "0.3.10", "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": {
@@ -5926,9 +5929,9 @@
} }
}, },
"node_modules/semver": { "node_modules/semver": {
"version": "7.7.3", "version": "7.7.4",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",
"integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",
"dev": true, "dev": true,
"license": "ISC", "license": "ISC",
"bin": { "bin": {
@@ -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.3.10", "version": "0.4.1",
"resolved": "https://registry.npmjs.org/webdriver-bidi-protocol/-/webdriver-bidi-protocol-0.3.10.tgz", "resolved": "https://registry.npmjs.org/webdriver-bidi-protocol/-/webdriver-bidi-protocol-0.4.1.tgz",
"integrity": "sha512-5LAE43jAVLOhB/QqX4bwSiv0Hg1HBfMmOuwBSXHdvg4GMGu9Y0lIq7p4R/yySu6w74WmaR4GM4H9t2IwLW7hgw==", "integrity": "sha512-ARrjNjtWRRs2w4Tk7nqrf2gBI0QXWuOmMCx2hU+1jUt6d00MjMxURrhxhGbrsoiZKJrhTSTzbIrc554iKI10qw==",
"dev": true, "dev": true,
"license": "Apache-2.0" "license": "Apache-2.0"
}, },
+13 -13
View File
@@ -1,36 +1,36 @@
{ {
"name": "playlet", "name": "playlet",
"version": "0.44.5", "version": "0.44.7",
"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.0.9", "@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.3", "dotenv": "^17.3.1",
"fs-extra": "^11.3.3", "fs-extra": "^11.3.4",
"glob": "^13.0.0", "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.1", "mailparser": "^3.9.4",
"protocol-buffers-schema": "^3.6.0", "protocol-buffers-schema": "^3.6.0",
"puppeteer": "^24.35.0", "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.3", "semver": "^7.7.4",
"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.55.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.5", "version": "0.44.7",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playlet-app", "name": "playlet-app",
"version": "0.44.5" "version": "0.44.7"
} }
} }
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "playlet-app", "name": "playlet-app",
"version": "0.44.5", "version": "0.44.7",
"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=00005 build_version=00007
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.5", "version": "0.44.7",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "playlet-lib", "name": "playlet-lib",
"version": "0.44.5" "version": "0.44.7"
} }
} }
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "playlet-lib", "name": "playlet-lib",
"version": "0.44.5", "version": "0.44.7",
"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
@@ -289,8 +289,13 @@ class DashManifest
"contentType": "audio" "contentType": "audio"
} }
if IsAssociativeArray(firstFormat.audioTrack) and IsString(firstFormat.audioTrack.languageCode) if IsAssociativeArray(firstFormat.audioTrack)
adaptationSetAttributes["lang"] = firstFormat.audioTrack.languageCode if IsString(firstFormat.audioTrack.languageCode)
adaptationSetAttributes["lang"] = firstFormat.audioTrack.languageCode
else if IsString(firstFormat.audioTrack.id)
' ID is in the format "CODE.DIGIT" e.g. "en.4"
adaptationSetAttributes["lang"] = firstFormat.audioTrack.id.split(".")[0]
end if
end if end if
' Hoist common attributes ' Hoist common attributes
@@ -362,6 +362,9 @@ 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")
cmt = OptionUtils.GetOrDefault(options, "cmt", 0)
cmtStr = cmt.ToStr("%.3f")
videostatsPlaybackUrl = videostatsPlaybackUrl.replace("https://s.", "https://www.") videostatsPlaybackUrl = videostatsPlaybackUrl.replace("https://s.", "https://www.")
queryParams = UrlUtils.ParseQueryComponents(videostatsPlaybackUrl) queryParams = UrlUtils.ParseQueryComponents(videostatsPlaybackUrl)
@@ -369,9 +372,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["cpn"] = cpn
queryParams["cmt"] = 0 queryParams["cmt"] = cmtStr
queryParams["final"] = "1"
videostatsPlaybackUrl = UrlUtils.SetQueryParams(videostatsPlaybackUrl, queryParams) videostatsPlaybackUrl = UrlUtils.SetQueryParams(videostatsPlaybackUrl, queryParams)
request = HttpClient.Get(videostatsPlaybackUrl) request = HttpClient.Get(videostatsPlaybackUrl)
@@ -393,12 +395,15 @@ namespace InnertubeService
return true return true
end function end function
function AuthMarkVideoWatchTime(time as float, videostatsWatchtimeUrl as string, options = invalid as object) as boolean function AuthMarkVideoWatchTime(startTime as float, endTime as float, videostatsWatchtimeUrl as string, options = invalid as object) as boolean
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")
timeStr = time.ToStr("%.3f") cmt = OptionUtils.GetOrDefault(options, "cmt", 0)
cmtStr = cmt.ToStr("%.3f")
stStr = startTime.ToStr("%.3f")
etStr = endTime.ToStr("%.3f")
videostatsWatchtimeUrl = videostatsWatchtimeUrl.replace("https://s.", "https://www.") videostatsWatchtimeUrl = videostatsWatchtimeUrl.replace("https://s.", "https://www.")
queryParams = UrlUtils.ParseQueryComponents(videostatsWatchtimeUrl) queryParams = UrlUtils.ParseQueryComponents(videostatsWatchtimeUrl)
@@ -406,11 +411,10 @@ 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"] = cmtStr
queryParams["final"] = "1" queryParams["st"] = stStr
queryParams["st"] = timeStr queryParams["et"] = etStr
queryParams["et"] = timeStr
videostatsWatchtimeUrl = UrlUtils.SetQueryParams(videostatsWatchtimeUrl, queryParams) videostatsWatchtimeUrl = UrlUtils.SetQueryParams(videostatsWatchtimeUrl, queryParams)
request = HttpClient.Get(videostatsWatchtimeUrl) request = HttpClient.Get(videostatsWatchtimeUrl)
@@ -428,7 +432,7 @@ namespace InnertubeService
return false return false
end if end if
LogDebug("Marked video watch time:", timeStr) LogDebug("Marked video watch time:", stStr, "-", etStr)
return true return true
end function end function
@@ -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
@@ -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
@@ -68,6 +74,7 @@ function ExecuteJob() as void
MessagePortUtils.ObserveFieldScopedExSafe(callbackNode, "watchTime", port) MessagePortUtils.ObserveFieldScopedExSafe(callbackNode, "watchTime", port)
CancellationUtils.ObserveCancellationScoped(cancellation, port) CancellationUtils.ObserveCancellationScoped(cancellation, port)
successiveFailures = 0 successiveFailures = 0
lastReportedTime = 0.0
while true while true
message = wait(60000, port) message = wait(60000, port)
if CancellationUtils.IsCancellationEvent(cancellation, message) if CancellationUtils.IsCancellationEvent(cancellation, message)
@@ -90,16 +97,27 @@ function ExecuteJob() as void
end while end while
watchTime = message.getData() watchTime = message.getData()
success = InnertubeService.AuthMarkVideoWatchTime(watchTime, playbackTrackingUrls.videostatsWatchtimeUrl, { ' On seek-back, clamp st to not exceed et - I don't know if we really need to
if lastReportedTime > watchTime
lastReportedTime = watchTime - 20
if lastReportedTime < 0
lastReportedTime = 0
end if
end if
success = InnertubeService.AuthMarkVideoWatchTime(lastReportedTime, 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.
cmt: lastReportedTime
cancellation: invalid cancellation: invalid
}) })
if success if success
successiveFailures = 0 successiveFailures = 0
lastReportedTime = watchTime
else else
successiveFailures += 1 successiveFailures += 1
end if end if
@@ -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
@@ -329,6 +329,9 @@ function OnVideoContentJobErrorDialogResponse(event as object)
shouldPlayNext = false shouldPlayNext = false
if event <> invalid if event <> invalid
dialog = event.getRoSGNode() dialog = event.getRoSGNode()
if m.errorDialog <> invalid and dialog.isSameNode(m.errorDialog)
m.errorDialog = invalid
end if
dialog.unobserveFieldScoped("wasClosed") dialog.unobserveFieldScoped("wasClosed")
shouldPlayNext = dialog.actualButtonSelected = 0 shouldPlayNext = dialog.actualButtonSelected = 0
end if end if
@@ -342,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
@@ -365,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()
@@ -444,6 +448,14 @@ function OnVideoPlayerStateChange() as void
' Reset isSeekingPosition when started to play the video ' Reset isSeekingPosition when started to play the video
if state = "playing" if state = "playing"
m.isSeekingPosition = false m.isSeekingPosition = false
' If we somehow was able to recover playback after an error dialog, close the dialog
errorDialog = m.errorDialog
if errorDialog <> invalid
m.errorDialog = invalid
errorDialog.unobserveFieldScoped("wasClosed")
errorDialog.close = true
end if
end if end if
' If we successfully played the video, then any error that comes later is not due to a 403 (FORBIDDEN). ' If we successfully played the video, then any error that comes later is not due to a 403 (FORBIDDEN).
@@ -520,6 +532,7 @@ function OnVideoPlayerStateChange() as void
dialog = DialogUtils.ShowTimedDialogButtons(errorData.body, errorData.title, buttons, 0, 10, true) dialog = DialogUtils.ShowTimedDialogButtons(errorData.body, errorData.title, buttons, 0, 10, true)
if dialog <> invalid if dialog <> invalid
m.errorDialog = dialog
dialog.observeFieldScoped("wasClosed", FuncName(OnVideoContentJobErrorDialogResponse)) dialog.observeFieldScoped("wasClosed", FuncName(OnVideoContentJobErrorDialogResponse))
else else
OnVideoContentJobErrorDialogResponse(invalid) OnVideoContentJobErrorDialogResponse(invalid)
@@ -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
+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=00005 build_version=00007
ui_resolutions=hd ui_resolutions=hd
uri_resolution_autosub=$$RES$$,480p,720p,1080p uri_resolution_autosub=$$RES$$,480p,720p,1080p
+1244 -1644
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.5", "version": "0.44.7",
"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.6", "@tsconfig/svelte": "^5.0.8",
"@vitejs/plugin-legacy": "^7.2.1", "@vitejs/plugin-legacy": "^8.0.0",
"autoprefixer": "^10.4.23", "autoprefixer": "^10.4.27",
"bgutils-js": "^3.2.0", "bgutils-js": "^3.2.0",
"daisyui": "^5.5.14", "daisyui": "^5.5.19",
"dotenv": "^17.2.3", "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.46.4", "svelte": "^5.54.0",
"svelte-check": "^4.3.5", "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.4", "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