Esempio n. 1
0
	def get_album_songs(self, album_id):
		try:
			url = get_album_url(album_id)
			result = self.get_request(url)
			return result['album']['songs']
		except:
			print('get_album_songs sleep 10 seconds')
			time.sleep(10)
			url = get_album_url(album_id)
			result = self.get_request(url)
			return result['album']['songs']
Esempio n. 2
0
    def get_album_songs(self, album_id):
        """
        Get all album songs info by album id
        :param album_id:
        :return:
        """
        url = get_album_url(album_id)
        result = self.get_request(url)

        return result['album']['songs']