fullpwerr commited on
Commit
908b2dc
·
verified ·
1 Parent(s): b7b3447

Update lib/skrep.js

Browse files
Files changed (1) hide show
  1. lib/skrep.js +3 -3
lib/skrep.js CHANGED
@@ -36,7 +36,7 @@ async function ttt(link) {
36
  music: [{ url: data.data.music }],
37
  image: data.data.images,
38
  };
39
-
40
  if (res.image) {
41
  const outputDir = path.join(__dirname, "../tmp")
42
  await downloadImages(res.image, outputDir);
@@ -53,7 +53,7 @@ async function ttt(link) {
53
  if (slideResult) {
54
  res.video.push({ resolusi: "Slideshow", url: `https://fullperr-hutatools.hf.space/tmp/${FNvd}`});
55
  }
56
- }
57
  return res;
58
  } catch (e) {
59
  return { status: 500, message: e.message };
@@ -157,7 +157,7 @@ async function createSlideshow(imagesDir, outputVideo, audioFile) {
157
 
158
  console.log("✅ Video dengan audio selesai dibuat.");
159
  console.log("🧹 Folder gambar sementara dihapus.");
160
- resolve(outputVideo); // ✅ Return path video hasil!
161
  });
162
  });
163
  });
 
36
  music: [{ url: data.data.music }],
37
  image: data.data.images,
38
  };
39
+ /*
40
  if (res.image) {
41
  const outputDir = path.join(__dirname, "../tmp")
42
  await downloadImages(res.image, outputDir);
 
53
  if (slideResult) {
54
  res.video.push({ resolusi: "Slideshow", url: `https://fullperr-hutatools.hf.space/tmp/${FNvd}`});
55
  }
56
+ }*/
57
  return res;
58
  } catch (e) {
59
  return { status: 500, message: e.message };
 
157
 
158
  console.log("✅ Video dengan audio selesai dibuat.");
159
  console.log("🧹 Folder gambar sementara dihapus.");
160
+ resolve(outputVideo);
161
  });
162
  });
163
  });