From dcc270905d50850983043ba25c212452b87c0066 Mon Sep 17 00:00:00 2001 From: Stiven Trizky Katuuk Date: Sun, 18 Aug 2024 11:37:53 +0800 Subject: [PATCH] fix: download return the original link --- packages/scraper-youtube/src/youtubedl-v2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/scraper-youtube/src/youtubedl-v2.ts b/packages/scraper-youtube/src/youtubedl-v2.ts index 24a0de0..951f66b 100644 --- a/packages/scraper-youtube/src/youtubedl-v2.ts +++ b/packages/scraper-youtube/src/youtubedl-v2.ts @@ -55,7 +55,7 @@ export default async function youtubedlv2 ( type, fileSizeH, fileSize, - download: async () => url + download: async () => item.url } } const duration = time2Number(json.meta.duration)