Re: Re: m3u playlists: going up one level

Home › Forums › Help and Support › m3u playlists: going up one level › Re: Re: m3u playlists: going up one level

#28068
rodries
Member

I hope that WIIMC also treats a “music” playlist entry as an up-one-level entry the same as “..music

This is wrong. “” denotes the root, which means it’s an absolute path. This is not supported, and would only work anyway if the whole drive was shared, as WiiMC would only be able to determine the path relative to the share root, not the drive root.

In the example of a folder C:DocumentsMusic being shared, presuming you have the following two files:

C:DocumentsMusicExtraPlayliststest.m3u
C:DocumentsMusicsong.mp3

Then an entry in test.m3u of “….song.mp3” will work. An entry of “DocumentsMusicsong.mp3” will NOT work, because WiiMC knows nothing above the Music folder level. If I added support for a root indicator, it would then consider this path in the sense of C:DocumentsMusicDocumentsMusicsong.mp3 – not what you intended. Really this would need to be “song.mp3” to point to the right spot, but that truly doesn’t make sense either.

In short, the code is already working as intended. What my code logic is doing is counting the number of “..” entries in the assembled path, and subtracting that number of folders from the path.

eg: assembled path is – smb1:/Extra/Playlists/../../song.mp3

it takes away two levels, and produces the correct path of smb1:/song.mp3 🙂