From 3295afdaaea49debfa5f91d6c2706a6ab725df10 Mon Sep 17 00:00:00 2001 From: wukko Date: Wed, 28 Aug 2024 00:35:53 +0600 Subject: [PATCH] api/create-filename: don't add dub name when it doesn't exist --- api/src/processing/create-filename.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/src/processing/create-filename.js b/api/src/processing/create-filename.js index e8093d1f..d1758c00 100644 --- a/api/src/processing/create-filename.js +++ b/api/src/processing/create-filename.js @@ -24,7 +24,9 @@ export default (f, style, isAudioOnly, isAudioMuted) => { default: case "classic": if (isAudioOnly) { - infoBase.push(f.youtubeDubName); + if (f.youtubeDubName) { + infoBase.push(f.youtubeDubName); + } return `${infoBase.join("_")}_audio`; } filename = classicTags.join("_");