Пример #1
0
 def cmd_update(self, conn, path=u'/'):
     """Updates the catalog to reflect the current database state.
     """
     # Path is ignored. Also, the real MPD does this asynchronously;
     # this is done inline.
     self.tree = vfs.libtree(self.lib)
     self.updated_time = time.time()
Пример #2
0
 def cmd_update(self, conn, path=u'/'):
     """Updates the catalog to reflect the current database state.
     """
     # Path is ignored. Also, the real MPD does this asynchronously;
     # this is done inline.
     self.tree = vfs.libtree(self.lib)
     self.updated_time = time.time()
Пример #3
0
 def setUp(self):
     self.lib = library.Library(
         ":memory:", path_formats={"default": "albums/$album/$title", "singleton": "tracks/$artist/$title"}
     )
     self.lib.add(_common.item())
     self.lib.add_album([_common.item()])
     self.lib.save()
     self.tree = vfs.libtree(self.lib)
Пример #4
0
 def setUp(self):
     self.lib = library.Library(':memory:', path_formats=[
         ('default', 'albums/$album/$title'),
         ('singleton:true', 'tracks/$artist/$title'),
     ])
     self.lib.add(_common.item())
     self.lib.add_album([_common.item()])
     self.tree = vfs.libtree(self.lib)
Пример #5
0
 def cmd_update(self, conn, path=u"/"):
     """Updates the catalog to reflect the current database state.
     """
     # Path is ignored. Also, the real MPD does this asynchronously;
     # this is done inline.
     print(u"Building directory tree...")
     self.tree = vfs.libtree(self.lib)
     print(u"... done.")
     self.updated_time = time.time()
Пример #6
0
 def cmd_update(self, conn, path=u'/'):
     """Updates the catalog to reflect the current database state.
     """
     # Path is ignored. Also, the real MPD does this asynchronously;
     # this is done inline.
     self._log.debug(u'Building directory tree...')
     self.tree = vfs.libtree(self.lib)
     self._log.debug(u'Finished building directory tree.')
     self.updated_time = time.time()
Пример #7
0
 def setUp(self):
     self.lib = library.Library(':memory:',
                                path_formats={
                                    'default': 'albums/$album/$title',
                                    'singleton': 'tracks/$artist/$title',
                                })
     self.lib.add(_common.item())
     self.lib.add_album([_common.item()])
     self.lib.save()
     self.tree = vfs.libtree(self.lib)
Пример #8
0
 def _build_tree():
     vfs.libtree(lib)
Пример #9
0
 def _build_tree():
     vfs.libtree(lib)