Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Latest commit

 

History

History
54 lines (36 loc) · 1.67 KB

artistbrowse.rst

File metadata and controls

54 lines (36 loc) · 1.67 KB

Artist browsing

spotify

The ArtistBrowser class

Note

A sequence of Track objects.

Browse an artist, calling the callback when the browser's metadata is loaded.

param artist

a Spotify artist (does not have to be loaded)

type artist

Artist

param type

this browser's type. One of:

  • 'full' (default): all data will be fetched (deprecated in pyspotify 1.7 / libspotify 11)
  • 'no_tracks': no information about tracks
  • 'no_albums': no information about albums (implies 'no_tracks')

The 'no_tracks' and 'no_albums' browser types also include a list of top tracks for this artist.

param callback

a function with signature : (ArtistBrowser browser, Object userdata)

param userdata

any object

is_loaded

rtype

int

returns

wether this artist browser has finished loading metadata.

albums

rtype

list of Album

returns

the list of albums found while browsing

similar_artists

rtype

list of Artist

returns

the list of similar artists found while browsing

tracks

rtype

list of Track

returns

the list of tracks found while browsing

tophit_tracks

rtype

list of Track

returns

the list of top tracks for this artist found while browsing