@@ -3,8 +3,8 @@ import axios from 'axios';
3
3
import { youtubedl , youtubedlv2 } from '@bochilteam/scraper' ;
4
4
import fs from "fs" ;
5
5
import yts from 'yt-search' ;
6
- import ytmp33 from '../src/libraries/ytmp33.js' ;
7
- import ytmp44 from '../src/libraries/ytmp44.js' ;
6
+ // import ytmp33 from '../src/libraries/ytmp33.js';
7
+ // import ytmp44 from '../src/libraries/ytmp44.js';
8
8
import ytdl from 'ytdl-core' ;
9
9
10
10
let limit1 = 100 ;
@@ -35,7 +35,7 @@ const handler = async (m, { conn, command, args, text, usedPrefix }) => {
35
35
conn . sendMessage ( m . chat , { image : { url : yt_play [ 0 ] . thumbnail } , caption : texto1 } , { quoted : m } ) ;
36
36
37
37
if ( [ 'play' , 'play3' , 'playdoc' ] . includes ( command ) ) {
38
- try {
38
+ /* try {
39
39
const { status, resultados, error } = await ytmp33(yt_play[0].url);
40
40
if (!status) throw new Error(error);
41
41
@@ -59,7 +59,7 @@ const handler = async (m, { conn, command, args, text, usedPrefix }) => {
59
59
return;
60
60
}
61
61
} catch (error) {
62
- console . log ( 'Fallo el 1: ' + error )
62
+ console.log('Fallo el 1: ' + error)*/
63
63
try {
64
64
const audio = `${ global . MyApiRestBaseUrl } /api/v2/ytmp3?url=${ yt_play [ 0 ] . url } &apikey=${ global . MyApiRestApikey } ` ;
65
65
const ttl = await yt_play [ 0 ] . title ;
@@ -105,12 +105,12 @@ const handler = async (m, { conn, command, args, text, usedPrefix }) => {
105
105
} catch {
106
106
throw tradutor . texto4 ;
107
107
}
108
- }
108
+ // }
109
109
}
110
110
}
111
111
112
112
if ( [ 'play2' , 'play4' , 'playdoc2' ] . includes ( command ) ) {
113
- try {
113
+ /* try {
114
114
const { status, resultados, error } = await ytmp44(yt_play[0].url);
115
115
if (!status) throw new Error(error);
116
116
@@ -133,7 +133,7 @@ const handler = async (m, { conn, command, args, text, usedPrefix }) => {
133
133
await conn.sendMessage(m.chat, { video: buff_vid, mimetype: 'video/mp4', fileName: ttl2 + `.mp4` }, { quoted: m });
134
134
return;
135
135
}
136
- } catch ( error ) {
136
+ } catch (error) {*/
137
137
try {
138
138
const video = `${ global . MyApiRestBaseUrl } /api/v2/ytmp4?url=${ yt_play [ 0 ] . url } &apikey=${ global . MyApiRestApikey } ` ;
139
139
const ttl2 = await yt_play [ 0 ] . title ;
@@ -179,7 +179,7 @@ const handler = async (m, { conn, command, args, text, usedPrefix }) => {
179
179
} catch {
180
180
throw tradutor . texto6 ;
181
181
}
182
- }
182
+ // }
183
183
}
184
184
}
185
185
} ;
0 commit comments