Android 2.0.5: ListenBrainz and a scrobble queue that can't get stuck

- Connect ListenBrainz with a user token (checked), disconnect, send now
- Listens carry MusicBrainz ids, ISRC, disc, tags, release artist read from the file
- Last.fm: dead sessions sign out and keep the queue; rejected data is dropped;
  >14-day-old scrobbles dropped; recording MBID sent
- Each service flushes on its own

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
astar76 2026-12-03 08:33:13 -06:00
commit c0dc2c68c3

View file

@ -1263,7 +1263,7 @@ public class MusicService extends MediaBrowserService implements AudioManager.On
this.countedPlay = false;
this.startedSec = System.currentTimeMillis() / 1000;
this.lastTick = SystemClock.elapsedRealtime();
if (song == null || !LastFm.enabled()) {
if (song == null || !LastFm.anyOn()) {
return;
}
LastFm.nowPlaying(song);