From 8d835b8cabe45f71aa42e0ba564750734dd29347 Mon Sep 17 00:00:00 2001 From: J0J0 Todos Date: Wed, 2 Aug 2023 19:56:07 +0200 Subject: [PATCH] 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. --- beetsplug/ipfs.py | 2 +- test/test_ipfs.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/beetsplug/ipfs.py b/beetsplug/ipfs.py index 5794143bd..11f131418 100644 --- a/beetsplug/ipfs.py +++ b/beetsplug/ipfs.py @@ -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) diff --git a/test/test_ipfs.py b/test/test_ipfs.py index 8f72f5132..593a01b8f 100644 --- a/test/test_ipfs.py +++ b/test/test_ipfs.py @@ -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