Skip to content

Commit

Permalink
Deleted import for y2dl.js lib.
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Flores committed Apr 9, 2024
1 parent 5c7772c commit 6093090
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions plugins/downloader-yta.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import fetch from 'node-fetch';
import yts from 'yt-search';
import ytdl from 'ytdl-core';
import axios from 'axios'
import {bestFormat, getUrlDl} from '../lib/y2dl.js';

const handler = async (m, {text, conn, args, usedPrefix, command}) => {
const datas = global
Expand Down Expand Up @@ -39,8 +38,6 @@ const handler = async (m, {text, conn, args, usedPrefix, command}) => {
}
const { key } = await conn.sendMessage(m.chat, {text: tradutor.texto4}, {quoted: m});
try {
const formats = await bestFormat(youtubeLink, 'audio');
const dl_url = await getUrlDl(formats.url);
const buff = await getBuffer(dl_url.download);
const yt_1 = await youtubedl(youtubeLink).catch(async (_) => await youtubedlv2(youtubeLink));
const ttl_1 = `${yt_1?.title ? yt_1.title : 'Tu_audio_descargado'}`;
Expand Down
3 changes: 0 additions & 3 deletions plugins/downloader-ytv.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import fetch from 'node-fetch';
import yts from 'yt-search';
import ytdl from 'ytdl-core';
import axios from 'axios';
import {bestFormat, getUrlDl} from '../lib/y2dl.js';


const handler = async (m, {conn, args, usedPrefix, command}) => {
const datas = global
Expand Down Expand Up @@ -43,7 +41,6 @@ const handler = async (m, {conn, args, usedPrefix, command}) => {
}
const { key } = await m.reply(tradutor.texto5);
try {
const formats = await bestFormat(youtubeLink, 'video');
const buff = await getBuffer(formats.url);
const yt_1 = await youtubedl(youtubeLink).catch(async (_) => await youtubedlv2(youtubeLink));
const ttl_1 = `${yt_1?.title ? yt_1.title : 'Tu_video_descargado'}`;
Expand Down

0 comments on commit 6093090

Please sign in to comment.