def getAlbumlist(self, keywords, data): """ get the album list according to the key words """ if keywords != None: #gmbox.search(keywords, self.updateTreeView) gmbox.searchalbum(keywords, self.updateTreeView)
def run(self): has_more = False if self.type == 2: has_more = gmbox.searchalbum(self.text, self.page) else: has_more = gmbox.get_album_IDs(self.text, self.page) if has_more: next_page = self.page + 1 else: next_page = 0 self.callback(gmbox.albumlist, self.type, self.text, next_page)