Skip to content

Commit 20989dd

Browse files
committed
fix: switch from @nuclearplayer/ytdl-core to @distube/ytdl-core in package.json and update yarn.lock
1 parent 39d3cea commit 20989dd

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"@discordjs/rest": "1.0.1",
9191
"@discordjs/voice": "0.18.0",
9292
"@distube/ytsr": "^2.0.4",
93-
"@nuclearplayer/ytdl-core": "^4.16.11",
93+
"@distube/ytdl-core": "^4.16.11",
9494
"@prisma/client": "4.16.0",
9595
"@types/libsodium-wrappers": "^0.7.9",
9696
"array-shuffle": "^3.0.0",

src/services/player.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {VoiceChannel, Snowflake} from 'discord.js';
22
import {Readable} from 'stream';
33
import hasha from 'hasha';
4-
import ytdl, {videoFormat} from '@nuclearplayer/ytdl-core';
54
import {WriteStream} from 'fs-capacitor';
65
import ffmpeg from 'fluent-ffmpeg';
76
import shuffle from 'array-shuffle';
@@ -21,6 +20,7 @@ import debug from '../utils/debug.js';
2120
import {getGuildSettings} from '../utils/get-guild-settings.js';
2221
import {buildPlayingMessageEmbed} from '../utils/build-embed.js';
2322
import {Setting} from '@prisma/client';
23+
import ytdl, {videoFormat} from '@distube/ytdl-core';
2424

2525
export enum MediaSource {
2626
Youtube,

yarn.lock

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,19 @@
162162
tslib "^2.5.0"
163163
ws "^8.13.0"
164164

165+
"@distube/ytdl-core@^4.16.11":
166+
version "4.16.11"
167+
resolved "https://registry.yarnpkg.com/@distube/ytdl-core/-/ytdl-core-4.16.11.tgz#1f482858df35b6becf1a69766ef7e4e96815923e"
168+
integrity sha512-yMQiicS5CuuTBsROb1iCRM09VZVL98EJ40LEtC7dMrgOWaHuJIwaL1w/ddC9DTNOUEV90T/1xYYLqM6Oc7q9kQ==
169+
dependencies:
170+
http-cookie-agent "^7.0.1"
171+
https-proxy-agent "^7.0.6"
172+
m3u8stream "^0.8.6"
173+
miniget "^4.2.3"
174+
sax "^1.4.1"
175+
tough-cookie "^5.1.2"
176+
undici "^7.8.0"
177+
165178
"@distube/ytsr@^2.0.4":
166179
version "2.0.4"
167180
resolved "https://registry.yarnpkg.com/@distube/ytsr/-/ytsr-2.0.4.tgz#873b7ca767b5ff362bc0e136ae0d9ca5cbde8f7b"
@@ -399,19 +412,6 @@
399412
"@nodelib/fs.scandir" "2.1.5"
400413
fastq "^1.6.0"
401414

402-
"@nuclearplayer/ytdl-core@^4.16.11":
403-
version "4.16.11"
404-
resolved "https://registry.yarnpkg.com/@nuclearplayer/ytdl-core/-/ytdl-core-4.16.11.tgz#be0146c757df954759968386b7119017443bbd7b"
405-
integrity sha512-Lqaq1YigUtEIH4Tfp8Ce8FwUL4Y2HYkelUZyHpn0f3uPO69HGdmfe9FwoHzqmBLyWIOB0uXANhFDhK/+T7DAoQ==
406-
dependencies:
407-
http-cookie-agent "^7.0.1"
408-
https-proxy-agent "^7.0.6"
409-
m3u8stream "^0.8.6"
410-
miniget "^4.2.3"
411-
sax "^1.4.1"
412-
tough-cookie "^5.1.2"
413-
undici "^7.8.0"
414-
415415
"@octokit/auth-token@^2.4.4":
416416
version "2.5.0"
417417
resolved "https://registry.yarnpkg.com/@octokit/auth-token/-/auth-token-2.5.0.tgz#27c37ea26c205f28443402477ffd261311f21e36"

0 commit comments

Comments
 (0)