github sproft/music-assistant-ytmusic v1.1.2

3 hours ago

Makes plain-YouTube uploads findable in search when you have more than one music provider enabled.

The bug

v1.1.0 added a second search pass over YouTube Music's Videos tab, which is what indexes live recordings and other regular YouTube uploads. Those results were ranked below the catalog songs, with a reserved slice at the end of the list so they could not be crowded out.

That reservation protected them inside this provider's own list, which turned out not to be the list you see. Music Assistant merges every enabled provider's results into one shared window per media type, taking them in turn and then cutting the merge to the requested limit. With several providers answering, only the first few of our items survive the cut, and anything ranked at the end never reaches the screen.

The result: a video was findable when YouTube Music was your only provider and vanished as soon as Spotify or another provider was enabled alongside it. Reported in #77.

The fix

Each result is now scored by how much of what you typed appears in its title, version and artist names. A video moves ahead of the catalog songs when it covers your query clearly better than every song does.

For a query like porridge radio 7 seconds madrid, the catalog only fuzzy-matches "7 seconds" while the upload matches the whole query, so the upload now leads the results and survives the merge.

Ordinary searches are unchanged. A video that matches your query no better than the catalog stays below the songs, which is right for the common case where the catalog holds the recording you meant.

Three limits keep this from going too far:

  • Promoted videos may only take window slots the songs were not going to use, so a query where every video outranks the catalog cannot turn a music search into a wall of YouTube uploads.
  • The reservation from v1.1.0 stays, and the number of videos shown is unchanged. Only their position moves.
  • When there are no catalog songs to outrank, nothing is reordered, so the scoring never second-guesses the order YouTube Music returned.

Updating

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

What's Changed

  • fix: rank a clearly-better video ahead of the catalog songs by @sproft-bot in #81

Full Changelog: v1.1.1...v1.1.2

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

NewReleases is sending notifications on new releases.