mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-23 21:58:27 +00:00
api: update youtubei.js to 15.0.0, use main package again
undici update was merged upstream :D
This commit is contained in:
parent
3f785e7cbe
commit
95efd71eac
@ -26,7 +26,6 @@
|
||||
"@datastructures-js/priority-queue": "^6.3.1",
|
||||
"@imput/psl": "^2.0.4",
|
||||
"@imput/version-info": "workspace:^",
|
||||
"@imput/youtubei.js": "^14.0.1",
|
||||
"content-disposition-header": "0.6.0",
|
||||
"cors": "^2.8.5",
|
||||
"dotenv": "^16.0.1",
|
||||
@ -40,6 +39,7 @@
|
||||
"set-cookie-parser": "2.6.0",
|
||||
"undici": "^6.21.3",
|
||||
"url-pattern": "1.0.3",
|
||||
"youtubei.js": "15.0.0",
|
||||
"zod": "^3.23.8"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Constants } from "@imput/youtubei.js";
|
||||
import { Constants } from "youtubei.js";
|
||||
import { services } from "../processing/service-config.js";
|
||||
import { updateEnv, canonicalEnv, env as currentEnv } from "../config.js";
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import HLS from "hls-parser";
|
||||
|
||||
import { fetch } from "undici";
|
||||
import { Innertube, Session } from "@imput/youtubei.js";
|
||||
import { Innertube, Session } from "youtubei.js";
|
||||
|
||||
import { env } from "../../config.js";
|
||||
import { getCookie } from "../cookie/manager.js";
|
||||
@ -224,7 +224,7 @@ export default async function (o) {
|
||||
|
||||
let info;
|
||||
try {
|
||||
info = await yt.getBasicInfo(o.id, innertubeClient);
|
||||
info = await yt.getBasicInfo(o.id, { client: innertubeClient });
|
||||
} catch (e) {
|
||||
if (e?.info) {
|
||||
let errorInfo;
|
||||
|
@ -19,9 +19,6 @@ importers:
|
||||
'@imput/version-info':
|
||||
specifier: workspace:^
|
||||
version: link:../packages/version-info
|
||||
'@imput/youtubei.js':
|
||||
specifier: ^14.0.1
|
||||
version: 14.0.1
|
||||
content-disposition-header:
|
||||
specifier: 0.6.0
|
||||
version: 0.6.0
|
||||
@ -61,6 +58,9 @@ importers:
|
||||
url-pattern:
|
||||
specifier: 1.0.3
|
||||
version: 1.0.3
|
||||
youtubei.js:
|
||||
specifier: 15.0.0
|
||||
version: 15.0.0
|
||||
zod:
|
||||
specifier: ^3.23.8
|
||||
version: 3.23.8
|
||||
@ -563,9 +563,6 @@ packages:
|
||||
'@imput/psl@2.0.4':
|
||||
resolution: {integrity: sha512-vuy76JX78/DnJegLuJoLpMmw11JTA/9HvlIADg/f8dDVXyxbh0jnObL0q13h+WvlBO4Gk26Pu8sUa7/h0JGQig==}
|
||||
|
||||
'@imput/youtubei.js@14.0.1':
|
||||
resolution: {integrity: sha512-m1/5JEQOYnhUZDluQCD8W5eGZAkMsz79PZUzFFgQlc74noj5xiC45ytQXl1tYNnN9mLQ042S5B/yY8C58Rqipw==}
|
||||
|
||||
'@isaacs/cliui@8.0.2':
|
||||
resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==}
|
||||
engines: {node: '>=12'}
|
||||
@ -2188,6 +2185,9 @@ packages:
|
||||
resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}
|
||||
engines: {node: '>=10'}
|
||||
|
||||
youtubei.js@15.0.0:
|
||||
resolution: {integrity: sha512-giPZREn+q0z8Jr45NUcJUXE7QA2+UD2jx5FR+ULdnexvtHg5uQZr9Am8aYcECPKzbBNe6ksBD1yT4SKNbhpRqA==}
|
||||
|
||||
zimmerframe@1.1.2:
|
||||
resolution: {integrity: sha512-rAbqEGa8ovJy4pyBxZM70hg4pE6gDgaQ0Sl9M3enG3I0d6H4XSAM3GeNGLKnsBpuijUow064sf7ww1nutC5/3w==}
|
||||
|
||||
@ -2428,13 +2428,6 @@ snapshots:
|
||||
dependencies:
|
||||
punycode: 2.3.1
|
||||
|
||||
'@imput/youtubei.js@14.0.1':
|
||||
dependencies:
|
||||
'@bufbuild/protobuf': 2.2.5
|
||||
jintr: 3.3.1
|
||||
tslib: 2.6.3
|
||||
undici: 6.21.3
|
||||
|
||||
'@isaacs/cliui@8.0.2':
|
||||
dependencies:
|
||||
string-width: 5.1.2
|
||||
@ -4050,6 +4043,13 @@ snapshots:
|
||||
|
||||
yocto-queue@0.1.0: {}
|
||||
|
||||
youtubei.js@15.0.0:
|
||||
dependencies:
|
||||
'@bufbuild/protobuf': 2.2.5
|
||||
jintr: 3.3.1
|
||||
tslib: 2.6.3
|
||||
undici: 6.21.3
|
||||
|
||||
zimmerframe@1.1.2: {}
|
||||
|
||||
zod@3.23.8: {}
|
||||
|
Loading…
Reference in New Issue
Block a user