fix: file metadata not saved when scanning

This commit is contained in:
Terry Geng 2020-03-08 15:23:40 +08:00
parent 86b66cff77
commit 45b83af4ba

View File

@ -115,6 +115,8 @@ class MusicLibrary(dict):
if item.validate():
self.dir.add_file(file)
self.files.append(file)
self.log.debug("library: music save into database: %s" % item.format_debug_string())
self.db.insert_music(item.to_dict())
self.file_id_lookup[file] = item.id
self.save_dir_cache()