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; }