Skip to content

Commit

Permalink
postpone metadata scan at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Jan 15, 2025
1 parent a267ed0 commit 6d073fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions music_assistant/controllers/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,8 @@ async def _get_artist_mbid(self, artist: Artist) -> str | None:

async def _process_metadata_lookup_jobs(self) -> None:
"""Task to process metadata lookup jobs."""
# postpone the lookup for a while to allow the system to start up and providers initialized
await asyncio.sleep(60)
while True:
item_uri = await self._lookup_jobs.get()
try:
Expand Down

0 comments on commit 6d073fa

Please sign in to comment.