hass-music-assistant: V1.1.7: exception looking up a local album

I noticed this exception. Think it is due the ‘Various Artists’ preceded by a related warning?

Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/mass/websockets.py:292 
Integration: Home Assistant WebSocket API (documentation, issues) 
First occurred: 10:10:02 (4 occurrences) 
Last logged: 10:10:17

[547674686896] Error handling message: Unknown error (unknown_error)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
    await func(hass, connection, msg)
  File "/config/custom_components/mass/websockets.py", line 96, in async_get_mass_func
    await orig_func(hass, connection, msg, mass)
  File "/config/custom_components/mass/websockets.py", line 292, in websocket_album_tracks
    for item in await mass.music.albums.tracks(msg[ITEM_ID], msg[PROVIDER])
  File "/usr/local/lib/python3.9/site-packages/music_assistant/controllers/music/albums.py", line 54, in tracks
    tracks = itertools.chain.from_iterable(await asyncio.gather(*coros))
  File "/usr/local/lib/python3.9/site-packages/music_assistant/controllers/music/albums.py", line 111, in get_provider_album_tracks
    return await prov.get_album_tracks(item_id)
  File "/usr/local/lib/python3.9/site-packages/music_assistant/controllers/music/providers/filesystem.py", line 266, in get_album_tracks
    raise MediaNotFoundError(f"Album not found: {prov_album_id}")
music_assistant.models.errors.MediaNotFoundError: Album not found: variousartists10080shits

The warning:

Logger: music_assistant.mass.metadata
Source: /usr/local/lib/python3.9/site-packages/music_assistant/controllers/metadata/__init__.py:161 
First occurred: 10:10:01 (1 occurrences) 
Last logged: 10:10:01

Unable to get musicbrainz ID for artist Various Artists !

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 23 (21 by maintainers)

Most upvoted comments

I will test that version tomorrow. Thanks for all your efforts 😎

Schermafbeelding 2022-05-19 om 21 29 17

used this as test case and it works 😃

Yes, I was able to reproduce it finally

I think you’re right with the & character. Looks like the image proxy (for the embedded image) is choking on that, making the whole thing crash. I’m going to adjust that and make sure that image extraction can not crash the entire track fetching