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", "homepage": "https://gitdab.com/Cynosphere/HiddenPhox#readme",
"dependencies": { "dependencies": {
"@ctrl/tinycolor": "^3.4.1", "@ctrl/tinycolor": "^3.4.1",
"@distube/ytdl-core": "^4.11.8",
"@projectdysnomia/dysnomia": "^0.1.1", "@projectdysnomia/dysnomia": "^0.1.1",
"better-ytdl-core": "^1.0.1",
"dumpy": "github:Cynosphere/dumpy.js", "dumpy": "github:Cynosphere/dumpy.js",
"google-images": "^2.1.0", "google-images": "^2.1.0",
"jimp": "^0.16.1", "jimp": "^0.16.1",

View file

@ -4,12 +4,12 @@ dependencies:
'@ctrl/tinycolor': '@ctrl/tinycolor':
specifier: ^3.4.1 specifier: ^3.4.1
version: 3.4.1 version: 3.4.1
'@distube/ytdl-core':
specifier: ^4.11.8
version: 4.11.8
'@projectdysnomia/dysnomia': '@projectdysnomia/dysnomia':
specifier: ^0.1.1 specifier: ^0.1.1
version: 0.1.1 version: 0.1.1
better-ytdl-core:
specifier: ^1.0.1
version: 1.0.1
dumpy: dumpy:
specifier: github:Cynosphere/dumpy.js specifier: github:Cynosphere/dumpy.js
version: github.com/Cynosphere/dumpy.js/5fc22353cdcb97084bab572266390e780d9f7a7b version: github.com/Cynosphere/dumpy.js/5fc22353cdcb97084bab572266390e780d9f7a7b
@ -74,6 +74,15 @@ packages:
engines: {node: '>=10'} engines: {node: '>=10'}
dev: false 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: /@eslint/eslintrc@0.4.1:
resolution: {integrity: sha512-5v7TDE9plVhvxQeWLXDTvFvJBdH6pEsdnl2g/dAptmuFEPedQ4Erq5rsDsX+mvAM610IhNaO2W5V1dOOnDKxkQ==} resolution: {integrity: sha512-5v7TDE9plVhvxQeWLXDTvFvJBdH6pEsdnl2g/dAptmuFEPedQ4Erq5rsDsX+mvAM610IhNaO2W5V1dOOnDKxkQ==}
engines: {node: ^10.12.0 || >=12.0.0} engines: {node: ^10.12.0 || >=12.0.0}
@ -647,15 +656,6 @@ packages:
dev: false dev: false
optional: true 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: /bl@4.1.0:
resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==}
dependencies: dependencies:

View file

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