switch ytdl-core forks again...

This commit is contained in:
Cynthia Foxwell 2023-04-08 14:12:52 -06:00
parent 06646e01f5
commit 7b289b0863
3 changed files with 18 additions and 17 deletions

View File

@ -19,8 +19,8 @@
"homepage": "https://gitdab.com/Cynosphere/HiddenPhox#readme",
"dependencies": {
"@ctrl/tinycolor": "^3.4.1",
"@distube/ytdl-core": "^4.11.8",
"@projectdysnomia/dysnomia": "^0.1.1",
"better-ytdl-core": "^1.0.1",
"dumpy": "github:Cynosphere/dumpy.js",
"google-images": "^2.1.0",
"jimp": "^0.16.1",

View File

@ -4,12 +4,12 @@ dependencies:
'@ctrl/tinycolor':
specifier: ^3.4.1
version: 3.4.1
'@distube/ytdl-core':
specifier: ^4.11.8
version: 4.11.8
'@projectdysnomia/dysnomia':
specifier: ^0.1.1
version: 0.1.1
better-ytdl-core:
specifier: ^1.0.1
version: 1.0.1
dumpy:
specifier: github:Cynosphere/dumpy.js
version: github.com/Cynosphere/dumpy.js/5fc22353cdcb97084bab572266390e780d9f7a7b
@ -74,6 +74,15 @@ packages:
engines: {node: '>=10'}
dev: false
/@distube/ytdl-core@4.11.8:
resolution: {integrity: sha512-OXdbizr5mU2qVbG2loQ7WfFDBF9xafPSTGptpvjTZRf8pbWXxfwvE+9udoB9Ijh0rfNnXaMwc5p6uTf6t7Dlhg==}
engines: {node: '>=12'}
dependencies:
m3u8stream: 0.8.6
miniget: 4.2.2
sax: 1.2.4
dev: false
/@eslint/eslintrc@0.4.1:
resolution: {integrity: sha512-5v7TDE9plVhvxQeWLXDTvFvJBdH6pEsdnl2g/dAptmuFEPedQ4Erq5rsDsX+mvAM610IhNaO2W5V1dOOnDKxkQ==}
engines: {node: ^10.12.0 || >=12.0.0}
@ -647,15 +656,6 @@ packages:
dev: false
optional: true
/better-ytdl-core@1.0.1:
resolution: {integrity: sha512-ADe5bTBprd0Ky3cMChQ0AsOAxkvB+ugmqjoUCd5lz76mXe2Cfkq2x4qvQcUq7+R0GHX1p0QGggfUZJ5XvbI+yw==}
engines: {node: '>=12'}
dependencies:
m3u8stream: 0.8.6
miniget: 4.2.2
sax: 1.2.4
dev: false
/bl@4.1.0:
resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==}
dependencies:

View File

@ -1,6 +1,6 @@
const {Collection} = require("@projectdysnomia/dysnomia");
const ytdl = require("better-ytdl-core");
const ytdl = require("@distube/ytdl-core");
const ffprobe = require("node-ffprobe");
const Command = require("../lib/command.js");
@ -398,9 +398,10 @@ async function youtubeSearch(msg, str) {
display: `${parseHtmlEntities(item.snippet.title).substring(0, 99)}${
parseHtmlEntities(item.snippet.title).length > 99 ? "…" : ""
}`,
description: `from ${parseHtmlEntities(item.snippet.channelTitle).substring(0, 95)}${
parseHtmlEntities(item.snippet.channelTitle).length > 95 ? "…" : ""
}`,
description: `from ${parseHtmlEntities(item.snippet.channelTitle).substring(
0,
95
)}${parseHtmlEntities(item.snippet.channelTitle).length > 95 ? "…" : ""}`,
}));
try {