Skip to content

Commit

Permalink
Fix ipfs plugin and test_ipfs
Browse files Browse the repository at this point in the history
by using store(inherit=False) for the creation of a new "ipfs album" as well as
when test_ipfs creates album+items to compare with.
Or put differently: Make ipfs and test_ipfs keep the old store() behaviour for
which the plugin initially was built for.
  • Loading branch information
JOJ0 committed Aug 2, 2023
1 parent 8c84695 commit 190fd26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion beetsplug/ipfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,4 +296,4 @@ def create_new_album(self, album, tmplib):
self._log.info("Adding '{0}' to temporary library", album)
new_album = tmplib.add_album(items)
new_album.ipfs = album.ipfs
new_album.store()
new_album.store(inherit=False)
2 changes: 1 addition & 1 deletion test/test_ipfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def mk_test_album(self):

album = self.lib.add_album(items)
album.ipfs = "QmfM9ic5LJj7V6ecozFx1MkSoaaiq3PXfhJoFvyqzpLXSf"
album.store()
album.store(inherit=False)

return album

Expand Down

0 comments on commit 190fd26

Please sign in to comment.