mirror of
https://github.com/beetbox/beets.git
synced 2025-12-17 06:07:17 +01:00
album.move() now also stores
This lets items see any modifications to the album (when the album's fields are dirty). It's also symmetric with the same method on items.
This commit is contained in:
parent
8bcbe1dea2
commit
c2acab510d
1 changed files with 7 additions and 2 deletions
|
|
@ -1721,12 +1721,17 @@ class Album(LibModel):
|
|||
self._lib.directory)
|
||||
|
||||
def move(self, copy=False, basedir=None):
|
||||
"""Moves (or copies) all items to their destination. Any album
|
||||
"""Moves (or copies) all items to their destination. Any album
|
||||
art moves along with them. basedir overrides the library base
|
||||
directory for the destination.
|
||||
directory for the destination. The album is stored to the
|
||||
database, persisting any modifications to its metadata.
|
||||
"""
|
||||
basedir = basedir or self._lib.directory
|
||||
|
||||
# Ensure new metadata is available to items for destination
|
||||
# computation.
|
||||
self.store()
|
||||
|
||||
# Move items.
|
||||
items = list(self.items())
|
||||
for item in items:
|
||||
|
|
|
|||
Loading…
Reference in a new issue