Reporting Jellyfin ListenBrainz playback doesn't work for repeated songs

App version

Production

Issue description

When using a ListenBrainz playback reporting for Jellyfin, playback is reported mostly correctly, except for a specific case - playing one song on repeat. In this case, it is properly reported as “now playing” while playing it for the first time, but it dissapears from history (I’m assuming it’s not reported as “Completed”) and doesn’t show as “now playing” after the first repeat.

Device type

Phone

Media provider

Jellyfin

Steps to reproduce

  1. Connect a ListenBrainz plugin to Jellyfin, point it at some data collector (Koito in my case)
  2. Play a specific song on repeat (either repeat one in a bigger queue or repeat all with just that song in the queue, doesn’t matter)
  3. Observe how during the first playback the last played shows the currently playing song
  4. After the repeat, the song doesn’t show up in the listening history again

Additional information

I am aware that for Jellyfin ListenBrainz with symfonium you have to turn on the alternative mode to save song history - I have done so, and saving works perfectly when playing multiple different songs one after another.

This doesn’t happen at all when playing at least two songs (in that case the song history is saved properly, as Song One, Song Two, Song One, etc)

Screenshots

I searched existing issues first

on

I understand that logs are mandatory

on

Log upload name / description

bruhtek-listenbrainz-repeats