randydev commited on
Commit
2168342
·
verified ·
1 Parent(s): 9356012

Update lib/all.js

Browse files
Files changed (1) hide show
  1. lib/all.js +8 -6
lib/all.js CHANGED
@@ -181,9 +181,10 @@ async function TeraboxV4Downloader(url) {
181
  "Referer": `https://teraboxdownloaderonline.com/player?url=${encodeURIComponent(url)}`,
182
  };
183
  const response = await axios.get(apiUrl, { headers });
184
- const dataString = JSON.stringify(response.data);
185
- const match = dataString.match(/#EXTINF:\d+,\s*(https[^\s]+)/);
186
-
 
187
  if (match && match[1]) {
188
  return {
189
  status: "success",
@@ -199,14 +200,15 @@ async function TeraboxV4Downloader(url) {
199
  status: "error",
200
  message: "Video URL tidak ditemukan.",
201
  };
202
- }
 
203
  } catch (error) {
204
  return {
205
  status: "error",
206
  message: "Terjadi kesalahan saat mengambil data.",
207
  error: error.message,
208
- };
209
- }
210
  }
211
 
212
  export {
 
181
  "Referer": `https://teraboxdownloaderonline.com/player?url=${encodeURIComponent(url)}`,
182
  };
183
  const response = await axios.get(apiUrl, { headers });
184
+ const dataString = response.data;
185
+ // const match = dataString.match(/#EXTINF:\d+,\s*(https[^\s]+)/);
186
+ return { resuls: dataString }
187
+ /*
188
  if (match && match[1]) {
189
  return {
190
  status: "success",
 
200
  status: "error",
201
  message: "Video URL tidak ditemukan.",
202
  };
203
+ }*/
204
+
205
  } catch (error) {
206
  return {
207
  status: "error",
208
  message: "Terjadi kesalahan saat mengambil data.",
209
  error: error.message,
210
+ };
211
+ }
212
  }
213
 
214
  export {