Skip to content

Commit 63b8a61

Browse files
MarmadileManteaterdependabot[bot]absidue
committed
Cherry pick upstream changes
Bump youtubei.js from 10.5.0 to 12.2.0 + Bump version number to from v022.0 to v0.22.1 + Fix incompatibility with upcoming YouTube.js version (FreeTubeApp#6343) * Bump youtubei.js from 12.0.0 to 12.1.0 (FreeTubeApp#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](LuanRT/YouTube.js@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] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix incompatibility with upcoming YouTube.js version (FreeTubeApp#6233) * Bump version number to v0.22.1 * 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](LuanRT/YouTube.js@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] <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: absidue <[email protected]>
1 parent fa2cbd9 commit 63b8a61

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "freetube",
33
"productName": "FreeTube",
44
"description": "A private YouTube client",
5-
"version": "0.22.0",
5+
"version": "0.22.1",
66
"license": "AGPL-3.0-or-later",
77
"main": "./dist/main.js",
88
"private": true,
@@ -77,7 +77,7 @@
7777
"vue-observe-visibility": "^1.0.0",
7878
"vue-router": "^3.6.5",
7979
"vuex": "^3.6.2",
80-
"youtubei.js": "^10.5.0"
80+
"youtubei.js": "^12.2.0"
8181
},
8282
"devDependencies": {
8383
"@babel/core": "^7.25.8",

src/renderer/helpers/api/local.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ClientType, Endpoints, Innertube, Misc, Parser, UniversalCache, Utils, YT } from 'youtubei.js'
1+
import { ClientType, Innertube, Misc, Parser, UniversalCache, Utils, YT, YTNodes } from 'youtubei.js'
22
import Autolinker from 'autolinker'
33
import { SEARCH_CHAR_LIMIT } from '../../../constants'
44

@@ -379,12 +379,12 @@ export async function getLocalChannelVideos(id) {
379379
const innertube = await createInnertube()
380380

381381
try {
382-
const response = await innertube.actions.execute(Endpoints.BrowseEndpoint.PATH, Endpoints.BrowseEndpoint.build({
383-
browse_id: id,
382+
const response = await innertube.actions.execute('/browse', {
383+
browseId: id,
384384
params: 'EgZ2aWRlb3PyBgQKAjoA'
385385
// protobuf for the videos tab (this is the one that YouTube uses,
386386
// it has some empty fields in the protobuf but it doesn't work if you remove them)
387-
}))
387+
})
388388

389389
const videosTab = new YT.Channel(null, response)
390390
const { id: channelId = id, name, thumbnailUrl } = parseLocalChannelHeader(videosTab, true)
@@ -436,12 +436,12 @@ export async function getLocalChannelLiveStreams(id) {
436436
const innertube = await createInnertube()
437437

438438
try {
439-
const response = await innertube.actions.execute(Endpoints.BrowseEndpoint.PATH, Endpoints.BrowseEndpoint.build({
440-
browse_id: id,
439+
const response = await innertube.actions.execute('/browse', {
440+
browseId: id,
441441
params: 'EgdzdHJlYW1z8gYECgJ6AA%3D%3D'
442442
// protobuf for the live tab (this is the one that YouTube uses,
443443
// it has some empty fields in the protobuf but it doesn't work if you remove them)
444-
}))
444+
})
445445

446446
let liveStreamsTab = new YT.Channel(innertube.actions, response)
447447
const { id: channelId = id, name, thumbnailUrl } = parseLocalChannelHeader(liveStreamsTab, true)
@@ -484,12 +484,12 @@ export async function getLocalChannelCommunity(id) {
484484
const innertube = await createInnertube()
485485

486486
try {
487-
const response = await innertube.actions.execute(Endpoints.BrowseEndpoint.PATH, Endpoints.BrowseEndpoint.build({
488-
browse_id: id,
487+
const response = await innertube.actions.execute('/browse', {
488+
browseId: id,
489489
params: 'Egljb21tdW5pdHnyBgQKAkoA'
490490
// protobuf for the community tab (this is the one that YouTube uses,
491491
// it has some empty fields in the protobuf but it doesn't work if you remove them)
492-
}))
492+
})
493493

494494
const communityTab = new YT.Channel(null, response)
495495

yarn.lock

+9-9
Original file line numberDiff line numberDiff line change
@@ -5758,10 +5758,10 @@ jest-worker@^29.7.0:
57585758
merge-stream "^2.0.0"
57595759
supports-color "^8.0.0"
57605760

5761-
jintr@^2.1.1:
5762-
version "2.1.1"
5763-
resolved "https://registry.yarnpkg.com/jintr/-/jintr-2.1.1.tgz#84d555df06d26128c2a1d0e1eebd6fecdf8eb280"
5764-
integrity sha512-89cwX4ouogeDGOBsEVsVYsnWWvWjchmwXBB4kiBhmjOKw19FiOKhNhMhpxhTlK2ctl7DS+d/ethfmuBpzoNNgA==
5761+
jintr@^3.2.0:
5762+
version "3.2.0"
5763+
resolved "https://registry.yarnpkg.com/jintr/-/jintr-3.2.0.tgz#38bfc2311c7ed4412ebe0bfc5c2e700f8f433921"
5764+
integrity sha512-psD1yf05kMKDNsUdW1l5YhO59pHScQ6OIHHb8W5SKSM2dCOFPsqolmIuSHgVA8+3Dc47NJR181CXZ4alCAPTkA==
57655765
dependencies:
57665766
acorn "^8.8.0"
57675767

@@ -9392,12 +9392,12 @@ yocto-queue@^1.0.0:
93929392
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-1.0.0.tgz#7f816433fb2cbc511ec8bf7d263c3b58a1a3c251"
93939393
integrity sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==
93949394

9395-
youtubei.js@^10.5.0:
9396-
version "10.5.0"
9397-
resolved "https://registry.yarnpkg.com/youtubei.js/-/youtubei.js-10.5.0.tgz#3cf0c79cf73fb26e13d167f37dec7d65419e91b8"
9398-
integrity sha512-iyA+VF28c15tCCKH9ExM2RKC3zYiHzA/eixGlJ3vERANkuI+xYKzAZ4vtOhmyqwrAddu88R/DkzEsmpph5NWjg==
9395+
youtubei.js@^12.2.0:
9396+
version "12.2.0"
9397+
resolved "https://registry.yarnpkg.com/youtubei.js/-/youtubei.js-12.2.0.tgz#54f058b5d0892b5c7e35019e2be6a2a7f7ba4447"
9398+
integrity sha512-G+50qrbJCToMYhu8jbaHiS3Vf+RRul+CcDbz3hEGwHkGPh+zLiWwD6SS+YhYF+2/op4ZU5zDYQJrGqJ+wKh7Gw==
93999399
dependencies:
94009400
"@bufbuild/protobuf" "^2.0.0"
9401-
jintr "^2.1.1"
9401+
jintr "^3.2.0"
94029402
tslib "^2.5.0"
94039403
undici "^5.19.1"

0 commit comments

Comments
 (0)