Package gmusic.api.model

Examples of gmusic.api.model.Playlists


            Song _song = new Song();
            _song.setId("bc94ef2b-7d16-3815-b1cb-63fbef75b87c");
            api.downloadSong(_song);

            Playlists playlists = api.getAllPlaylists();
            if (playlists.getMagicPlaylists() != null)
            {
                for (Playlist list : playlists.getMagicPlaylists())
                {
                    System.out.println("--- " + list.getTitle() + " "
                            + list.getPlaylistId() + " ---");
                    for (Song song : list.getPlaylist())
                    {
                        System.out.println(song.getName() + " "
                                + song.getArtist());
                    }
                }
            }

            Collection<Song> tracks = api.getAllSongs();

            for (Song track : tracks)
            {
                if (track.getAlbumArtUrl() != null)
                {
                    File track_f = api.downloadSong(track);
                    populateFileWithTuneTags(track_f, track);
                    break;
                }
            }

            for (Playlist list : playlists.getPlaylists())
            {
                System.out.println("--- " + list.getTitle() + " "
                        + list.getPlaylistId() + " ---");
                for (Song song : list.getPlaylist())
                {
View Full Code Here

TOP

Related Classes of gmusic.api.model.Playlists

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.