randydev commited on
Commit
b1f6759
·
verified ·
1 Parent(s): a98e42a

Update lib/scrapper.js

Browse files
Files changed (1) hide show
  1. lib/scrapper.js +13 -3
lib/scrapper.js CHANGED
@@ -13,7 +13,17 @@ const ParametersUrl = function (parameters) {
13
 
14
  const AuthorOriginal = function (response) {
15
  if (typeof response.data === "object") {
16
- response.data.author = "xtdevs" || response.data.creator = "xtdevs";
 
 
 
 
 
 
 
 
 
 
17
  return response.data;
18
  } else {
19
  console.log("the return value was not a json object");
@@ -22,8 +32,8 @@ const AuthorOriginal = function (response) {
22
  };
23
 
24
  const TwitterDownloader = async (url) => {
25
- data = await gifted.giftedtwitter(url);
26
- return AuthorOriginal(data);
27
  };
28
 
29
  const XnxxDownloader = async (query) => {
 
13
 
14
  const AuthorOriginal = function (response) {
15
  if (typeof response.data === "object") {
16
+ response.data.author = "xtdevs";
17
+ return response.data;
18
+ } else {
19
+ console.log("the return value was not a json object");
20
+ return null;
21
+ }
22
+ };
23
+
24
+ const CreatorOriginal = function (response) {
25
+ if (typeof response.data === "object") {
26
+ response.data.creator = "xtdevs";
27
  return response.data;
28
  } else {
29
  console.log("the return value was not a json object");
 
32
  };
33
 
34
  const TwitterDownloader = async (url) => {
35
+ const data = await gifted.giftedtwitter(url);
36
+ return CreatorOriginal(data);
37
  };
38
 
39
  const XnxxDownloader = async (query) => {