package extended;
import com.jitcaforwin.extended.JitcaiTunesController;
import com.jitcaforwin.extended.api.IJitcaITunesController;
import com.jitcaforwin.extended.api.UserLibrary;
import com.jitcaforwin.extended.api.playlist.PlaylistFolder;
import com.jitcaforwin.extended.api.playlist.UserPlaylist;
import com.jitcaforwin.main.exceptions.JitcaException;
public class PlaylistCreateDemo {
public static void main(String args[]){
try {
IJitcaITunesController iTunes = new JitcaiTunesController(true);
UserLibrary library = iTunes.getLibrary();
PlaylistFolder folder = library.createPlaylistFolder("Demo_Folder");
UserPlaylist playlist = folder.createPlaylist("Demo_Playlist");
playlist.addTrack(iTunes.getPlayerController().currentTrack());
iTunes.close();
} catch (JitcaException e) {
e.printStackTrace();
}
}
}