Skip to content

Commit 726f8a9

Browse files
efb4f5ff-1298-471a-8973-3d47447115dcdependabot[bot]absidue
authored
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 (#6343)
* 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](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 (#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 30c3978 commit 726f8a9

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,
@@ -74,7 +74,7 @@
7474
"vue-observe-visibility": "^1.0.0",
7575
"vue-router": "^3.6.5",
7676
"vuex": "^3.6.2",
77-
"youtubei.js": "^10.5.0"
77+
"youtubei.js": "^12.2.0"
7878
},
7979
"devDependencies": {
8080
"@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
@@ -5753,10 +5753,10 @@ jest-worker@^29.7.0:
57535753
merge-stream "^2.0.0"
57545754
supports-color "^8.0.0"
57555755

5756-
jintr@^2.1.1:
5757-
version "2.1.1"
5758-
resolved "https://registry.yarnpkg.com/jintr/-/jintr-2.1.1.tgz#84d555df06d26128c2a1d0e1eebd6fecdf8eb280"
5759-
integrity sha512-89cwX4ouogeDGOBsEVsVYsnWWvWjchmwXBB4kiBhmjOKw19FiOKhNhMhpxhTlK2ctl7DS+d/ethfmuBpzoNNgA==
5756+
jintr@^3.2.0:
5757+
version "3.2.0"
5758+
resolved "https://registry.yarnpkg.com/jintr/-/jintr-3.2.0.tgz#38bfc2311c7ed4412ebe0bfc5c2e700f8f433921"
5759+
integrity sha512-psD1yf05kMKDNsUdW1l5YhO59pHScQ6OIHHb8W5SKSM2dCOFPsqolmIuSHgVA8+3Dc47NJR181CXZ4alCAPTkA==
57605760
dependencies:
57615761
acorn "^8.8.0"
57625762

@@ -9412,12 +9412,12 @@ yocto-queue@^1.0.0:
94129412
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-1.0.0.tgz#7f816433fb2cbc511ec8bf7d263c3b58a1a3c251"
94139413
integrity sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==
94149414

9415-
youtubei.js@^10.5.0:
9416-
version "10.5.0"
9417-
resolved "https://registry.yarnpkg.com/youtubei.js/-/youtubei.js-10.5.0.tgz#3cf0c79cf73fb26e13d167f37dec7d65419e91b8"
9418-
integrity sha512-iyA+VF28c15tCCKH9ExM2RKC3zYiHzA/eixGlJ3vERANkuI+xYKzAZ4vtOhmyqwrAddu88R/DkzEsmpph5NWjg==
9415+
youtubei.js@^12.2.0:
9416+
version "12.2.0"
9417+
resolved "https://registry.yarnpkg.com/youtubei.js/-/youtubei.js-12.2.0.tgz#54f058b5d0892b5c7e35019e2be6a2a7f7ba4447"
9418+
integrity sha512-G+50qrbJCToMYhu8jbaHiS3Vf+RRul+CcDbz3hEGwHkGPh+zLiWwD6SS+YhYF+2/op4ZU5zDYQJrGqJ+wKh7Gw==
94199419
dependencies:
94209420
"@bufbuild/protobuf" "^2.0.0"
9421-
jintr "^2.1.1"
9421+
jintr "^3.2.0"
94229422
tslib "^2.5.0"
94239423
undici "^5.19.1"

0 commit comments

Comments
 (0)