fix: m3u8 relative path generation/resolution

This commit is contained in:
Markury
2026-03-19 11:37:27 -04:00
parent e5d12c9041
commit cc92640908
5 changed files with 24 additions and 28 deletions

View File

@@ -221,7 +221,7 @@ export async function downloadSpotifyPlaylist(
const m3u8Tracks: M3U8Track[] = successfulTracks.map(({ deezerTrack }) => {
const paths = generateTrackPath(deezerTrack, musicFolder, appSettings.deezerFormat, false);
const absolutePath = `${paths.filepath}/${paths.filename}`;
const relativePath = makeRelativePath(absolutePath, 'Music');
const relativePath = makeRelativePath(absolutePath, playlistsFolder);
return {
duration: deezerTrack.duration,