

@staticmethod
@ffi.callback('void(sp_playlist *playlist, byte *image, void *userdata)')
def image_changed(sp_playlist, image_id, userdata):
    logger.debug('Playlist image changed')
    playlist = Playlist._cached(spotify._session_instance, sp_playlist, add_ref=True)
    sp_image = lib.sp_image_create(spotify._session_instance._sp_session, image_id)
    image = spotify.Image(spotify._session_instance, sp_image=sp_image, add_ref=False)
    playlist.emit(PlaylistEvent.IMAGE_CHANGED, playlist, image)

dataset/ETHPy150Open mopidy/pyspotify/spotify/playlist.py _PlaylistCallbacks.image_changed/original