def get_toplevel(self): keys = self.api.get_sorted_unique_album_attributes(self.field) return [ models.Ref.directory(name=unicode(key), uri=assemble_uri(self.ref.uri, id_value=key)) for key in keys ]
def __init__(self, *args, **kwargs): super(BeetsLibraryProvider, self).__init__(*args, **kwargs) self.remote = self.backend.beets_api self.category_browsers = [] for key, label, browser_class in self.root_categorie_list: ref = models.Ref.directory(name=label, uri=assemble_uri( self.root_directory.uri, key)) browser = browser_class(ref, self.remote) self.category_browsers.append(browser)
def get_toplevel(self): keys = self.api.get_sorted_unique_album_attributes(self.field) return [models.Ref.directory(name=unicode(key), uri=assemble_uri( self.ref.uri, id_value=key)) for key in keys]