

@property
def link(self):
    'A :class:`Link` to the playlist.'
    if (not self.is_loaded):
        raise spotify.Error('The playlist must be loaded to create a link')
    sp_link = lib.sp_link_create_from_playlist(self._sp_playlist)
    if (sp_link == ffi.NULL):
        if (not self.is_in_ram):
            raise spotify.Error('The playlist must have been in RAM to create a link')
        raise spotify.Error('Failed to get link from Spotify playlist')
    return spotify.Link(self._session, sp_link=self, add_ref=False)

dataset/ETHPy150Open mopidy/pyspotify/spotify/playlist.py Playlist.link/VarMisuse@95/189 `sp_link`->`self`