mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
Ensure filename is not empty in downloader plugin
This commit is contained in:
@ -120,7 +120,7 @@ const toMP3 = async (
|
||||
);
|
||||
|
||||
const folder = getFolder(options.downloadFolder);
|
||||
const name = metadata
|
||||
const name = metadata.title
|
||||
? `${metadata.artist ? `${metadata.artist} - ` : ""}${metadata.title}`
|
||||
: videoName;
|
||||
const filename = filenamify(name + "." + extension, {
|
||||
|
||||
Reference in New Issue
Block a user