From 3f6b7aa1cfa28ee02eec8c8ab16b623f2bbab928 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 3 Dec 2019 10:10:14 +0100 Subject: Don't move the caption if it has the right name --- server/helpers/captions-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/helpers') diff --git a/server/helpers/captions-utils.ts b/server/helpers/captions-utils.ts index 2830ae017..73b6d166d 100644 --- a/server/helpers/captions-utils.ts +++ b/server/helpers/captions-utils.ts @@ -12,7 +12,7 @@ async function moveAndProcessCaptionFile (physicalFile: { filename: string, path if (physicalFile.path.endsWith('.srt')) { await convertSrtToVtt(physicalFile.path, destination) await remove(physicalFile.path) - } else { // Just move the vtt file + } else if (physicalFile.path !== destination) { // Just move the vtt file await move(physicalFile.path, destination, { overwrite: true }) } -- cgit v1.2.3