~unity-team/unity-lens-music/unity-lens-music-5.0

Viewing all changes in revision 83.

  • Committer: Mikkel Kamstrup Erlandsen
  • Date: 2012-07-12 07:13:07 UTC
  • mfrom: (82.1.1 5.0)
  • Revision ID: mikkel.kamstrup@gmail.com-20120712071307-ajvkqcf19fh47ekq
Backport from trunk: Fix u1 search results to not seem too random. Lowers mem churn in musicstore scope quite a bit.

This was rooted in the fact that musicsearch.ubuntu.com returns a mix of artists, albums, and tracks in the results. We do not show artists, so if the results contains mainly that, then we're screwed (even though there could be many potential track/album matches outside the fetched results). Luckily newer versions of the webservice contains some parameters to tweak this behaviour. This commit makes us use that.

In addition to using the new musicsearch API I also lowered memory churn quite considerably by removing the need to create a lot of Track/Album objects and do excessive string copying.

Approved by: mhr3. Fixes: https://bugs.launchpad.net/unity-lens-music/+bug/1021656

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: