I only started using ListenBrainz recently, and the first thing I tried was to import my Last.fm history. For my account (about 422000 scrobbles) it takes several hours to process all pages of output (roughly 8500 pages).
I examined the code of the importer, and it looks like the importer is not specifying limit
parameter to Last.fm API method user.getRecentTracks
(as seen here), which means it defaults to a small value of 50 scrobbles returned per one API request.
The API description states that the maximum value is 200, but this information is not accurate, as the API response for invalid limit
value suggests even greater maximum value:
{
"message": "limit param out of bounds (1-1000)",
"error": 6
}
The value of 1000 works, I am aware of existing applications that use it (e.g. https://lastfmstats.com)
Is using the default value for limit
parameter in the Last.fm importer deliberate? Has it ever been considered to increase this limit to 200, or maybe even 1000? That would considerably shorten import times.