Skip to content

Relative file paths for M3U files are not relative #2016

@RohsCE

Description

@RohsCE
  • I have checked the FAQ for answers.
  • I have checked the Changelog that the issue is not already fixed.
  • I believe this issue is a bug, and not a general technical issue, question or feature requests that can be discussed on the forum.

Describe the bug
When exporting a playlist as an M3U file, and choosing "relative" when saving that file, it is not an actual relative filepath such as:
"./track1.flac"

It's more like
"../../../home/user/Music/artist/track1.flac"

To Reproduce

  1. Settings > Playlist > "When saving a playlist, file paths should be:" > Choose "Ask when saving"
  2. Save a playlist as M3U
  3. View the created M3U in a text editor and check filepaths

Expected behavior
After saving the M3U file as a relative path, when opening the M3U file in a text editor, the line should not include -to the best of my knowledge- any home folders or anything like that, and should be something like:
"./track1.flac"

System Information:

  • Operating system: Kernel: Linux 6.19.3-2-cachyos-deckify
  • Strawberry Version: v1.2.18 (flatpak)

Additional context
to be clearer I wanted to find an example of what a relative m3u playlist file should look like. Using the android app https://github.com/OxygenCobalt/Auxio I was able to export a relative m3u file that works in strawberry:

#EXTM3U
#EXTENC:UTF-8
#PLAYLIST:test
#EXTINF:42899501,432Hz-AlphaWaves
#EXTALB:Podcasts
./432Hz-AlphaWaves.opus

Also, seems like a similar issue but closed, #1071

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions