Page 1 of 1

VLC 1.0.5 fails to read XSPF with Extensions

Posted: 24 May 2010 05:25
by Donama
I have a handcrafted XSPF play list file which validates against Sebastian Pipping's Online XSPF validator (http://validator.xspf.org/) Actually, it was originally generated by the Sift Project iTunes -> XSPF transform, but that is beside the point since it validates.

Pasting the XML so you can see it:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?> <playlist version="1" xmlns:sift="http://kulp.ch/sift/2006/08" xmlns="http://xspf.org/ns/0/"> <title>2009-12-16 Ethereal</title> <identifier>itunes:playlist:2009-12-16Ethereal</identifier> <!--<extension application="http://kulp.ch/sift/"> <sift:playlistId>19424</sift:playlistId> <sift:attribute name="Special Type">All Items</sift:attribute> </extension>--> <trackList> <track> <location>file:///F:/musik/The%20Cambridge%20Singers/Christmas%20Star%20-%20Carols%20For%20The%20Christma/04%20Silent%20Night.mp3</location> <creator>The Cambridge Singers</creator> <album>Christmas Star - Carols For The Christmas Season</album> <title>Silent Night</title> <duration>186070</duration> <!--<extension application="http://kulp.ch/sift/"> <sift:attribute name="Bit Rate">256</sift:attribute> <sift:attribute name="Date Added">2009-12-16T02:03:21Z</sift:attribute> <sift:attribute name="Genre">Christmas songs</sift:attribute> <sift:attribute name="Persistent ID">087CDDC2617D77FD</sift:attribute> <sift:attribute name="Play Count">6</sift:attribute> <sift:attribute name="Play Date UTC">2010-03-30T01:41:44Z</sift:attribute> <sift:attribute name="Rating">80</sift:attribute> <sift:attribute name="Sample Rate">44100</sift:attribute> <sift:attribute name="Size">6092503</sift:attribute> <sift:attribute name="Track Count">22</sift:attribute> <sift:attribute name="Track Number">4</sift:attribute> <sift:attribute name="Track Type">File</sift:attribute> <sift:attribute name="Year">1981</sift:attribute> </extension>--> </track> </trackList> </playlist>
If I uncomment the two <extension> XML blocks it still validates but VLC cannot read it properly.

You should be able to replicate the error:
1. Copy my XML above.
2. Save it as a new text/xml file
3. Adjust the URI to something that exists on your machine.
4. Double-click the file to open in VLC. VLC loads this just fine and the track will play.
5. Uncomment the two <extension> XML blocks.
6. Double-click the file to open in VLC. VLC will not play the track as the XSPF has failed to load.

Is this a known issue? If so when will it be fixed.

I'm using VLC 1.0.5 under XP.

Thanks
(I have tried to find an existing post about this problem but failed. If I'm wrong please forgive and redirect me.)

Re: VLC 1.0.5 fails to read XSPF with Extensions

Posted: 24 May 2010 05:32
by Donama
I have just noticed at http://wiki.videolan.org/XSPF that it appears VLC may only support the vlc extensions to XSPF which is fine and to be expected. My problem is that I don't want to have to manually edit or transform dozens of play lists, just to comment out unsupported extensions. Why can't VLC just ignore extensions it does not understand?

Re: VLC 1.0.5 fails to read XSPF with Extensions

Posted: 25 May 2010 11:44
by Jean-Baptiste Kempf
It isn't a known issue, and you should open a bug about it.

Re: VLC 1.0.5 fails to read XSPF with Extensions

Posted: 27 May 2010 03:22
by Donama
Jb, I tried to register and log into the TRAC system but it doesn't work. It says: "TICKET_CREATE privileges are required to perform this operation"

Can you please either give me privileges to create a new ticket or log this bug yourself for me with the following text?

Problem: VLC 1.0.5 fails to read XSPF with unsupported extensions.
Change request: Unsupported extensions should be ignore.
More detail: viewtopic.php?f=2&t=76672

Re: VLC 1.0.5 fails to read XSPF with Extensions

Posted: 27 May 2010 17:22
by Jean-Baptiste Kempf
What is your name on trac?

Re: VLC 1.0.5 fails to read XSPF with Extensions

Posted: 28 May 2010 06:12
by Donama
Donama, same as here. Cheers

Re: VLC 1.0.5 fails to read XSPF with Extensions

Posted: 28 May 2010 16:13
by Jean-Baptiste Kempf
Done.

Re: VLC 1.0.5 fails to read XSPF with Extensions

Posted: 31 May 2010 11:44
by Jean-Baptiste Kempf

Re: VLC 1.0.5 fails to read XSPF with Extensions

Posted: 27 Jun 2010 20:14
by ivoire
This is now fixed. Now the xspf parser just skipp every extension node which does not belong to vlc.

Re: VLC 1.0.5 fails to read XSPF with Extensions

Posted: 27 Jun 2010 20:24
by Jean-Baptiste Kempf
And will be in 1.1.1