mirror of
https://github.com/beetbox/beets.git
synced 2025-12-09 18:12:19 +01:00
fix playlist versioning & directory recursion in BPD
This commit is contained in:
parent
078252d31e
commit
7310e9ea10
1 changed files with 2 additions and 1 deletions
|
|
@ -843,7 +843,7 @@ class Server(BaseServer):
|
|||
for name, itemid in sorted(node.files.iteritems()):
|
||||
# "yield from"
|
||||
for v in self._all_items(itemid): yield v
|
||||
for name, subdir in sorted(node.files.iteritems()):
|
||||
for name, subdir in sorted(node.dirs.iteritems()):
|
||||
for v in self._all_items(subdir): yield v
|
||||
|
||||
def _add(self, path, send_id=False):
|
||||
|
|
@ -854,6 +854,7 @@ class Server(BaseServer):
|
|||
self.playlist.append(item)
|
||||
if send_id:
|
||||
yield u'Id: ' + unicode(item.id)
|
||||
self.playlist_version += 1
|
||||
|
||||
def cmd_add(self, conn, path):
|
||||
"""Adds a track or directory to the playlist, specified by a
|
||||
|
|
|
|||
Loading…
Reference in a new issue