From a35318cea813d0ec6d9953316ee3ef273437c37a Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Wed, 15 Apr 2020 10:20:45 +0300 Subject: [PATCH] updated ytdl and streamOps --- package-lock.json | 8 ++++---- package.json | 2 +- src/struct/config/streamConfig.ts | 11 ++++++++--- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index da25ea44..fc9656bf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3351,11 +3351,11 @@ } }, "ytdl-core": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ytdl-core/-/ytdl-core-2.0.1.tgz", - "integrity": "sha512-PZBcVzQpkBxi9OQh9I4QIrYNmkbM/zh4QJQuxE8I6RojLUVYkkps5iLYquE3H+pwmBXtEXQMDJfVRajgdiz+iA==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ytdl-core/-/ytdl-core-2.1.0.tgz", + "integrity": "sha512-UmblkTLSV0v3y9I3oqrZkllyT0FnK1Owm7WftEkcTIlqnjip1mnyaLICz0P6+W3Ji/AtBFSwy/mLG2dlEvP6Vw==", "requires": { - "html-entities": "^1.1.3", + "html-entities": "^1.3.1", "m3u8stream": "^0.6.3", "miniget": "^1.7.0", "sax": "^1.1.3" diff --git a/package.json b/package.json index 1c33b93f..6e84d19e 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,6 @@ "simple-youtube-api": "^5.2.1", "video-thumbnail-url": "^1.0.1", "yt-search": "^1.1.2", - "ytdl-core": "^2.0.1" + "ytdl-core": "^2.1.0" } } diff --git a/src/struct/config/streamConfig.ts b/src/struct/config/streamConfig.ts index dded2d65..63d2d666 100644 --- a/src/struct/config/streamConfig.ts +++ b/src/struct/config/streamConfig.ts @@ -1,4 +1,9 @@ module.exports = { - ytdlOptions: { filter: "audio", highWaterMark: 1 << 25, volume: false, begin: null }, - options: { seek: 0, bitrate: 1024, passes: 10, volume: 1, type: "converted" } -}; \ No newline at end of file + ytdlOptions: { filter: "audio", highWaterMark: 1 << 10, volume: false }, + options: { + seek: 0, + bitrate: 1024, + volume: 1, + type: "converted", + }, +};