code refactoring

This commit is contained in:
Marco Piovanello
2024-03-24 10:50:18 +01:00
committed by GitHub
parent 29dfebe48b
commit 02832f9de4

View File

@@ -109,7 +109,7 @@ const DownloadDialog: FC<Props> = ({ 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}`,