Skip to content

Commit 64b916e

Browse files
committed
musikr.playlist: include volume in abs m3u export
1 parent a16f71d commit 64b916e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • musikr/src/main/java/org/oxycblt/musikr/playlist/m3u

musikr/src/main/java/org/oxycblt/musikr/playlist/m3u/M3U.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ private class M3UImpl(private val volumeManager: VolumeManager) : M3U() {
208208
if (config.windowsPaths) {
209209
// Assume the plain windows C volume, since that's probably where most music
210210
// libraries are on a windows PC.
211-
"C:\\\\${song.path.components.windowsString}"
211+
"C:\\\\${song.path.volume.components?.let { it.windowsString + "\\" } ?: ""}${song.path.components.windowsString}"
212212
} else {
213-
"/${song.path.components.unixString}"
213+
"/${song.path.volume.components?.let { it.unixString + "/" } ?: ""}${song.path.components.unixString}"
214214
}
215215
} else {
216216
// First need to make this path relative to the working directory of the M3U

0 commit comments

Comments
 (0)