Spaces:
Paused
Paused
Update lib/twitter/twitter.js
Browse files- 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 |
-
|
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 |
+
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.");
|