mirror of
https://github.com/beetbox/beets.git
synced 2026-02-11 18:02:10 +01:00
Unset item.id to avoid double add items to albums
This hugely improves publishing times
This commit is contained in:
parent
15f17116c5
commit
8ad22749ea
1 changed files with 3 additions and 2 deletions
|
|
@ -262,9 +262,10 @@ class IPFSPlugin(BeetsPlugin):
|
|||
item.path = '/ipfs/{0}/{1}'.format(album.ipfs,
|
||||
os.path.basename(item.path))
|
||||
|
||||
tmplib.add(item)
|
||||
item.store()
|
||||
item.id = None
|
||||
items.append(item)
|
||||
if len(items) < 1:
|
||||
return False
|
||||
self._log.info("Adding '{0}' to temporary library", album)
|
||||
new_album = tmplib.add_album(items)
|
||||
new_album.ipfs = album.ipfs
|
||||
|
|
|
|||
Loading…
Reference in a new issue