Esempio n. 1
0
 def get_sp_tracks_ids(self, access_token):
     """Returns track ids for release ids"""
     url_suffix = "/albums/{sp_id}".format(sp_id=self.sp_id)
     self.sp_dict = sp_get(url_suffix, access_token)
     self.sp_tracks_ids = [
         tr['id'] for tr in self.sp_dict['tracks']['items']
     ]
     return self.sp_tracks_ids
Esempio n. 2
0
 def get_sp_releases_ids(self, access_token):
     url_suffix = "/artists/{sp_id}/albums".format(sp_id=self.sp_id)
     self.sp_dict = sp_get(url_suffix, access_token)
     self.sp_releases_ids = [item['id'] for item in self.sp_dict['items']]
     return self.sp_releases_ids
Esempio n. 3
0
 def get_sp_artist_dict(self, access_token):
     url_suffix = "/artists/{sp_id}/albums".format(sp_id=self.sp_id)
     self.sp_dict = sp_get(url_suffix, access_token)
     return self.sp_dict
Esempio n. 4
0
 def get_sp_release_dict(self, access_token):
     """Returns track ids for release ids"""
     url_suffix = "/albums/{sp_id}".format(sp_id=self.sp_id)
     self.sp_dict = sp_get(url_suffix, access_token)
     return self.sp_dict
Esempio n. 5
0
 def get_sp_artists_ids(self, access_token):
     url_suffix = "/tracks/{sp_id}".format(sp_id=self.sp_id)
     self.sp_dict = sp_get(url_suffix, access_token)
     self.sp_artists_ids = [item['id'] for item in self.sp_dict['artists']]
     return self.sp_artists_ids
Esempio n. 6
0
 def get_sp_track_dict(self, access_token):
     url_suffix = "/tracks/{sp_id}".format(sp_id=self.sp_id)
     self.sp_dict = sp_get(url_suffix, access_token)
     return self.sp_dict