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

This forum is for reporting bugs in MediaMonkey for Windows 4. Note that version 4 is no longer actively maintained as it has been replaced by version 5.

Moderator: Gurus

GandalfTheWhite

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

Post 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.
Peke
Posts: 17457
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: XSPF Playlist with relative path are not working

Post 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
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
GandalfTheWhite

Re: XSPF Playlist with relative path are not working

Post 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.
GandalfTheWhite

Re: XSPF Playlist with relative path are not working

Post by GandalfTheWhite »

Have you been able to reproduce this now?
GandalfTheWhite

Re: XSPF Playlist with relative path are not working

Post 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)
Peke
Posts: 17457
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: XSPF Playlist with relative path are not working

Post 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.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
Peke
Posts: 17457
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: XSPF Playlist with relative path are not working

Post by Peke »

Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
Post Reply