[bugfix] Unable to download playlist if its filename was containing special chars

This commit is contained in:
MathieuG-P
2024-11-05 20:33:18 +01:00
parent 0d913641d7
commit 57e1029b75
@@ -123,7 +123,7 @@ export class LocalPlaylistsManagerService {
const dest = await (async () => {
if(opt.dest && path.isAbsolute(opt.dest) && this.acceptPlaylistFiletype(opt.dest)) { return opt.dest; }
const playlistFolder = await this.getPlaylistsFolder(opt.version);
return path.join(playlistFolder, filename);
return path.join(playlistFolder, sanitize(filename));
})();
writeFileSync(dest, JSON.stringify(bpList, null, 2));