Nexchan commited on
Commit
7f2798b
·
verified ·
1 Parent(s): 73af98d

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +0 -16
index.js CHANGED
@@ -262,22 +262,6 @@ app.get('/nhentai', async (req, res) => {
262
  });
263
 
264
 
265
- async function downloadFromUrl(url, filePath) {
266
- const writer = fs.createWriteStream(filePath);
267
-
268
- const response = await axios({
269
- url,
270
- method: 'GET',
271
- responseType: 'stream'
272
- });
273
-
274
- response.data.pipe(writer);
275
-
276
- return new Promise((resolve, reject) => {
277
- writer.on('finish', resolve);
278
- writer.on('error', reject);
279
- });
280
- }
281
 
282
 
283
  // Fungsi untuk mendownload dari URL
 
262
  });
263
 
264
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
265
 
266
 
267
  // Fungsi untuk mendownload dari URL