[mb-devel] Another client SDK problem (newbie!)
Andy Bridle
andy at bridle.demon.co.uk
Fri Oct 20 10:46:24 UTC 2006
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'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?
Andy B
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.8/489 - Release Date: 20/10/2006
More information about the MusicBrainz-devel
mailing list