api/create-filename: don't add dub name when it doesn't exist

This commit is contained in:
wukko 2024-08-28 00:35:53 +06:00
parent 2068bba4ee
commit 3295afdaae
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -24,7 +24,9 @@ export default (f, style, isAudioOnly, isAudioMuted) => {
default: default:
case "classic": case "classic":
if (isAudioOnly) { if (isAudioOnly) {
if (f.youtubeDubName) {
infoBase.push(f.youtubeDubName); infoBase.push(f.youtubeDubName);
}
return `${infoBase.join("_")}_audio`; return `${infoBase.join("_")}_audio`;
} }
filename = classicTags.join("_"); filename = classicTags.join("_");