XSPF Creator 1.1 [MM2+3]

Post a reply

In an effort to prevent automatic submissions, we require that you complete the following challenge.
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review

Expand view Topic review: XSPF Creator 1.1 [MM2+3]

Re: XSPF Creator 1.1 [MM2+3]

by trixmoto » Tue Feb 03, 2015 3:33 pm

Yeah, reading it back again, that's actually really obvious from the original post. I must have been really tired when I read it, and not really read it at all.

I've added this to my list, should be easy enough to add in.

Re: XSPF Creator 1.1 [MM2+3]

by Peke » Mon Jan 26, 2015 10:19 am

From what I see problem is in Full URLencode for non latin1 characters, Linux Folder separator eg. "/" instead of "\" and VLC add "file:///" prefix so that can parsed to any browser anything else works as it should

Re: XSPF Creator 1.1 [MM2+3]

by trixmoto » Sun Jan 25, 2015 5:42 pm

I'm confused, this script allows you to create a XSPF file from a playlist, so what are you asking for that's different than that?

Re: XSPF Creator 1.1 [MM2+3]

by onyxwave » Sat Jan 24, 2015 8:56 pm

Hello trixmoto:
I know that this is an old thread for an old add-on script you created some time ago. Yet, I'm writing this here in hopes that you could write another XSPF script for me (that may also be helpful for others). If you don't have the time to write it, hopefully you can at least point me in the right directions to begin learning to write it myself (though I'd rather not write it since I know nothing about scripting to MediaMonkey specifications. lol).

My current problem is that when I use MediaMonkey 4.1.5 to create a XSPF playlist from one of my saved AutoPlaylist, it is unable to be played back with the VLC Media Player. After examining a XSPF file created by VLC Player to a XSPF file created by MediaMoney, I noticed a couple things that are most likely the problem.

MediaMonkey stores a file location node like so:
<location>Q:\Video\Television\Z\Z Nation - 2014 - Syfy\Z Nation - 104 - S01E04 - Full Metal Zombie (720p HD 5.1 ch AC-3 HDTV)-DIMENSION.mkv</location>
VLC stores a file location node like so:

You may notice that MediaMonkey keeps spaces, yet VLC replaces the spaces with "%20". Also, where MediaMonkey stores "\", VLC stores "/". And lastly, at the beginning of the string, where MediaMonkey has "Q:", VLC has "file:///Q:".

So I was hoping you could write a script that creates XSPF files taking these things into account so that it can be played using the VLC player.

Also, a nice extra bonus, would be if you could also add in the capability to add in folders to the file where the folder structure would be based on the media files' field values using the same (or as close as possible) syntax that the MediaMonkey "Auto-Organize files..." function uses.

Let me know if you think this something you'd be interested in tackling, or if this is just a wishful pipe dream of mine that will probably never get fulfilled.

Thanks for taking the time to read this. :)
P.S. If any of you great MediaMonkey scripters/users can assist with this inquiry in any way as well, please feel free to chime in to help a fellow user.

Re: XSPF Creator 1.1 [MM2+3]

by nobody at the moment » Fri Jun 04, 2010 3:23 am

If there are backslashes (at least) in the name of the playlist, I get an error with something like "fout" in it.

All I had to do is edit out the backslashes, so not a big deal at all for me. Just an FYI for anyone running into the same problem... maybe other characters can make it croak, too?

Hey, thanks for the great scripts, Trixmoto!

by trixmoto » Wed Oct 31, 2007 11:21 am

There is now an MM3 installation package for this script available from my website! :)

by trixmoto » Tue Feb 27, 2007 11:39 am

New version (1.1) is now available from my website. Now if all the tracks have a basename in common you are given the option to change it.

by NightInAgharta » Mon Feb 26, 2007 11:35 am


by trixmoto » Mon Feb 26, 2007 10:05 am

Ok, I'll see what I can do! :)

by NightInAgharta » Mon Feb 26, 2007 9:54 am

The pathname is the same for every files I select.

Example 1:
I select some files from the folder c:\my music\bauhaus\in the flat field\ and use XSPF creator. It prompts for a base-pathname. I insert http://www.mysite.com/ and it should create the XSPF pathname in this way:

Example 2:
I select files from the virtual-folder All files inside c:\my music\bauhaus\ selecting, this way, every files from every albums by Bauhaus. I use then XSPF creator. It prompts for a base-pathname. I insert http://www.mysite.com/ and it should create the XSPF pathname in this way:



and so on for every subfolders inside the main folder.

I hope to have been able to explain.

Thanks for your help.

by trixmoto » Mon Feb 26, 2007 6:26 am

Is the "http://<mywebsite>/<path>/" part the same for every song? If not, what is the <path> variable - can you give me a couple of examples?

by NightInAgharta » Mon Feb 26, 2007 5:56 am

:D :D :D :D THANKS!!! It works great!
But... as I am hard to please, I would appreciate you could do another modifies to your scritp:
i have my music in the foldet c:\musica\<artist>\<album>\<song>
your script correctly create the XSPF using that pathname.
But since I have to move the songs online and use the playlist.xspf in my web site the pathname of course changes to http://<mywebsite>/<path>/<song>
Can you add a prompt where to add the base pathname and use that path for the generated playlist.xspf ? :oops:


XSPF Creator 1.1 [MM2+3]

by trixmoto » Sun Feb 25, 2007 6:30 pm

This script, as requested here, creates an XSPF playlist of the selected or visible tracks.

The installer can be downloaded from my website.