From 85544199a74bec86a7fe95d93d377b79f4de54f0 Mon Sep 17 00:00:00 2001 From: multikatt Date: Mon, 6 Apr 2015 17:05:46 -0400 Subject: [PATCH] Cleanup after download --- beetsplug/ipfs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beetsplug/ipfs.py b/beetsplug/ipfs.py index 2eb4459d8..a0f4eb1f9 100644 --- a/beetsplug/ipfs.py +++ b/beetsplug/ipfs.py @@ -15,6 +15,7 @@ from beets import ui from beets.plugins import BeetsPlugin from subprocess import call +from os import rmdir class IPFSPlugin(BeetsPlugin): @@ -57,3 +58,4 @@ def ipfs_get(lib, hash): imp = ui.commands.TerminalImportSession(lib, loghandler=None, query=None, paths=hash) imp.run() + rmdir(hash[0])