def get_media_info(player):
    """ Function to fetch the current playing track and artist information"""
    media = player.get_media()
    info = str(media.get_meta(12))
    info = info.split("-")
    artist = info[0]
    track = info[1]
    return artist, track