From 4e4fa0580a32431f8c8bd6cbe65b29eda65483de Mon Sep 17 00:00:00 2001 From: multikatt Date: Tue, 7 Apr 2015 14:31:12 -0400 Subject: [PATCH] Renaming hash to not collide with built in funct --- beetsplug/ipfs.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/beetsplug/ipfs.py b/beetsplug/ipfs.py index 31c6b7d2c..1658e6075 100644 --- a/beetsplug/ipfs.py +++ b/beetsplug/ipfs.py @@ -52,10 +52,10 @@ class IPFSPlugin(BeetsPlugin): self._log.info('Adding {0} to ipfs', album_dir) call(["ipfs", "add", "-r", album_dir]) - def ipfs_get(self, lib, hash): - call(["ipfs", "get", hash[0]]) - self._log.info('Getting {0} from ipfs', hash[0]) + def ipfs_get(self, lib, _hash): + call(["ipfs", "get", _hash[0]]) + self._log.info('Getting {0} from ipfs', _hash[0]) imp = ui.commands.TerminalImportSession(lib, loghandler=None, - query=None, paths=hash) + query=None, paths=_hash) imp.run() - rmdir(hash[0]) + rmdir(_hash[0])