public int getIndexPlaylist (String nome){
    
        int index=0;
        for(int i=0; i<playlists.size(); i++){
        
            if(playlists.get(i).getName().equalsIgnoreCase(nome)){
            
                index=i;
            }
        }
        
        return index;
    }