def get_track(spotify):
    """Return the name(+extra details) of the currently playing track from Spotify"""
    trackinfo = spotify.Get("org.mpris.MediaPlayer2.Player", "Metadata")

    # Get track information from DBus dictionary
    album = trackinfo.get("xesam:album")
    title = trackinfo.get("xesam:title")
    url = trackinfo.get("xesam:url")

    # The artist list is provided as an array. Combine all artists to a single string.
    artist = str(", ".join(trackinfo.get("xesam:artist"))).strip()

    return "%s - %s [%s] (%s)" % (title, artist, album, url)