def _get_current_search(self): """ Return current searches @return str """ search = ArtworkSearchWidget._get_current_search(self) if search != "": pass else: search = self.__name return search
def _get_current_search(self): """ Return current searches @return str """ search = ArtworkSearchWidget._get_current_search(self) if search != "": pass else: is_compilation = self.__album.artist_ids and\ self.__album.artist_ids[0] == Type.COMPILATIONS if is_compilation: search = self.__album.name else: search = "%s+%s" % (self.__album.artists[0], self.__album.name) return search