mirror of
https://github.com/beetbox/beets.git
synced 2025-12-30 20:42:37 +01:00
Cleanup after download
This commit is contained in:
parent
d3aff50dbe
commit
85544199a7
1 changed files with 2 additions and 0 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Reference in a new issue