def create(self): self.tracks=[] url=tools.get_url("echonest","%sCreate"%self.tipo ,self.data) j=tools.getjson(url) logging.error(url) session=j["response"]["session_id"] self.session=session url=tools.get_url("echonest","getNext10" ,session) logging.error(url) j=tools.getjson(url) self.parseTracks(j)
def getNext(self): self.tracks=[] playlist={"data":[]} url=tools.get_url("echonest","getNext",self.session) logging.error(url) j=tools.getjson(url) logging.error(url) logging.error(j) self.parseTracks(j)