randydev commited on
Commit
aade1ec
·
verified ·
1 Parent(s): a0e8df4

Update lib/scrapper.js

Browse files
Files changed (1) hide show
  1. lib/scrapper.js +2 -5
lib/scrapper.js CHANGED
@@ -22,13 +22,10 @@ async function PinterestDL(search) {
22
  }
23
  }
24
 
25
- async function IzreCustom(endpoint, params = {}) {
26
  try {
27
  const urls = ParametersUrl(endpoint);
28
-
29
- const queryString = new URLSearchParams(params).toString();
30
- const url = `${urls}?${queryString}`;
31
-
32
  const response = await axios.get(url);
33
  return AuthorOriginal(response);
34
  } catch (error) {
 
22
  }
23
  }
24
 
25
+ async function IzreCustom(endpoint, params, search) {
26
  try {
27
  const urls = ParametersUrl(endpoint);
28
+ const url = urls + `?${params}=${encodeURIComponent(search)}`;
 
 
 
29
  const response = await axios.get(url);
30
  return AuthorOriginal(response);
31
  } catch (error) {