small fix for library sync
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Sun, 14 Feb 2021 00:11:48 +0000 (01:11 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Sun, 14 Feb 2021 00:11:48 +0000 (01:11 +0100)
music_assistant/constants.py
music_assistant/managers/library.py
music_assistant/models/player_queue.py

index d0e7efd33272ecee6c66b117f8f90dfca5cf6ff8..0ff18b3c2b18f2210c37e231372b2fd0998848f3 100755 (executable)
@@ -1,6 +1,6 @@
 """All constants for Music Assistant."""
 
-__version__ = "0.0.85"
+__version__ = "0.0.86"
 REQUIRED_PYTHON_VER = "3.7"
 
 # configuration keys/attributes
index 1ac034682a0bf5284c8b8ed6ee05599929a74a0b..505ed0cd864269fce32313e82b2ba2826990626c 100755 (executable)
@@ -328,7 +328,7 @@ class LibraryManager:
         cur_db_ids = []
         for item in await music_provider.async_get_library_tracks():
             db_item = await self.mass.music.async_get_track(
-                item.item_id, provider_id, lazy=False
+                item.item_id, provider_id, track_details=item, lazy=False
             )
             if not db_item.available and not item.available:
                 # track availability changed, sort this out with auto matching magic
index c6015fc3f0ee696f44ad441c239b07edf2ce2e4e..7a57006dbb5de9a30c75388bb406c5538e8119d6 100755 (executable)
@@ -528,7 +528,8 @@ class PlayerQueue:
         """Call when queue_streamer starts playing the queue stream."""
         self._cur_item_time = 0
         self._cur_index = self._queue_stream_next_index
-        return self._queue_stream_next_index
+        self._queue_stream_next_index += 1
+        return self._cur_index
 
     async def async_queue_stream_next(self, cur_index: int) -> None:
         """Call when queue_streamer loads next track in buffer."""