[vlc-devel] [PATCH] Improve the playlist experience

Mario Speiß 1034-135 at online.de
Mon Feb 11 21:46:04 CET 2013

On 11.02.2013 09:35, Rémi Denis-Courmont wrote:
> On Sun, 10 Feb 2013 22:31:58 +0100, Mario Speiß<1034-135 at online.de>
> wrote:
>> If playlists containing youtube urls are exported or imported, these
>> patches
>> improve the usability of the playlist.
> I don't think<info>  is acceptable either. I don't think you can do what
> you want with XSPFv1.
Quoting the XSPFv1 (http://xspf.org/xspf-v1.html): info
  URI of a place where this resource can be bought or more info can be 
found. xspf:track elements MAY contain exactly one.

I thinks that is possible.

Second, quoting again: "It is portable -- You should be able to send a 
playlist to your friend and have it work."
Exactly _that_ is really difficult with the current implementation.

Take following playlist:

<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">

It opens with VLC and playback is fine. Then save the playlist in 
xspf-format again (important: _after_ playback!). You will get something 

<?xml version="1.0" encoding="UTF-8"?>
<playlist xmlns="http://xspf.org/ns/0/" 
xmlns:vlc="http://www.videolan.org/vlc/playlist/ns/0/" version="1">
			<annotation>Installation: http://www.mediafire.com/?vnuk8r8c7b2w88p 
Und der life key von justin.tv http://de.justin.tv/broadcast/adv_other 
(erst ma bei justin.tv einlogg...</annotation>
			<extension application="http://www.videolan.org/vlc/playlist/0">
	<extension application="http://www.videolan.org/vlc/playlist/0">
			<vlc:item tid="0"/>

Now my question: Where is the information about the title? about the 
website? other formats for playback? That implementation does not seem 
very portable to me.

However, with the patch of lua (see vlc.c) firstofall the original path 
is copied to meta-url (if and _only_ if the lua parsers did not parse 
anything else for meta-url).
The xspf-parts use that information and save/load that meta-url within 
the <info> of the track item. What's so wrong about that? Please explain 
to me.

My first approach to save to <link> was not a good idea, that was not 
validated. But if you validate this little playlist with some validation 
tools, it says VALID.


More information about the vlc-devel mailing list