Skip to content

Commit a23e29e

Browse files
committed
Better handling of metadata retrieval
1 parent 289680b commit a23e29e

File tree

3 files changed

+174
-194
lines changed

3 files changed

+174
-194
lines changed

music_assistant/server/controllers/media/base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@ async def get(
270270
item_id,
271271
provider_instance_id_or_domain,
272272
):
273+
# schedule a refresh of the metadata on access of the item
274+
# e.g. the item is being played or opened in the UI
275+
self.mass.metadata.schedule_update_metadata(library_item)
273276
return library_item
274277
# grab full details from the provider
275278
return await self.get_provider_item(

0 commit comments

Comments
 (0)