Beispiel #1
0
 def as_artist(self):
     """Make an :class:`Artist` from the link."""
     sp_artist = lib.sp_link_as_artist(self._sp_link)
     if sp_artist == ffi.NULL:
         return None
     return spotify.Artist(self._session, sp_artist=sp_artist, add_ref=True)
Beispiel #2
0
 def as_artist(self):
     """Make an :class:`Artist` from the link."""
     sp_artist = lib.sp_link_as_artist(self._sp_link)
     if sp_artist == ffi.NULL:
         return None
     return spotify.Artist(self._session, sp_artist=sp_artist, add_ref=True)