[vlc-devel] [Daniel Stränger <me at schmaller.de>] [PATCH] m3u playlist import and export

System administration admin at via.ecp.fr
Tue Aug 9 09:57:29 CEST 2005


 The deleted attachment is at:
    <http://www.videolan.org/~admin/20050809-videolan/vlc_m3u_playlist.patch>
    
----- Forwarded message from Daniel Stränger <me at schmaller.de> -----

From: Daniel Stränger <me at schmaller.de>
Date: Mon, 08 Aug 2005 16:26:40 +0200
To: vlc-devel at videolan.org
Subject: [PATCH] m3u playlist import and export
Reply-To: vlc at schmaller.de
User-Agent: Mail/News Client 1.0+ (X11/20050517)
X-Spam-Status: No, score=-2.6 required=5.0 tests=DNS_FROM_RFC_POST,
	RCVD_IN_ORBS,UNIFIED_PATCH autolearn=failed version=3.0.3

hi all!
i've recognized that loading and saving a m3u playlist does not use the
same EXTINF format.
In 0.8.1 the playlist entry's extra information was saved as:
   #EXTINF:time,artist,name
Now, in 0.8.2 it's saved as:
   #EXTINF:time,artist - name

but during the load of a playlist and parsing the EXTINF-line the part 
of the artist was neglected.
i've corrected this misbehavior as follows:
   * The delimiter character between time, artist and title is the comma!
   * If the artist contains a comma, the comma is escaped by a 
backslash during export
   * of course the newly introduced escape charater "backslash" will 
also be escaped
   * in the Demux-function the artist *and* the title are parsed and 
handled separatly
   * the artist will be unescaped and set by vlc_input_item_AddInfo()

the patch file comes as attachment and i hope you check it in to svn 
tree after revision.

i'd be glad to receive any feedback.

Best regards,
Daniel Straenger



----- End forwarded message -----

-- 
System administration <admin at via.ecp.fr>
VIA, Ecole Centrale Paris, France

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list