mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Don't move the caption if it has the right name
This commit is contained in:
parent
63472d88d1
commit
3f6b7aa1cf
2 changed files with 3 additions and 3 deletions
|
@ -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 })
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue