From 02832f9de43522834544b2e322e0b99c90a8f8a7 Mon Sep 17 00:00:00 2001 From: Marco Piovanello <35533749+marcopeocchi@users.noreply.github.com> Date: Sun, 24 Mar 2024 10:50:18 +0100 Subject: [PATCH] code refactoring --- frontend/src/components/DownloadDialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/DownloadDialog.tsx b/frontend/src/components/DownloadDialog.tsx index dae1a4b..ecdd8f7 100644 --- a/frontend/src/components/DownloadDialog.tsx +++ b/frontend/src/components/DownloadDialog.tsx @@ -109,7 +109,7 @@ const DownloadDialog: FC = ({ open, onClose, onDownloadStart }) => { if (pickedAudioFormat !== '') codes.push(pickedAudioFormat) if (pickedBestFormat !== '') codes.push(pickedBestFormat) - await new Promise(r => setTimeout(r, 200)) + await new Promise(r => setTimeout(r, 10)) await client.download({ url: immediate || line, args: `${argsBuilder.toString()} ${toFormatArgs(codes)} ${downloadTemplate}`,