mirror of
https://github.com/hansputera/tiktok-dl.git
synced 2026-04-06 04:01:57 +02:00
fix(core.utils): fix matchCustomDownload undefined urls
Signed-off-by: Hanif Dwy Putra S <hanifdwyputrasembiring@gmail.com>
This commit is contained in:
@@ -77,7 +77,8 @@ export const matchCustomDownload = (
|
||||
.slice(0, -1) + url.slice(0, -3),
|
||||
);
|
||||
|
||||
return [links.find((x) => x)!].concat(urls as string[]);
|
||||
if (!urls?.length) return [];
|
||||
return [links[0]].concat(urls as string[]);
|
||||
};
|
||||
|
||||
export const deObfuscateSaveFromScript = (scriptContent: string): string => {
|
||||
|
||||
Reference in New Issue
Block a user