+ const char *psz_module;
+ if( m_file.find( ".xsp", 0 ) != string::npos )
+ psz_module = "export-xspf";
+ else if( m_file.find( "m3u", 0 ) != string::npos )
+ psz_module = "export-m3u";
+ else if( m_file.find( "html", 0 ) != string::npos )
+ psz_module = "export-html";
+ else
+ {
+ msg_Err(getIntf(),"Did not recognise playlist export file type");
+ return;
+ }
+
+ playlist_Export( pPlaylist, m_file.c_str(),
+ pPlaylist->p_local_category, psz_module );