mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
[bugfix] Unable to download playlist if its filename was containing special chars
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user