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) )
char *psz_desc;
char *psz_filter;
char *psz_module;
} formats[] = {{ _("M3U file"), "*.m3u", "export-m3u" },
} formats[] = {//{ _("M3U file"), "*.m3u", "export-m3u" },
{ _("XSPF playlist"), "*.xspf", "export-xspf"}
};
......@@ -959,10 +959,13 @@ void Playlist::OnSave( wxCommandEvent& WXUNUSED(event) )
{
if( dialog.GetPath().mb_str() )
{
abort();
// playlist_Export( p_playlist, dialog.GetPath().mb_str(),
// /* ROOT */
// formats[dialog.GetFilterIndex()].psz_module );
/* what root should we export? */
if( p_playlist->p_root_category->i_children > 0 )
{
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";
/* prototypes */
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 * );
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