Commit dbc59e3a authored by Yoann Peronneau's avatar Yoann Peronneau

* Tree playlist XSPF export

  Kids, don't try this at home...
parent e955c93c
...@@ -932,7 +932,7 @@ void Playlist::OnSave( wxCommandEvent& WXUNUSED(event) ) ...@@ -932,7 +932,7 @@ void Playlist::OnSave( wxCommandEvent& WXUNUSED(event) )
char *psz_desc; char *psz_desc;
char *psz_filter; char *psz_filter;
char *psz_module; char *psz_module;
} formats[] = {{ _("M3U file"), "*.m3u", "export-m3u" }, } formats[] = {//{ _("M3U file"), "*.m3u", "export-m3u" },
{ _("XSPF playlist"), "*.xspf", "export-xspf"} { _("XSPF playlist"), "*.xspf", "export-xspf"}
}; };
...@@ -959,10 +959,13 @@ void Playlist::OnSave( wxCommandEvent& WXUNUSED(event) ) ...@@ -959,10 +959,13 @@ void Playlist::OnSave( wxCommandEvent& WXUNUSED(event) )
{ {
if( dialog.GetPath().mb_str() ) if( dialog.GetPath().mb_str() )
{ {
abort(); /* what root should we export? */
// playlist_Export( p_playlist, dialog.GetPath().mb_str(), if( p_playlist->p_root_category->i_children > 0 )
// /* ROOT */ {
// formats[dialog.GetFilterIndex()].psz_module ); playlist_Export( p_playlist, dialog.GetPath().mb_str(),
p_playlist->p_root_category->pp_children[0],
formats[dialog.GetFilterIndex()].psz_module );
}
} }
} }
......
This diff is collapsed.
...@@ -33,5 +33,6 @@ const char hexchars[16] = "0123456789ABCDEF"; ...@@ -33,5 +33,6 @@ const char hexchars[16] = "0123456789ABCDEF";
/* prototypes */ /* prototypes */
int E_(xspf_export_playlist)( vlc_object_t * ); int E_(xspf_export_playlist)( vlc_object_t * );
static void xspf_export_item( playlist_item_t *, FILE * ); static void xspf_export_item( playlist_item_t *, FILE *, int * );
static void xspf_extension_item( playlist_item_t *, FILE *, int * );
static char *assertUTF8URI( char * ); static char *assertUTF8URI( char * );
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment