You are not logged in.

#1 2015-06-01 05:31:32

vohof
Member
Registered: 2013-08-14
Posts: 33

[SOLD] MPD - Can't load .xspf file

I checked if my mpd supports xspf files

$ mpd --version | grep xspf -B 1     
Playlist plugins:
 extm3u m3u pls xspf asx rss soundcloud cue embcue

I made two playlists, one is m3u

$ ls -la
total 16
drwxr-xr-x 2 cyrus cyrus 4096 Jun  1 13:28 .
drwxr-xr-x 3 cyrus cyrus 4096 May 31 18:55 ..
-rwx------ 1 cyrus cyrus 1740 Jun  1 13:17 di.xspf
-rwx------ 1 cyrus cyrus  290 Jun  1 13:14 wala.m3u

However,

$ mpc update && mpc lsplaylists
wala

It does not list di. It does not list the playlist in ncmpcpp as well. Am I missing something?

Last edited by vohof (2015-06-03 01:53:30)

Offline

#2 2015-06-01 16:48:32

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [SOLD] MPD - Can't load .xspf file

mpd only uses m3u playlists for its internal playlist files.
You can use xspf playlists inside of your musicdir though.

# empty playlist
carnager@caprica ~ > mpc playlist

# check _playlist directory, where i stored a xspf file
carnager@caprica ~ > mpc ls _playlist          
_playlist/playlist.xspf

# load the xspf file
carnager@caprica ~ > mpc load _playlist/playlist.xspf
loading: _playlist/playlist.xspf

# check playlist again
carnager@caprica ~ > mpc playlist                    
Green Magnet School - Protocol

Last edited by Rasi (2015-06-01 17:04:17)


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#3 2015-06-02 09:53:52

vohof
Member
Registered: 2013-08-14
Posts: 33

Re: [SOLD] MPD - Can't load .xspf file

Hello,

Wow, that worked! How come it does not list the playlist when I placed it to my configured playlist_directory?

Thank you.

Offline

#4 2015-06-02 15:47:14

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [SOLD] MPD - Can't load .xspf file

vohof wrote:

Hello,

Wow, that worked! How come it does not list the playlist when I placed it to my configured playlist_directory?

Thank you.


I told you why. because mpd ONLY uses m3u playlists for those.
That directory is meant for playlists created with mpd itself.

Last edited by Rasi (2015-06-02 15:47:30)


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#5 2015-06-03 01:53:16

vohof
Member
Registered: 2013-08-14
Posts: 33

Re: [SOLD] MPD - Can't load .xspf file

Oh, okay. Thank you mate!

Offline

Board footer

Powered by FluxBB