mirror of
https://github.com/beetbox/beets.git
synced 2025-12-29 12:02:44 +01:00
small fix
This commit is contained in:
parent
27b1d6d7cc
commit
a3d8105a5a
1 changed files with 3 additions and 2 deletions
|
|
@ -199,6 +199,7 @@ class ConvertPlugin(BeetsPlugin):
|
|||
@ConvertPlugin.listen('import_task_files')
|
||||
def _cleanup(task, session):
|
||||
for path in task.old_paths:
|
||||
if path in _convert_tmp and os.path.isfile(path):
|
||||
util.remove(path)
|
||||
if path in _convert_tmp:
|
||||
if os.path.isfile(path):
|
||||
util.remove(path)
|
||||
_convert_tmp.remove(path)
|
||||
|
|
|
|||
Loading…
Reference in a new issue