

@staticmethod
@ffi.callback('void(sp_playlist *playlist, int *tracks, int num_tracks, void *userdata)')
def tracks_removed(sp_playlist, tracks, num_tracks, userdata):
    logger.debug('Tracks removed from playlist')
    playlist = Playlist._cached(spotify._session_instance, playlist, add_ref=True)
    tracks = [int(tracks[i]) for i in range(num_tracks)]
    playlist.emit(PlaylistEvent.TRACKS_REMOVED, playlist, tracks)

dataset/ETHPy150Open mopidy/pyspotify/spotify/playlist.py _PlaylistCallbacks.tracks_removed/VarMisuse@44/94 `sp_playlist`->`playlist`