diff --git a/api/package.json b/api/package.json index 2d568c21..547fcc7e 100644 --- a/api/package.json +++ b/api/package.json @@ -1,7 +1,7 @@ { "name": "@imput/cobalt-api", "description": "save what you love", - "version": "10.9.1", + "version": "10.9.2", "author": "imput", "exports": "./src/cobalt.js", "type": "module", @@ -39,7 +39,7 @@ "set-cookie-parser": "2.6.0", "undici": "^5.19.1", "url-pattern": "1.0.3", - "youtubei.js": "^13.3.0", + "youtubei.js": "^13.4.0", "zod": "^3.23.8" }, "optionalDependencies": { diff --git a/api/src/processing/services/youtube.js b/api/src/processing/services/youtube.js index e1cbf018..e184ff1f 100644 --- a/api/src/processing/services/youtube.js +++ b/api/src/processing/services/youtube.js @@ -72,13 +72,15 @@ const cloneInnertube = async (customFetch, useSession) => { const session = new Session( innertube.session.context, - innertube.session.key, + innertube.session.api_key, innertube.session.api_version, innertube.session.account_index, + innertube.session.config_data, innertube.session.player, cookie, customFetch ?? innertube.session.http.fetch, - innertube.session.cache + innertube.session.cache, + sessionTokens?.potoken ); const yt = new Innertube(session); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1f30045d..f1162831 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -59,8 +59,8 @@ importers: specifier: 1.0.3 version: 1.0.3 youtubei.js: - specifier: ^13.3.0 - version: 13.3.0 + specifier: ^13.4.0 + version: 13.4.0 zod: specifier: ^3.23.8 version: 3.23.8 @@ -1471,8 +1471,8 @@ packages: resolution: {integrity: sha512-bZsjR/iRjl1Nk1UkjGpAzLNfQtzuijhn2g+pbZb98HQ1Gk8vM9hfbxeMBP+M2/UUdwj0RqGG3mlvk2MsAqwvEw==} engines: {node: 20 || >=22} - jintr@3.3.0: - resolution: {integrity: sha512-ZsaajJ4Hr5XR0tSPhOZOTjFhxA0qscKNSOs41NRjx7ZOGwpfdp8NKIBEUtvUPbA37JXyv1sJlgeOOZHjr3h76Q==} + jintr@3.3.1: + resolution: {integrity: sha512-nnOzyhf0SLpbWuZ270Omwbj5LcXUkTcZkVnK8/veJXtSZOiATM5gMZMdmzN75FmTyj+NVgrGaPdH12zIJ24oIA==} joycon@3.1.1: resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==} @@ -2289,8 +2289,8 @@ packages: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} - youtubei.js@13.3.0: - resolution: {integrity: sha512-tbl7rxltpgKoSsmfGUe9JqWUAzv6HFLqrOn0N85EbTn5DLt24EXrjClnXdxyr3PBARMJ3LC4vbll100a0ABsYw==} + youtubei.js@13.4.0: + resolution: {integrity: sha512-+fmIZU/dWAjsROONrASy1REwVpy6umAPVuoNLr/4iNmZXl84LyBef0n3hrd1Vn9035EuINToGyQcBmifwUEemA==} zod@3.23.8: resolution: {integrity: sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==} @@ -3522,7 +3522,7 @@ snapshots: dependencies: '@isaacs/cliui': 8.0.2 - jintr@3.3.0: + jintr@3.3.1: dependencies: acorn: 8.14.0 @@ -4245,10 +4245,10 @@ snapshots: yocto-queue@0.1.0: {} - youtubei.js@13.3.0: + youtubei.js@13.4.0: dependencies: '@bufbuild/protobuf': 2.2.5 - jintr: 3.3.0 + jintr: 3.3.1 tslib: 2.6.3 undici: 5.28.4