where does one ask questions like "how do i get music from my nextcloud instance to scrobble to last.fm"
@maya I'm seeking for a self hosted last.fm alternative.
@j I think https://github.com/foocorp/gnu-fm is what runs libre.fm ? I suck all my data out for my own purposes with the last.fm API and I'm happy with it so I don't mind them hosting, but I def get why there should be options in this space
@maya many thanks!
I'm not really worried (in this case) to share my music preferences with last.fm. But I wish to have my own copy of this data.
@j ah! well, I only grab my charts like so:
curl 'https://ws.audioscrobbler.com/2.0/?method=user.getweeklyartistchart&user=USERNAME_GOES_HERE&api_key=API_KEY_GOES_HERE&format=json' | jq '.' >_data/artists.json
curl 'https://ws.audioscrobbler.com/2.0/?method=user.getweeklytrackchart&user=USERNAME_GOES_HERE&api_key=API_KEY_GOES_HERE&format=json' | jq '.' >_data/tracks.json
but if you wanted more granular data, they have
https://www.last.fm/api/show/user.getRecentTracks
and you could set that up on a more aggressive cron
@j it looks like you can specify a time window, so paging through that once a day or so might work nicely
@maya This is awesome! You rock!
@j yw :) sometimes last.fm gives Problematic Unicode Escaped Characters (for emoji, stuff like that) so you may need to fuss with it a little more depending on what code parses it
@maya fedi lol :P