Page 1 of 1

XSPF Playlist with relative path are not working [#14715]

Posted: Sat Jan 27, 2018 10:12 am
by GandalfTheWhite
Hi,

Problem: I have several XSPF Files with relative path. After importing this xspf files you cannot play them - files not found.

MM: 4.1.19.1859

Expected behavior: MM should interpret (relative-) paths relativ to the position of the original xspf / playlist (-> VLC will do this).

Another solution would be that MM will use/store the absolut path in the MM db during the import process.


Thx.

Re: XSPF Playlist with relative path are not working

Posted: Sun Jan 28, 2018 12:31 am
by Peke
Hi,
I can't replicate.
Would you be kind to copy/Paste one small XSPF and path where it resides along with full path to one of the files in playlist?

Code: Select all

HINT: Use CODE in reply over XSPF to make it easier to read here

Re: XSPF Playlist with relative path are not working

Posted: Sat Feb 03, 2018 7:04 am
by GandalfTheWhite

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<playlist xmlns="http://xspf.org/ns/0/" version="1">
	<title>testList</title>
	<trackList>
		<track>
			<location>file:///./../../Alben/Phil Collins/Hits/15 - In The Air Tonight.flac</location>
			<title>In The Air Tonight</title>
			<creator>Phil Collins</creator>
			<album />
			<image>file:///./cover.jpg</image>
		</track>
	</trackList>
</playlist>
After the import process - the relative path to my flac file could not be resolved - file is missing. Playing / Opening the xspf with vlc will work as excpected.

Re: XSPF Playlist with relative path are not working

Posted: Mon Mar 05, 2018 12:58 pm
by GandalfTheWhite
Have you been able to reproduce this now?

Re: XSPF Playlist with relative path are not working

Posted: Mon Mar 05, 2018 1:21 pm
by GandalfTheWhite
Update - the "problematic" part seems to be

Code: Select all

file:///./../../
if i change this to

Code: Select all

./../../
it's half working - during the import process there is a popup saying "could not find the following files..." but a nice click on "cancel" and the list is imported.

Whats wrong with the first file:/// approach? And why is there an "error" window with ./../.. ? (Changing it to win style \ and the popup is not shown)

Re: XSPF Playlist with relative path are not working

Posted: Tue Apr 10, 2018 9:49 am
by Peke
Hi,
problem looks like with Linux translation and windows translation as Linux uses "/" as folder separator and "file:///" Means network path URI.

In your particular case "file:///./../../Alben/Phil Collins/Hits/15 - In The Air Tonight.flac" for Linux it is translated as: file:///./ -> Take Path from XSPF path as a current folder eg. "//162.168.1.111/My music/Lists/XSPF Playlists/", then go back two folders eg. "/../../" an then navigate to "/Alben/Phil Collins/Hits/" which makes full path to file as "//162.168.1.111/My music/Alben/Phil Collins/Hits/15 - In The Air Tonight.flac" and file plays :) Windows in the other side translates this completely differently that make full path ending in "\\162.168.1.111\.\..\..\Alben\Phil Collins\Hits\15 - In The Air Tonight.flac" Which is invalid path.

Re: XSPF Playlist with relative path are not working

Posted: Tue Apr 10, 2018 9:53 am
by Peke