randydev commited on
Commit
cc3d1da
·
verified ·
1 Parent(s): 3289e37

Update lib/twitter/twitter.js

Browse files
Files changed (1) hide show
  1. lib/twitter/twitter.js +2 -2
lib/twitter/twitter.js CHANGED
@@ -39,8 +39,8 @@ export async function twitterdl(url) {
39
  .filter((v) => v.content_type !== 'application/x-mpegURL');
40
 
41
  const result = Array.isArray(videos) ? videos : [videos];
42
-
43
- return TwitterDlSchema.parse(result);
44
  } catch (error) {
45
  console.error("Error fetching Twitter video:", error.message);
46
  throw new Error("Failed to fetch Twitter video. Please try again later.");
 
39
  .filter((v) => v.content_type !== 'application/x-mpegURL');
40
 
41
  const result = Array.isArray(videos) ? videos : [videos];
42
+ return result
43
+ // return TwitterDlSchema.parse(result);
44
  } catch (error) {
45
  console.error("Error fetching Twitter video:", error.message);
46
  throw new Error("Failed to fetch Twitter video. Please try again later.");