'Sets the album\'s cover art to the image at the given path.
The image is copied (or moved) into place, replacing any
existing art.
Sends an \'art_set\' event with `self` as the sole argument.'

def set_art(self, path, copy=True):

    path = bytestring_path(path)
    oldart = self.artpath
    artdest = self.art_destination(path)
    if (oldart and samefile(path, oldart)):
        return
    elif samefile(path, artdest):
        self.artpath = path
        return
    if (oldart == artdest):
        util.remove(oldart)
    artdest = util.unique_path(artdest)
    if copy:
        util.copy(path, artdest)
    else:
        util.move(path, artdest)
    self.artpath = artdest
    plugins.send('art_set', album=self)
