Skip to content

Commit 664e4e5

Browse files
Merge pull request #8824 from efb4f5ff-1298-471a-8973-3d47447115dc/hotfix-release-v0.23.15
Hotfix release - v0.23.15
2 parents 54e85f8 + addc3ba commit 664e4e5

File tree

3 files changed

+8
-22
lines changed

3 files changed

+8
-22
lines changed

package.json

Lines changed: 2 additions & 2 deletions
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.23.14",
5+
"version": "0.23.15",
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": "^16.0.0"
77+
"youtubei.js": "^17.0.1"
7878
},
7979
"devDependencies": {
8080
"@babel/core": "^7.26.7",

src/renderer/helpers/api/local.js

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,9 @@ const TRACKING_PARAM_NAMES = [
2121
]
2222

2323
if (process.env.SUPPORTS_LOCAL_API) {
24-
Platform.shim.eval = (data, env) => {
24+
Platform.shim.eval = (data) => {
2525
return new Promise((resolve, reject) => {
26-
const properties = []
27-
28-
if (env.n) {
29-
properties.push(`n: exportedVars.nFunction("${env.n}")`)
30-
}
31-
32-
if (env.sig) {
33-
properties.push(`sig: exportedVars.sigFunction("${env.sig}")`)
34-
}
35-
36-
// Triggers permission errors if we don't remove it (added by YouTube.js), as sessionStorage isn't accessible in sandboxed cross-origin iframes
37-
const modifiedOutput = data.output.replace('const window = Object.assign({}, globalThis);', '')
38-
39-
const code = `${modifiedOutput}\nreturn {${properties.join(', ')}}`
26+
const code = data.output
4027

4128
// Generate a unique ID, as there may be multiple eval calls going on at the same time (e.g. DASH manifest generation)
4229
const messageId = process.env.IS_ELECTRON || crypto.randomUUID
@@ -106,7 +93,6 @@ async function createInnertube({ withPlayer = false, location = undefined, safet
10693
user_agent: navigator.userAgent,
10794

10895
retrieve_player: !!withPlayer,
109-
player_id: '9f4cc5e4',
11096
location: location,
11197
enable_safety_mode: !!safetyMode,
11298
client_type: clientType,

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9645,10 +9645,10 @@ yocto-queue@^1.0.0:
96459645
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-1.2.1.tgz#36d7c4739f775b3cbc28e6136e21aa057adec418"
96469646
integrity sha512-AyeEbWOu/TAXdxlV9wmGcR0+yh2j3vYPGOECcIj2S7MkrLyC7ne+oye2BKTItt0ii2PHk4cDy+95+LshzbXnGg==
96479647

9648-
youtubei.js@^16.0.0:
9649-
version "16.0.0"
9650-
resolved "https://registry.yarnpkg.com/youtubei.js/-/youtubei.js-16.0.0.tgz#b88537c4d89468216c50058cd295ce3c1da8adf2"
9651-
integrity sha512-aMx+ulnrxzsgVsxTr7gbBVnIjti2NQUlMwCoo1/MzICCJS3iMLOPUFdo7bSpwskL6ljzQ/LxmmB4WQC3FtkBlA==
9648+
youtubei.js@^17.0.1:
9649+
version "17.0.1"
9650+
resolved "https://registry.yarnpkg.com/youtubei.js/-/youtubei.js-17.0.1.tgz#83bb0afded5b1c2e69fffbed9beefa7c8d2fcec8"
9651+
integrity sha512-1lO4b8UqMDzE0oh2qEGzbBOd4UYRdxn/4PdpRM7BGTHxM6ddsEsKZTu90jp8V9FHVgC2h1UirQyqoqLiKwl+Zg==
96529652
dependencies:
96539653
"@bufbuild/protobuf" "^2.0.0"
96549654
meriyah "^6.1.4"

0 commit comments

Comments
 (0)