SUMMARY *** I have the same set of music on different computers synced via Nextcloud. For a playlist created on one computer to work on another it needs to contain the exact same paths. However the nextcloud folders are in different locations on the different machines. It would be cool if I could just use `$NEXTCLOUD` as an environmental variable in the playlists and elisa would know to replace `$NEXTCLOUD` with the actual path. ***
The M3U playlist format already provides a solution for this by allowing relative paths in the playlist files. Elisa could implement that for example by adding a "Use relative paths" checkbox to the playlist saving dialog instead of coming up a custom more convoluted solution.
(In reply to Nagy Tibor from comment #1) > The M3U playlist format already provides a solution for this by allowing > relative paths in the playlist files. Elisa could implement that for example > by adding a "Use relative paths" checkbox to the playlist saving dialog > instead of coming up a custom more convoluted solution. Thanks for pointing this out. I tried it out and it works just fine. still a bit annoying having to make the playlist with relative paths. > "Use relative paths" checkbox this I think would make me very happy.
Relative path support sounds ideal.
In the meantime if anybody else has this problem. I wrote a little script that makes a relative path playlist from what elisa outputs, see (https://gitlab.com/-/snippets/2244359)
A possibly relevant merge request was started @ https://invent.kde.org/multimedia/elisa/-/merge_requests/375
Git commit 220c110b2f8e78de9b86aa9178a54a5d2466ad47 by Nate Graham, on behalf of Yerrey Dev. Committed on 26/08/2022 at 10:09. Pushed by ngraham into branch 'master'. Support saving playlist with relative paths Adds the support for saving playlists with relative paths in cases where the music files are located in the same folder as the playlist to be saved. This setting is "Prefer relative paths" by default as that seems to be common with most music players. A new persistent config `alwaysUseAbsolutePlaylistPaths` is created, which is then checked in `MediaPlayListProxyModel::savePlaylist`. With a false value, music files in the same folder as the playlist are pathed with just the filename, otherwise with absolute paths. With a true value an absolute path is always used. FIXED-IN: 22.12 M +7 -0 src/elisa_core.kcfg M +16 -0 src/localFileConfiguration/elisaconfigurationdialog.cpp M +16 -0 src/localFileConfiguration/elisaconfigurationdialog.h M +22 -4 src/mediaplaylistproxymodel.cpp M +27 -0 src/qml/SettingsForm.qml https://invent.kde.org/multimedia/elisa/commit/220c110b2f8e78de9b86aa9178a54a5d2466ad47