phw / foo_listenbrainz2

A foobar2000 component to submit the music you listened to to ListenBrainz.
MIT License
52 stars 5 forks source link

Import listens from file / Export listens to file #6

Open regorxxx opened 2 years ago

regorxxx commented 2 years ago

The current API allows to export/import listens from/to the server, using JSON. Also the web.

BUT the current web doesn't allow to import listens/feedback from a given JSON file.

Although I'm in the process of creating SMP scripts to integrate LB features within foobar (right now the playlist management is done), thought this one would be a natural addition to the plugin.

phw commented 2 years ago

Sounds useful. Export is trivial, and if there is an export an import makes sense as well. In theory LB itself would detect direct duplicates, would need to be checked. But if not that's easy enough to implement. Only thing to consider is that it should be clever doing the lookups, but one can filter by timestamps via the LB API, so it should be possible to verify multiple listens in a close enough timerange in a single call.