finamp icon indicating copy to clipboard operation
finamp copied to clipboard

[Bug] Track repeats three times in Playback History

Open snppls opened this issue 10 months ago • 6 comments

On iOS 17.3.1 and Finamp 0.9.5 every song played appears exactly three times in the Playback History rather than once.

IMG_0367

snppls avatar Apr 08 '24 22:04 snppls

I guess that answers the question if anyone else uses the playback history :P

Can you get me some logs? On Android it works fine, so I think this is a platform-specific issue.

Screenshot_20240409-112358.png

Never-ending story with just_audio and playback tracking 😅

Chaphasilor avatar Apr 09 '24 09:04 Chaphasilor

Attached is the full log - its pretty massive. logs.txt

snppls avatar Apr 09 '24 11:04 snppls

Okay, firstly, thanks a ton for the sponsorship! I really appreciate it <3

Regarding your issue:
The logs you sent me start at 2pm and don't seem to contain the tracks shown in the screenshot. Could you try playing a few songs, taking the screenshot, and then extracting the logs (making sure the app doesn't close before, logs aren't persisted yet)?

I also can't see anything suspicious in the logs, but that is probably due to a lack of logging on my side. I'll try to add more verbose logging to the next update to better track this down.

Lastly, does this really happen with all tracks? Listening all day today I only saw this a single time, and I'm not even sure that really was an error (might've just been me pausing for a while or something).
Could you please take a look at your Jellyfin dashboard to see if the tracks are also reported to the server multiple times, or if it's just a local issue? It should look something like this (with each track being reported as "is playing" first, and then as "has finished playing"). There shouldn't be multiple reports of a track, unless you actually rewound/looped it).

Chaphasilor avatar Apr 09 '24 22:04 Chaphasilor

No problems, I appreciate your hard work.

Attached are my most recent logs and a screen recording to illustrate the issue. The problem seems to be with every track. On rare occasions the track will appear twice rather than three times in playback history.

logs.txt

https://github.com/jmshrv/finamp/assets/156883144/0574ecda-249c-408c-8259-cd0e36db0d23

My Jellyfin dashboard is reporting the following:

home has finished playing Jeff Beck Group - All Shook Up on iPhone today at 11:26 home has finished playing Jeff Beck Group - All Shook Up on iPhone today at 11:16 home is playing Jeff Beck Group - All Shook Up on iPhone today at 11:07 home has finished playing GoGo Penguin - Prayer on iPhone today at 11:07 home is playing GoGo Penguin - Prayer on iPhone today at 11:07 home has finished playing Cleo Sol - Reason on iPhone today at 11:07 home is playing Cleo Sol - Reason on iPhone today at 11:07 home has finished playing Matthew Halsall & The Gondwana Orchestra - Only a Woman on iPhone today at 09:26 home has finished playing Matthew Halsall & The Gondwana Orchestra - Only a Woman on iPhone today at 09:16 home is playing Matthew Halsall & The Gondwana Orchestra - Only a Woman on iPhone today at 09:06

snppls avatar Apr 10 '24 01:04 snppls

I'm guessing this is still a problem?

Chaphasilor avatar Apr 28 '24 22:04 Chaphasilor

Yes, still a problem. The same issue persists as of 0.9.7 on iOS.

snppls avatar Jun 05 '24 05:06 snppls