def add_to_library(self, id):
     try:
         response = api.api_call('addUserFavoriteSong', {
             'songID': id,
         })
         print("add: ", response)
     except Exception as e:
         print("add error:", e)
 def find_first_by_title(self, title):
     try:
         response = api.api_call('getSongSearchResults', {
             'query': title,
             'country': 'USA',
             'limit': 1,
         })
         songID = response['result']['songs'][0]['SongID']
         print("search: ", songID)
         return songID
     except Exception as e:
         print("search error: ", e, response)
         raise e