UI/UX: Adiciona campo opcional para colagem manual de transcrição no VideoMind

This commit is contained in:
2026-06-05 22:19:33 +00:00
parent 281005a8bc
commit 3781c848da
2395 changed files with 242184 additions and 20 deletions
+17
View File
@@ -0,0 +1,17 @@
const axios = require('axios');
async function test() {
try {
const res = await axios.get('https://api.allorigins.win/raw?url=' + encodeURIComponent('https://www.youtube.com/watch?v=0g7qSGQIoxw'));
const html = res.data;
const match = html.match(/"captionTracks":(\[.*?\])/);
if (match) {
console.log("ACHOU CAPTIONS!");
console.log(match[1].substring(0, 500));
} else {
console.log("NÃO ACHOU CAPTIONS NO HTML PROXY");
}
} catch (err) {
console.error("Erro no proxy:", err.message);
}
}
test();