Fix ipfs plugin and test_ipfs

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.
This commit is contained in:
J0J0 Todos 2023-08-02 19:56:07 +02:00
parent 94d00418b4
commit 8d835b8cab
2 changed files with 2 additions and 2 deletions

View file

@ -296,4 +296,4 @@ class IPFSPlugin(BeetsPlugin):
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)

View file

@ -87,7 +87,7 @@ class IPFSPluginTest(unittest.TestCase, TestHelper):
album = self.lib.add_album(items)
album.ipfs = "QmfM9ic5LJj7V6ecozFx1MkSoaaiq3PXfhJoFvyqzpLXSf"
album.store()
album.store(inherit=False)
return album