randydev commited on
Commit
d2e64cd
·
verified ·
1 Parent(s): 6399a27

Update lib/twitter/twitter.js

Browse files
Files changed (1) hide show
  1. lib/twitter/twitter.js +1 -1
lib/twitter/twitter.js CHANGED
@@ -6,7 +6,7 @@ import { stringifyCookies, generateTokenId } from './util.js';
6
 
7
 
8
  export async function twitterdl(url) {
9
- TwitterDlArgsSchema.parse([url]);
10
 
11
  const idMatch = url.match(/status\/(\d+)/) || url.match(/(\d+)/);
12
  if (!idMatch) throw new Error("Invalid Twitter URL: Cannot extract tweet ID.");
 
6
 
7
 
8
  export async function twitterdl(url) {
9
+ SfilemobidlArgsSchema.parse({ url });
10
 
11
  const idMatch = url.match(/status\/(\d+)/) || url.match(/(\d+)/);
12
  if (!idMatch) throw new Error("Invalid Twitter URL: Cannot extract tweet ID.");