def get_playlist_songs(self, playlist_id): try: print(playlist_id) url = get_playlist_url(playlist_id) print(url) result = self.get_request(url) return result['result']['tracks'], result['result']['name'] except: print('get_playlist_songs sleep 10 seconds') time.sleep(10) url = get_playlist_url(playlist_id) result = self.get_request(url) return result['result']['tracks'], result['result']['name']
def get_playlist_songs(self, playlist_id): """ Get a public playlist all songs :param playlist_id: :return: """ url = get_playlist_url(playlist_id) result = self.get_request(url) return result['result']['tracks'], result['result']['name']