github sproft/music-assistant-ytmusic v1.1.1

latest release: v1.1.2
3 hours ago

Fixes a track whose artist is unknown failing to be added to the library.

The bug

Uploads without a linked artist channel get a placeholder artist mapping with the id unknown. _minimal_track has used it since the first release, and since v1.1.0 the videos-tab search fallback uses it too, so plain-YouTube uploads surfaced by search carry it.

That one id was the only fake artist id get_artist refused to resolve. It missed both the unknown_<name> stub branch and the UC channel-id shape check, so it raised MediaNotFoundError.

Music Assistant resolves a track's artist mappings through the provider's get_artist in two places a user can see:

  • Opening the artist page produced an error toast (artist://unknown not found on provider …) and a permanently empty page.
  • Adding the track to the library failed. Music Assistant treats MediaNotFoundError as "drop this artist", and when the placeholder was the track's only artist the add then failed hard with Track is missing artist(s) and nothing was saved.

Playback was never affected. The queue path swallows the error, drops the artist, and streams anyway.

The fix

get_artist now returns the same local stub the unknown_<name> ids already got, with the name falling back to Unknown Artist for the bare id. No YouTube Music API call is involved, since that id never had one behind it.

Verified against Music Assistant 2.9.13 and 2.10.0rc4, which share identical code on this path.

Updating

Re-run the installer script, or let the watcher add-on pick the release up, then restart Music Assistant.

What's Changed

  • fix: resolve the bare "unknown" artist id to a stub by @sproft-bot in #80

Full Changelog: v1.1.0...v1.1.1

Don't miss a new music-assistant-ytmusic release

NewReleases is sending notifications on new releases.