bad request returned when using lastfm::ws::get

Ludovic DEVEAUX deveaux.ludovic31 at gmail.com
Wed Nov 18 01:32:24 CET 2009


Hello!

I'm a student of IUP ISI, Toulouse, France and I'm working on Amarok
(http://gitorious.org/~nataouze/amarok/iup-isi-clone).

One of our job is to get upcoming events for an artist. So, we have
defined an engine for this applet:
src/context/engines/upcomingevents/UpcomingEventsEngine.*

We want to invoke getEvents method from LastFm but the url built seems
this: http://ws.audioscrobbler.com/2.0/?api_key=&artist=MCB
Night&lang=en&method=getEvents instead of an url like this:
http://ws.audioscrobbler.com/2.0/?method=artist.getevents&artist=MCB+Night&api_key=b25b959554ed76058ac220b7b2e0a026%22.

UpcomingEventsEngine.h: http://pastebin.com/m34cea5f
UpcomingEventsEngine.cpp: http://pastebin.com/m652be95c

Please help me to find what fails in the code.

Thanks in advance.


More information about the Amarok-devel mailing list