mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
Merge pull request #1297 from nnnlog/master
fix(downloader): Korean filename is broken on non-macOS devices
This commit is contained in:
@ -199,10 +199,13 @@ async function downloadSongUnsafe(
|
||||
presetSetting = presets[preset];
|
||||
}
|
||||
|
||||
const filename = filenamify(`${name}.${presetSetting?.extension ?? 'mp3'}`, {
|
||||
let filename = filenamify(`${name}.${presetSetting?.extension ?? 'mp3'}`, {
|
||||
replacement: '_',
|
||||
maxLength: 255,
|
||||
});
|
||||
if (!is.macOS()) {
|
||||
filename = filename.normalize('NFC');
|
||||
}
|
||||
const filePath = join(dir, filename);
|
||||
|
||||
if (config.get('skipExisting') && existsSync(filePath)) {
|
||||
|
||||
Reference in New Issue
Block a user