/*****************************************************************************
* cmd_playlist.cpp
*****************************************************************************
- * Copyright (C) 2003 VideoLAN
+ * Copyright (C) 2003 the VideoLAN team
* $Id$
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
- * Olivier Teulière <ipkiss@via.ecp.fr>
+ * Olivier Teulière <ipkiss@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include "cmd_playlist.hpp"
}
-void CmdPlaylistSort::execute()
-{
- // XXX add the mode and type
- playlist_t *pPlaylist = getIntf()->p_sys->p_playlist;
- if( pPlaylist != NULL )
- {
- playlist_Sort( pPlaylist, SORT_TITLE, ORDER_NORMAL );
- }
-
-}
-
-
void CmdPlaylistNext::execute()
{
playlist_t *pPlaylist = getIntf()->p_sys->p_playlist;
playlist_t *pPlaylist = getIntf()->p_sys->p_playlist;
if( pPlaylist != NULL )
{
- playlist_Import( pPlaylist, m_file.c_str() );
+ /*FIXME: Where do we want ot insert ?*/
+ playlist_Import( pPlaylist, m_file.c_str(),
+ pPlaylist->p_local_category, VLC_TRUE );
}
}
{
// FIXME: when the PLS export will be working, we'll need to remove
// this hardcoding...
- playlist_Export( pPlaylist, m_file.c_str(), "export-m3u" );
+ msg_Err( getIntf(), "need to fix playlist save" );
+// playlist_Export( pPlaylist, m_file.c_str(), "export-m3u" );
}
}