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

To get bugs in the current release fixed, please report them here.

Moderator: Gurus

GandalfTheWhite

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

Post by GandalfTheWhite » Sat Jan 27, 2018 10:12 am

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.

Peke
Posts: 10935
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia
Contact:

Re: XSPF Playlist with relative path are not working

Post by Peke » Sun Jan 28, 2018 12:31 am

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
Best regards,
Pavle
MM Core Developer and Admin of free MediaMonkey extensions Hosting
Image
Image
How to add Images to forum

GandalfTheWhite

Re: XSPF Playlist with relative path are not working

Post by GandalfTheWhite » Sat Feb 03, 2018 7:04 am

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.

GandalfTheWhite

Re: XSPF Playlist with relative path are not working

Post by GandalfTheWhite » Mon Mar 05, 2018 12:58 pm

Have you been able to reproduce this now?

GandalfTheWhite

Re: XSPF Playlist with relative path are not working

Post by GandalfTheWhite » Mon Mar 05, 2018 1:21 pm

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)

Peke
Posts: 10935
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia
Contact:

Re: XSPF Playlist with relative path are not working

Post by Peke » Tue Apr 10, 2018 9:49 am

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.
Best regards,
Pavle
MM Core Developer and Admin of free MediaMonkey extensions Hosting
Image
Image
How to add Images to forum

Peke
Posts: 10935
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia
Contact:

Re: XSPF Playlist with relative path are not working

Post by Peke » Tue Apr 10, 2018 9:53 am

Best regards,
Pavle
MM Core Developer and Admin of free MediaMonkey extensions Hosting
Image
Image
How to add Images to forum

Post Reply