From bd2cf64005c5dd8d316e6e9cf47fec5b0183f91d Mon Sep 17 00:00:00 2001 From: Michal Orlik Date: Sat, 9 Nov 2024 00:12:54 +0100 Subject: [PATCH] fix: change ytdl-core to fix youtube search --- package.json | 2 +- src/systems/songs.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 927d36126c8..ec870eef361 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "ws": "8.15.0", "xregexp": "5.1.1", "yargs": "17.7.2", - "ytdl-core": "4.11.5", + "@distube/ytdl-core": "latest", "ytpl": "2.3.0", "ytsr": "3.8.4", "zod": "^3.22.4" diff --git a/src/systems/songs.ts b/src/systems/songs.ts index 1456ebf875f..7c5e82fa2bd 100644 --- a/src/systems/songs.ts +++ b/src/systems/songs.ts @@ -10,7 +10,7 @@ import io from 'socket.io'; import { Brackets, In, Like, } from 'typeorm'; -import ytdl from 'ytdl-core'; +import ytdl from '@distube/ytdl-core'; import ytpl from 'ytpl'; import ytsr from 'ytsr'; import { z } from 'zod';