13141516171819202122
private static Library getITunesLibrary() { File libraryFile = ITunesUtils.getITunesLibrary(); if(libraryFile != null) { Library library = new Library(libraryFile); return library; } return null; }
21222324252627282930313233
return null; } public static Collection<Playlist> getITunesPlaylists() { Library library = getITunesLibrary(); if(library == null) { return null; } Collection<Playlist> playlists = library.getPlaylists(); return playlists; }