From a036652474386c969d46e69beb41fcbbd3875ebb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 10 Dec 2024 21:48:42 +0800 Subject: [PATCH 1/4] Bump youtubei.js from 12.0.0 to 12.1.0 (#6341) Bumps [youtubei.js](https://github.com/LuanRT/YouTube.js) from 12.0.0 to 12.1.0. - [Release notes](https://github.com/LuanRT/YouTube.js/releases) - [Changelog](https://github.com/LuanRT/YouTube.js/blob/main/CHANGELOG.md) - [Commits](https://github.com/LuanRT/YouTube.js/compare/v12.0.0...v12.1.0) --- updated-dependencies: - dependency-name: youtubei.js dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 64956715efd8f..29d38afc680e8 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "vue-observe-visibility": "^1.0.0", "vue-router": "^3.6.5", "vuex": "^3.6.2", - "youtubei.js": "^10.5.0" + "youtubei.js": "^12.1.0" }, "devDependencies": { "@babel/core": "^7.25.8", diff --git a/yarn.lock b/yarn.lock index f74ee514e8304..bf15928a7b8ff 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9412,10 +9412,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@^10.5.0: - version "10.5.0" - resolved "https://registry.yarnpkg.com/youtubei.js/-/youtubei.js-10.5.0.tgz#3cf0c79cf73fb26e13d167f37dec7d65419e91b8" - integrity sha512-iyA+VF28c15tCCKH9ExM2RKC3zYiHzA/eixGlJ3vERANkuI+xYKzAZ4vtOhmyqwrAddu88R/DkzEsmpph5NWjg== +youtubei.js@^12.1.0: + version "12.1.0" + resolved "https://registry.yarnpkg.com/youtubei.js/-/youtubei.js-12.1.0.tgz#46fd1911b11984e47d41d4cbebcc2a4fcf822036" + integrity sha512-42SUw7zPpx4b7+XBm9QW+//T2/tixBRoEjJAbfOLmGCiyGZuvfW+oq/IngnXo2Keu+yD7YVAfYFc/NaFjFDxGg== dependencies: "@bufbuild/protobuf" "^2.0.0" jintr "^2.1.1" From 3fef992fed0ae3d3a8456756d42e17b50e1e55a2 Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Mon, 25 Nov 2024 23:31:40 +0100 Subject: [PATCH 2/4] Fix incompatibility with upcoming YouTube.js version (#6233) --- src/renderer/helpers/api/local.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/renderer/helpers/api/local.js b/src/renderer/helpers/api/local.js index cd9f1da96c5b3..77afeda2636ad 100644 --- a/src/renderer/helpers/api/local.js +++ b/src/renderer/helpers/api/local.js @@ -1,4 +1,4 @@ -import { ClientType, Endpoints, Innertube, Misc, Parser, UniversalCache, Utils, YT } from 'youtubei.js' +import { ClientType, Innertube, Misc, Parser, UniversalCache, Utils, YT, YTNodes } from 'youtubei.js' import Autolinker from 'autolinker' import { SEARCH_CHAR_LIMIT } from '../../../constants' @@ -379,12 +379,12 @@ export async function getLocalChannelVideos(id) { const innertube = await createInnertube() try { - const response = await innertube.actions.execute(Endpoints.BrowseEndpoint.PATH, Endpoints.BrowseEndpoint.build({ - browse_id: id, + const response = await innertube.actions.execute('/browse', { + browseId: id, params: 'EgZ2aWRlb3PyBgQKAjoA' // protobuf for the videos tab (this is the one that YouTube uses, // it has some empty fields in the protobuf but it doesn't work if you remove them) - })) + }) const videosTab = new YT.Channel(null, response) const { id: channelId = id, name, thumbnailUrl } = parseLocalChannelHeader(videosTab, true) @@ -436,12 +436,12 @@ export async function getLocalChannelLiveStreams(id) { const innertube = await createInnertube() try { - const response = await innertube.actions.execute(Endpoints.BrowseEndpoint.PATH, Endpoints.BrowseEndpoint.build({ - browse_id: id, + const response = await innertube.actions.execute('/browse', { + browseId: id, params: 'EgdzdHJlYW1z8gYECgJ6AA%3D%3D' // protobuf for the live tab (this is the one that YouTube uses, // it has some empty fields in the protobuf but it doesn't work if you remove them) - })) + }) let liveStreamsTab = new YT.Channel(innertube.actions, response) const { id: channelId = id, name, thumbnailUrl } = parseLocalChannelHeader(liveStreamsTab, true) @@ -484,12 +484,12 @@ export async function getLocalChannelCommunity(id) { const innertube = await createInnertube() try { - const response = await innertube.actions.execute(Endpoints.BrowseEndpoint.PATH, Endpoints.BrowseEndpoint.build({ - browse_id: id, + const response = await innertube.actions.execute('/browse', { + browseId: id, params: 'Egljb21tdW5pdHnyBgQKAkoA' // protobuf for the community tab (this is the one that YouTube uses, // it has some empty fields in the protobuf but it doesn't work if you remove them) - })) + }) const communityTab = new YT.Channel(null, response) From 04e0c4b1f91d200269f01ecc16bf4bd80542d7a0 Mon Sep 17 00:00:00 2001 From: efb4f5ff-1298-471a-8973-3d47447115dc <73130443+efb4f5ff-1298-471a-8973-3d47447115dc@users.noreply.github.com> Date: Tue, 10 Dec 2024 15:50:25 +0100 Subject: [PATCH 3/4] Bump version number to v0.22.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 29d38afc680e8..7c6a99e814311 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "freetube", "productName": "FreeTube", "description": "A private YouTube client", - "version": "0.22.0", + "version": "0.22.1", "license": "AGPL-3.0-or-later", "main": "./dist/main.js", "private": true, From 17992874cf13c474fca318b09f1b22cc4cd7a3fb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 13:58:41 +0000 Subject: [PATCH 4/4] Bump youtubei.js from 12.1.0 to 12.2.0 Bumps [youtubei.js](https://github.com/LuanRT/YouTube.js) from 12.1.0 to 12.2.0. - [Release notes](https://github.com/LuanRT/YouTube.js/releases) - [Changelog](https://github.com/LuanRT/YouTube.js/blob/main/CHANGELOG.md) - [Commits](https://github.com/LuanRT/YouTube.js/compare/v12.1.0...v12.2.0) --- updated-dependencies: - dependency-name: youtubei.js dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 7c6a99e814311..4953f78334948 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "vue-observe-visibility": "^1.0.0", "vue-router": "^3.6.5", "vuex": "^3.6.2", - "youtubei.js": "^12.1.0" + "youtubei.js": "^12.2.0" }, "devDependencies": { "@babel/core": "^7.25.8", diff --git a/yarn.lock b/yarn.lock index bf15928a7b8ff..86a6b30804402 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5753,10 +5753,10 @@ jest-worker@^29.7.0: merge-stream "^2.0.0" supports-color "^8.0.0" -jintr@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/jintr/-/jintr-2.1.1.tgz#84d555df06d26128c2a1d0e1eebd6fecdf8eb280" - integrity sha512-89cwX4ouogeDGOBsEVsVYsnWWvWjchmwXBB4kiBhmjOKw19FiOKhNhMhpxhTlK2ctl7DS+d/ethfmuBpzoNNgA== +jintr@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/jintr/-/jintr-3.2.0.tgz#38bfc2311c7ed4412ebe0bfc5c2e700f8f433921" + integrity sha512-psD1yf05kMKDNsUdW1l5YhO59pHScQ6OIHHb8W5SKSM2dCOFPsqolmIuSHgVA8+3Dc47NJR181CXZ4alCAPTkA== dependencies: acorn "^8.8.0" @@ -9412,12 +9412,12 @@ 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.1.0: - version "12.1.0" - resolved "https://registry.yarnpkg.com/youtubei.js/-/youtubei.js-12.1.0.tgz#46fd1911b11984e47d41d4cbebcc2a4fcf822036" - integrity sha512-42SUw7zPpx4b7+XBm9QW+//T2/tixBRoEjJAbfOLmGCiyGZuvfW+oq/IngnXo2Keu+yD7YVAfYFc/NaFjFDxGg== +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== dependencies: "@bufbuild/protobuf" "^2.0.0" - jintr "^2.1.1" + jintr "^3.2.0" tslib "^2.5.0" undici "^5.19.1"