Chore: Start full sync after reset of library db
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 6 Feb 2025 10:13:43 +0000 (11:13 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 6 Feb 2025 10:13:43 +0000 (11:13 +0100)
music_assistant/controllers/music.py

index 321c8a8c32362c62caad15673c4fc2848207e2c7..ca4b851cc8f4c6e8396933a5e7d319a8479fb56d 100644 (file)
@@ -1261,6 +1261,8 @@ class MusicController(CoreController):
         db_path = os.path.join(self.mass.storage_path, "library.db")
         await asyncio.to_thread(os.remove, db_path)
         await self._setup_database()
+        # initiate full sync
+        self.start_sync()
 
     async def __create_database_tables(self) -> None:
         """Create database tables."""