M3U export - Relative paths

Carl-Gerhard started this chat 2 months ago

Hi,

it would help me a lot to have an option to use relative paths for export in windows.
(Leaving the drive-letter out)

Even better a second option to be able to export Linux compatible '/' instead of '\' for export to media-servers.

Search and replace via notepad++ for 150 Playlists in different folders is a bit heave. ;-)

As a bonus same for ITunes-Export. ;-)

Replies (17)

C
Hi,

it would help me a lot to have an option to use relative paths for export in windows.
(Leaving the drive-letter out)

Even better a second option to be able to export Linux compatible '/' instead of '\' for export to media-servers.

Search and replace via notepad++ for 150 Playlists in different folders is a bit heave. ;-)

As a bonus same for ITunes-Export. ;-)

0


R
So a perhaps a new Advanced setting (so the state is remembered) to convert filePaths to relative on export, and this would be applied to all exports.

And a second option in Advanced that displays for Windows users only to convert filePaths to Linux compatible (swapping forward slash to backslash separators).

Would that be useful?

0


C
YES!!! :-) I am so ready to beta test that, when applied.

0


R
Is it actually only the drive letter that you don't need and for the same purpose to convert the separators?

So like "C:\Users\Carl\Music\Artist\Album\01 - Song Title.mp3" should become "/Users/Carl/Music/Artist/Album/01 - Song Title.mp3", right?

0


C
Yes. It is for exports to Media-Systems like Roon or Nextcloud Audio/Musik or Synology Media.

0


R
I see, in that case I will create a single setting to do exactly this, on Windows.

Which exports would this be for?

Please keep in mind that importing the exported file would mean the paths don't work in MIXO.

0


C
Only m3u. iTunes would be great, but not primary.

0


R
In that case I think for safety I'll add this to the top of the Playlists export page only so it can be turned on when required for each export.

0


R
I've decided a customisable solution would be better for the broader market, allowing users to correct the paths for their particular setups - see example attached.

So it will have a checkbox option (checked by default) for "Linux-style separators ('/')", plus "Find" and "Replace" inputs. I think this will work well.
  • example.pngScan ok

1


C
Great! <3

0


R

0


C
Drive letter ist still contained in the path.

0


R
What did you put for the find and replace text?

0


R
It’s case-sensitive but maybe I will change that.

0


C
Ah, sorry my fault. Works as intended.

0


R
Whoop! Good news. Was it a case issue?

0


R
No worries, I've made the matching logic case-insensitive now, without affecting the final path. This improvement will be in the main release.

0