[mb-devel] Another client SDK problem (newbie!)
Lukáš Lalinský
lalinsky at gmail.com
Fri Oct 20 11:07:07 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Andy Bridle wrote:
> Thanks, Lukas, for your response to my previous post. I'm just ignoring the
> assert failures for now, and it seems to be OK.
I personally wouldn't ignore it, I will probably cause problems with non-ASCII
results in general.
> I've come up against another problem. I searched the archives and found a
> thread from March 2003 which raised the same question, but the thread didn't
> go very far. Imagine the following scenario:
>
> 1) App allows user to search for an album starting from either an artist or
> an album search.
>
> 2) Lazy user enters 'Springsteen' in the artist search.
>
> 3) Query returns list of 4 matching Springsteens.
>
> 4) User selects 'Bruce Springsteen' from Springsteen list. App uses ArtistId
> (saved from 1st query) to query for 'Bruce Springsteen' and his albums.
>
> This is what I'm trying to code for with the Client SDK. But what's
> happening is:
>
> 1) App does a MBQ_FindArtistByName on 'Springsteen' and correctly returns an
> Artist list with 4 matching Artists. Search depth is set to 2 because Artist
> list may be long (eg if MaxItems set to 50) and don't want to get all CDs at
> this stage.
>
> 2) User selects 'Bruce Springsteen' from list and app uses Artist MBID to do
> a MBQ_GetArtistById query. Depth is set to 3 so that albums are also
> returned.
>
> 3) Query correctly returns an Artist list with just the one entry for 'Bruce
> Springsteen'.
>
> 4) App selects the first (and only) artist in the list.
> MBE_ArtistGetArtistName correctly shows 'Bruce Springsteen'. However,
> MBE_GetNumAlbums gives an album count of 322 (I know he's prolific, but...)
> and iterating through the albums shows every album with an empty name, but
> with what looks like a valid Album MBID (eg the 1st album in the 'Bruce
> Springsteen' album list has an MBID of
> "473be043-508f-43d7-a6fe-1085f211436c").
>
> Very mysterious. I'm obviously misunderstanding something. Can anyone help?
Not mysterious. You said you are using depth 3, which returns list of all album
IDs, but not any details about them.
http://musicbrainz.org/mm-2.1/artist/70248960-cb53-4ea4-943a-edb18f7d336f/3
- -Lukáš
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (MingW32)
iD8DBQFFOK3bOjmgKpITL3sRAtxtAJ40any0lr6W0AeA3kHnYccvbpnfzQCbBgb3
l5H/p5LCcdQdan8RBVKcO90=
=rnbl
-----END PGP SIGNATURE-----
More information about the MusicBrainz-devel
mailing list