Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: Audio scrobbler won't work when using UPNP Renderer or Tidal
#8
I'm neither a regular user of last.fm nor an expert on its operation, but I took 10 minute to read its API.

The "last played" info is sent to last.fm in one service request and the "scrobble" info is sent in another.

Here's a snippet from the mpdas source code

Code:
       OpenURL(GetServiceURL(), CreateScrobbleMessage(0, entry).c_str());
       if(_response.find("<lfm status=\"ok\">") != std::string::npos) {
               iprintf("%s", "Scrobbled successfully.");
               retval = true;
       }
       else if(_response.find("<lfm status=\"failed\">") != std::string::npos) {
               eprintf("%s%s", "Last.fm returned an error while scrobbling:\n", _response.c_str());
               if(CheckFailure(_response))
                       Failure();

Basically, it says that if last.fm returns lfm status="ok" to the scrobble service request, then print "Scrobbled successfully". (You can read more about the scrobble service request and the lfm status parameter at https://www.last.fm/api/scrobbling)

It seems to me that if you are seeing this message in mpdas output but not seeing your track show up in your last.fm account, then you need to query the maintainer of the mpdas source code (using the issues log at https://github.com/hrkfdn/mpdas), or possibly the query the last.fm folks about possible post-receipt filtering.

Regards,
Kent
Reply


Messages In This Thread
RE: Audio scrobbler won't work when using UPNP Renderer or Tidal - by TheOldPresbyope - 01-30-2019, 04:01 PM

Forum Jump: