scnario commited on
Commit
1fbc3a9
·
verified ·
1 Parent(s): 3e9c4e9

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +2 -7
server.js CHANGED
@@ -43,11 +43,6 @@ async function yt5sIo(url) {
43
  if (!videoUrl) throw new Error("Tidak ada link download yang tersedia.");
44
  return { videoUrl };
45
 
46
- } else if (/^(https?:\/\/)?(www\.)?instagram\.com\/(p|reel)\/.+/i.test(url)) {
47
- const videoUrl = $('a[title="Download Video"]').attr("href");
48
- if (!videoUrl) throw new Error("Tidak ada link download yang tersedia.");
49
- return { videoUrl };
50
-
51
  } else {
52
  throw new Error("URL tidak valid. Harap masukkan URL Facebook atau Instagram.");
53
  }
@@ -131,7 +126,7 @@ const twitter = {
131
  if(!regex.test(url)) return "Invalid url";
132
  const match = url.match(regex);
133
  return match ? match[1] : null;
134
- }
135
  video: async(url) => {
136
  const id = twitter.extract(url)
137
  const res = (await axios.get(`https://tweeload.com/download/${id}`)).data
@@ -143,7 +138,7 @@ const twitter = {
143
  return {
144
  link
145
  }
146
- }
147
  }
148
 
149
  app.all("/", async (req, res) => {
 
43
  if (!videoUrl) throw new Error("Tidak ada link download yang tersedia.");
44
  return { videoUrl };
45
 
 
 
 
 
 
46
  } else {
47
  throw new Error("URL tidak valid. Harap masukkan URL Facebook atau Instagram.");
48
  }
 
126
  if(!regex.test(url)) return "Invalid url";
127
  const match = url.match(regex);
128
  return match ? match[1] : null;
129
+ },
130
  video: async(url) => {
131
  const id = twitter.extract(url)
132
  const res = (await axios.get(`https://tweeload.com/download/${id}`)).data
 
138
  return {
139
  link
140
  }
141
+ },
142
  }
143
 
144
  app.all("/", async (req, res) => {