FAQ  •  Register  •  Login

Playlist Bug with "..\" or "../"

<<

freemansteve

Serviio newbie

Posts: 4

Joined: Thu Apr 27, 2023 2:34 pm

Post Thu Apr 27, 2023 3:04 pm

Playlist Bug with "..\" or "../"

Win 10 64, local SSD.... Serviio 2.3 running fine.

Folders and files are like this:

D:\Music - MP3\Favourites\[alphabetic_sets]\[band_name]\[album]\[tracksXX.mpr]
and
D:\Music - MP3\Favourites\Playlists\[band_name.m3u]

where [alphabetic_sets] just means folders labelled A-C; D-G and so on, to split them up for faster scrolling.

Serviio is set scan D:\Music - MP3
All actual files play fine - if not selected via playlist.

All playlist file entries are in this form:
#EXTM3U
#EXTINF:312,Back In Black - 01 - 01: Hell's Bells
..\Favourites\A-C\AC-DC\1980 - Back In Black\01 - Hell's Bells.mp3
etc
---- None of these playlists have any content according any client renderer pointed to the Serviio server.

NB....
There are about 115 playlist in the folder. All created with Playlist Creator 3.6.2.
All playlists play perfectly when selected via DLNA/UPNP with Foobar2000, VLC, and my media player (a Cambridge Audio Evo) - all pointed to a Universal Media Player server, or an Emby server on the same PC. The playlists and music files also play perfectly when the same files and folder structures are on my RAID/NAS, which runs Twonky.

If I make a test playlist, and move it a folder above where the music folders are stored, such that the playlist is like this:
#EXTM3U
#EXTINF:312,Back In Black - 01 - 01: Hell's Bells
Favourites\A-C\AC-DC\1980 - Back In Black\01 - Hell's Bells.mp3
(note "..\" not needed)
... the playlist works.

If simply edit the first mentioned playlist, in the "Playlists" folder to read:
#EXTM3U
#EXTINF:312,Back In Black - 01 - 01: Hell's Bells
../Favourites/A-C/AC-DC/1980 - Back In Black/01 - Hell's Bells.mp3
(i.e. using forward slashes)
... the playlist works.

To me, given that it is ONLY Serviio that cannot handle playlists using "..\" it looks like a parsing problem. Given that serviio handles "/" in all other cases, and also handles "../" it should be an easy fix, right?

You could say "why not mass edit playlist to change "\" to "/", but then I know other players - such as my car (SD card) will not b able to use the same playlists and I'll have to maintain separate, target device-specific ones which is a pain!

Apologies if I have misunderstood anything about how to set up serviio on Windows....
<<

atc98092

User avatar

DLNA master

Posts: 5215

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Thu Apr 27, 2023 4:44 pm

Re: Playlist Bug with "..\" or "../"

On my playlist files (both PLS and M3U) I use hard paths to the media, not a relative path. Of course, my media is spread across multiple hard drives, so the hard path is pretty much a requirement for those. I keep my playlist files in a single folder that doesn't contain any of the media files. This way I don't have to go looking for a file when I want to make a change.

I'm traveling this week, so not at home and can't provide any examples of my playlists.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 16 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

freemansteve

Serviio newbie

Posts: 4

Joined: Thu Apr 27, 2023 2:34 pm

Post Thu Apr 27, 2023 7:32 pm

Re: Playlist Bug with "..\" or "../"

yeah, but using hard paths won't work in many use cases, and I'm basically saying there is a bug, or more kindly, a design oversight in parsing....

Why is it that serviio is the ONLY server that doesn't work correctly for this case?
<<

atc98092

User avatar

DLNA master

Posts: 5215

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Thu Apr 27, 2023 7:49 pm

Re: Playlist Bug with "..\" or "../"

freemansteve wrote:Why is it that serviio is the ONLY server that doesn't work correctly for this case?

I can't answer that, since Serviio is the only thing I use with playlists. Plex doesn't support playlist files, and I don't use anything else to stream my media. Hopefully Zip will see your post and provide an answer.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 16 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

freemansteve

Serviio newbie

Posts: 4

Joined: Thu Apr 27, 2023 2:34 pm

Post Fri Apr 28, 2023 10:22 am

Re: Playlist Bug with "..\" or "../"

Thanks for looking..

I also use Universal Media Server, Emby (on PC) and Twonky (RAID/NAS on), all of which work fine with the exact same playlists and data.

The thing is, I do like the neatness of Serviio, so getting at least an explanation from Zip as to why my playlist are problematic would be very welcome, even if the "the bug" cannot be fixed or worked-around without me having change my .m3u files to be unique for Serviio!
<<

freemansteve

Serviio newbie

Posts: 4

Joined: Thu Apr 27, 2023 2:34 pm

Post Tue May 02, 2023 11:40 am

Re: Playlist Bug with "..\" or "../"

I guess this is a bug that has an easy work-around for many users (i.e. editing one's playlists), so it's unlikely to be fixed!

Thanks anyway.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Mar 03, 2024 6:51 pm

Re: Playlist Bug with "..\" or "../"

Sorry for getting to this so late.

According to my understanding, the relative path would resolve to


  Code:
D:/Music - MP3/Favourites/Favourites/A-C/AC-DC/1980 - Back In Black/01 - Hell's Bells.mp3


No? One up from Playlists, you're inside Favourites, and then back down to Favourites. IMO the relative path in your playlists should be

  Code:
..\..\Favourites\A-C\AC-DC\1980 - Back In Black\01 - Hell's Bells.mp3


Or am I completely wrong?

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 63 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.