diff --git a/pipdeps.js b/pipdeps.js new file mode 100644 index 000000000..7baba9389 --- /dev/null +++ b/pipdeps.js @@ -0,0 +1,31 @@ +import { exec } from 'child_process'; + +function runCommand(command, description) { + return new Promise((resolve, reject) => { + console.log(`Ejecutando: ${description}...`); + + exec(command, (error, stdout, stderr) => { + if (error) { + console.error(`Error al ejecutar ${description}:`, error); + reject(error); + return; + } + if (stderr) { + console.error(`Stderr al ejecutar ${description}:`, stderr); + } + console.log(`Resultado de ${description}:`, stdout); + resolve(stdout); + }); + }); +} + +// Agregar mas lineas para mas paquetes +async function installPythonDependencies() { + try { + await runCommand('pip install -U --pre "yt-dlp[default]"', 'Instalando YT-DLP'); + } catch (error) { + console.error('Error Instalando Modulos Opcionales, Algunos Plugins No Funcionaran.', error); + } +} + +installPythonDependencies();