From f1dfd015110cc489660dbbc896042793dedf93f5 Mon Sep 17 00:00:00 2001 From: admtracksteel Date: Fri, 5 Jun 2026 14:09:41 +0000 Subject: [PATCH] Suporte a URLs de Live e Shorts no VideoMind --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index d7a6639..22848a6 100644 --- a/server.js +++ b/server.js @@ -696,7 +696,7 @@ app.delete('/api/comics/projects/:id', requireAuth, async (req, res) => { // ROTAS DO VIDEOMIND (TRANSCRIÇÃO E ANÁLISE DE VÍDEO) // ============================================================ function getYouTubeId(url) { - const regExp = /^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/; + const regExp = /^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=|live\/|shorts\/)([^#\&\?]*).*/; const match = url.match(regExp); return (match && match[2].length === 11) ? match[2] : null; }