fix: error when delete unexisted file
This commit is contained in:
@@ -96,6 +96,7 @@ class MusicCache(dict):
|
||||
self.files.remove(item.path)
|
||||
self.save_dir_cache()
|
||||
elif item.type == 'url':
|
||||
if os.path.exists(item.path):
|
||||
os.remove(item.path)
|
||||
|
||||
if item.id in self:
|
||||
|
Reference in New Issue
Block a user