def update(self, album, **kwds):
        """
        Endpoint: /album/<id>/update.json

        Updates an album with the specified parameters.
        Returns the updated album object.
        """
        result = self._client.post("/album/%s/update.json" %
                                   self._extract_id(album),
                                   **kwds)["result"]

        # APIv1 doesn't return the updated album (frontend issue #937)
        if isinstance(result, bool): # pragma: no cover
            result = self._client.get("/album/%s/view.json" %
                                      self._extract_id(album))["result"]

        return Album(self._client, result)
def update ( self , album , ** kwds ) : result = self . _client . post ( "/album/%s/update.json" % self . _extract_id ( album ) , ** kwds ) [ "result" ] if isinstance ( result , bool ) : result = self . _client . get ( "/album/%s/view.json" % self . _extract_id ( album ) ) [ "result" ] return Album ( self . _client , result )
Endpoint: /album/<id>/update.json

        Updates an album with the specified parameters.
        Returns the updated album object.