diff --git a/package.json b/package.json index 97cf69041874f..430b8bdff7d7a 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,7 @@ "vue-observe-visibility": "^1.0.0", "vue-router": "^3.6.5", "vuex": "^3.6.2", - "youtubei.js": "^12.2.0" + "youtubei.js": "^13.0.0" }, "devDependencies": { "@babel/core": "^7.26.0", diff --git a/src/renderer/helpers/api/local.js b/src/renderer/helpers/api/local.js index 0298463ed5bef..eca38551dd6af 100644 --- a/src/renderer/helpers/api/local.js +++ b/src/renderer/helpers/api/local.js @@ -691,8 +691,8 @@ export function parseLocalChannelHeader(channel, onlyIdNameThumbnail = false) { subscriberText = header.content.metadata.metadata_rows .flatMap(row => row.metadata_parts ? row.metadata_parts : []) - .find(part => part.text.text?.includes('subscriber')) - ?.text.text + .find(part => part.text?.text?.includes('subscriber')) + ?.text?.text } break diff --git a/yarn.lock b/yarn.lock index 97903c76708b3..3a85df40fd52e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9736,10 +9736,10 @@ yocto-queue@^1.0.0: resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-1.0.0.tgz#7f816433fb2cbc511ec8bf7d263c3b58a1a3c251" integrity sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g== -youtubei.js@^12.2.0: - version "12.2.0" - resolved "https://registry.yarnpkg.com/youtubei.js/-/youtubei.js-12.2.0.tgz#54f058b5d0892b5c7e35019e2be6a2a7f7ba4447" - integrity sha512-G+50qrbJCToMYhu8jbaHiS3Vf+RRul+CcDbz3hEGwHkGPh+zLiWwD6SS+YhYF+2/op4ZU5zDYQJrGqJ+wKh7Gw== +youtubei.js@^13.0.0: + version "13.0.0" + resolved "https://registry.yarnpkg.com/youtubei.js/-/youtubei.js-13.0.0.tgz#f036bc6f5cb9ef8bd73da7e1079a2b70776bb2f7" + integrity sha512-b1QkN9bfgphK+5tI4qteSK54kNxmPhoedvMw0jl4uSn+L8gbDbJ4z52amNuYNcOdp4X/SI3JuUb+f5V0DPJ8Vw== dependencies: "@bufbuild/protobuf" "^2.0.0" jintr "^3.2.0"