Thumbnail fade effect and sync thumbnail loading.

This commit is contained in:
2025-10-24 21:11:43 +03:00
parent 343fe4739b
commit ba51482d07
3 changed files with 65 additions and 9 deletions

View File

@@ -173,7 +173,14 @@ app.post("/api/transfer", requireAuth, upload.single("torrent"), (req, res) => {
exec(cmd, (err) => {
if (err)
console.warn(`⚠️ Video thumbnail oluşturulamadı: ${err.message}`);
else console.log(`🎞️ Video thumbnail oluşturuldu: ${thumbnailPath}`);
else {
console.log(`🎞️ Video thumbnail oluşturuldu: ${thumbnailPath}`);
const data = JSON.stringify({
type: "fileUpdate",
path: path.relative(DOWNLOAD_DIR, entry.savePath)
});
wss.clients.forEach((c) => c.readyState === 1 && c.send(data));
}
});
// --- 2⃣ Resimler için thumbnail oluştur ---