From 22bfa69ef489af06dec31e78ba7ab443f5daccb3 Mon Sep 17 00:00:00 2001 From: Inrixia Date: Wed, 25 Dec 2024 03:56:35 +1300 Subject: [PATCH] SongDownloader - Fix file exists check ordering --- plugins/_lib/native/downloadTrack.native.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/_lib/native/downloadTrack.native.ts b/plugins/_lib/native/downloadTrack.native.ts index 8853f46..dfb0020 100644 --- a/plugins/_lib/native/downloadTrack.native.ts +++ b/plugins/_lib/native/downloadTrack.native.ts @@ -42,8 +42,8 @@ const addTags = async (extPlaybackInfo: ExtendedPlayackInfo, stream: Readable, m const exists = (path: string): Promise => stat(path) - .catch(() => false) - .then(() => true); + .then(() => true) + .catch(() => false); export type PathInfo = { fileName?: string;