api/create-filename: don't add dub name when it doesn't exist
This commit is contained in:
parent
2068bba4ee
commit
3295afdaae
1 changed files with 3 additions and 1 deletions
|
@ -24,7 +24,9 @@ export default (f, style, isAudioOnly, isAudioMuted) => {
|
||||||
default:
|
default:
|
||||||
case "classic":
|
case "classic":
|
||||||
if (isAudioOnly) {
|
if (isAudioOnly) {
|
||||||
infoBase.push(f.youtubeDubName);
|
if (f.youtubeDubName) {
|
||||||
|
infoBase.push(f.youtubeDubName);
|
||||||
|
}
|
||||||
return `${infoBase.join("_")}_audio`;
|
return `${infoBase.join("_")}_audio`;
|
||||||
}
|
}
|
||||||
filename = classicTags.join("_");
|
filename = classicTags.join("_");
|
||||||
|
|
Loading…
Reference in a new issue