Skip to content

Commit b2fe59d

Browse files
authored
^ Update YouTube.js to 10.1.0 (#5384)
* ^ Update YouTube.js to 10.1.0 * ! Add code to ignore probably invalid player cache entry
1 parent 823e9bb commit b2fe59d

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"vue-observe-visibility": "^1.0.0",
8080
"vue-router": "^3.6.5",
8181
"vuex": "^3.6.2",
82-
"youtubei.js": "^10.0.0"
82+
"youtubei.js": "^10.1.0"
8383
},
8484
"devDependencies": {
8585
"@babel/core": "^7.24.7",

src/main/index.js

+7
Original file line numberDiff line numberDiff line change
@@ -976,6 +976,13 @@ function runApp() {
976976

977977
try {
978978
const contents = await asyncFs.readFile(filePath)
979+
980+
// Probably a corrupted/broken cache entry, pretend it's absent
981+
// A valid entry should be a few KB large
982+
if (contents.byteLength < 500) {
983+
return undefined
984+
}
985+
979986
return contents.buffer
980987
} catch (e) {
981988
console.error(e)

yarn.lock

+9-9
Original file line numberDiff line numberDiff line change
@@ -5497,10 +5497,10 @@ jest-worker@^29.7.0:
54975497
merge-stream "^2.0.0"
54985498
supports-color "^8.0.0"
54995499

5500-
jintr@^1.1.0:
5501-
version "1.1.0"
5502-
resolved "https://registry.yarnpkg.com/jintr/-/jintr-1.1.0.tgz#223a3b07f5e03d410cec6e715c537c8ad1e714c3"
5503-
integrity sha512-Tu9wk3BpN2v+kb8yT6YBtue+/nbjeLFv4vvVC4PJ7oCidHKbifWhvORrAbQfxVIQZG+67am/mDagpiGSVtvrZg==
5500+
jintr@^2.0.0:
5501+
version "2.0.0"
5502+
resolved "https://registry.yarnpkg.com/jintr/-/jintr-2.0.0.tgz#bc8e78efc04743f5c67c625587ce4d1c94afad9a"
5503+
integrity sha512-RiVlevxttZ4eHEYB2dXKXDXluzHfRuw0DJQGsYuKCc5IvZj5/GbOakeqVX+Bar/G9kTty9xDJREcxukurkmYLA==
55045504
dependencies:
55055505
acorn "^8.8.0"
55065506

@@ -9016,11 +9016,11 @@ yocto-queue@^1.0.0:
90169016
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-1.0.0.tgz#7f816433fb2cbc511ec8bf7d263c3b58a1a3c251"
90179017
integrity sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==
90189018

9019-
youtubei.js@^10.0.0:
9020-
version "10.0.0"
9021-
resolved "https://registry.yarnpkg.com/youtubei.js/-/youtubei.js-10.0.0.tgz#73ef7421302569c6cd6a163c12df393f13da480f"
9022-
integrity sha512-4Mmguxyw1TK1Co+gbx+41SFR55DR3OzMCdFW8OrSENjAjjOY9RDg7sKFbR+ZLsT3ga9AH1/nq+14KUItT9pPHQ==
9019+
youtubei.js@^10.1.0:
9020+
version "10.1.0"
9021+
resolved "https://registry.yarnpkg.com/youtubei.js/-/youtubei.js-10.1.0.tgz#38b3d95907441040df1e8031e04e0e6200ed52cf"
9022+
integrity sha512-MokZMAnpWH11VYvWuW6qjPiiPmgRl5rfDgPQOpif9qXcVHoVw1hi8ePuRSD0AZSZ+uvWGe8rvas2dzp+Jv5JKQ==
90239023
dependencies:
9024-
jintr "^1.1.0"
9024+
jintr "^2.0.0"
90259025
tslib "^2.5.0"
90269026
undici "^5.19.1"

0 commit comments

Comments
 (0)