Feature request - Import loved tracks from LastFM to ListenBrainz plus questions about doing it manually

Hello,

There’s an existing history import button which seems to work well, but there’s no easy way to import loved songs.

Here’s how far I got with doing it myself:
I’ve been able to extract my favorites from LastFM using this handy website: lastfm-tools

I found ListenBrainz’s API supports loved tracks:
https://listenbrainz.readthedocs.io/en/latest/users/api-usage.html?highlight=love#love-hate-feedback

However, it seems to require MIDBs, which, looking at the exported data from LastFM, not all of my loved tracks have. The document doesn’t mention if this parameter is optional. Is it optional? If so I guess it might be straightforward to write a script that uses the exported data from the aforementioned website, I could do it myself and post it here.

Hi!

Sorry for the delay in answering. The parameter is not optional but you can try to get a MBID like this example: Usage Examples — ListenBrainz 0.1.0 documentation