finamp icon indicating copy to clipboard operation
finamp copied to clipboard

Despite synchronising playback to the server, songs are not scrobbled to last.fm

Open el-tiuri opened this issue 3 years ago • 26 comments

Now, I have no clue if the issue here is with FinAmp or the last.fm plugin. Either way, as the title says, in the admin dashboard I can verify that it is reporting my account playing the song I’m actually playing. However, no music is ever scrobbled despite the last.fm being configured for my account.

It just works with the main Jellyfin app, so I’m wondering if FinAmp might report the tracks being played in a slightly different way or something. I’m on iOS, should that make a difference.

el-tiuri avatar Jul 21 '21 16:07 el-tiuri

Finamp probably isn't doing the full track reporting properly, I'll look into it.

jmshrv avatar Jul 21 '21 16:07 jmshrv

It was working fine for me, does last.fm work when you play songs via the Jellyfin web interface?

jmshrv avatar Jul 26 '21 20:07 jmshrv

Yes, when I play using Jellyfin web interface, it scrobbles to last.fm. FinAmp it doesn't, but used to work. I'd swear it worked last week.

vdatanet avatar Jul 26 '21 20:07 vdatanet

Same for me. Scrobbling works when using the web interface or the Jellyfin app, but not when using FinAmp.

el-tiuri avatar Jul 28 '21 12:07 el-tiuri

Even the songs don’t appear as recently played on Jellyfin’s music recommendations.

vdatanet avatar Jul 28 '21 15:07 vdatanet

+1 on this, neither the listenbrainz nor the lastfm scrobbler plugins work for me via finamp. Scrobbling does work for the following clients for me:

  • mopidy
  • web UI
  • official desktop client.

Just started using finamp, so can't speak to it being new or old issue.

deafmute1 avatar Jul 29 '21 09:07 deafmute1

In https://github.com/jesseward/jellyfin-plugin-lastfm/issues/27#issuecomment-744031810 it is mentioned that the plugin expects a PlaybackStartEvent and PlaybackStopEvent pair to be received by the Jellyfin server for it to register a scrobble. I did a quick code search here and did not find any direct references to these, so I believe that may be what is required for a fix.

gerardlouw avatar Aug 02 '21 20:08 gerardlouw

Should be fixed in 7d56bdd, I'll close this when someone else can verify that it works

jmshrv avatar Aug 06 '21 18:08 jmshrv

Hi,

In 0.5.1 scrobbling to last.fm is fixed and played songs are correctly registered in recently played songs in Jellyfin.

Thanks!

vdatanet avatar Aug 07 '21 18:08 vdatanet

For me on 0.5.1 it is correctly showing the "start" and "finish" events in the Jellyfin activity log. On last.fm it shows that I am busy listening to the song while it is playing, but once it finishes it the scrobble is not actually recorded. Maybe this is a problem not with Finamp.

gerardlouw avatar Aug 07 '21 19:08 gerardlouw

It works for me, but seemingly only with music I haven’t downloaded to my phone.

el-tiuri avatar Aug 08 '21 08:08 el-tiuri

Last track of a queue is scrobbled twice:

Captura de pantalla 2021-08-08 122401 Captura de pantalla 2021-08-08 122331

vdatanet avatar Aug 08 '21 10:08 vdatanet

It works for me, but seemingly only with music I haven’t downloaded to my phone.

It won't scrobble in offline mode, but it should still scrobble downloaded songs when not in offline mode.

jmshrv avatar Aug 18 '21 21:08 jmshrv

Double scrobbling is hopefully fixed in 98da06d, I'll test it properly next time I use the app

jmshrv avatar Aug 18 '21 21:08 jmshrv

It works for me, but seemingly only with music I haven’t downloaded to my phone.

It won't scrobble in offline mode, but it should still scrobble downloaded songs when not in offline mode.

Weird, I’d swear it didn’t work before, but it does now. That’s fantastic!

Is syncing the playback state when you take your device back online planned, by the way? I’d love for scrobbling to work in offline mode.

el-tiuri avatar Aug 21 '21 05:08 el-tiuri

maybe it's a me problem since this got fixed for so many people but it seems that starting a playlist/album just doesn't work to scrobble, they appear just fine on the activity tab and they do appear as scrobbling on last.fm but they never end up getting scrobbled. image

carks32 avatar Aug 22 '21 02:08 carks32

Is syncing the playback state when you take your device back online planned, by the way? I’d love for scrobbling to work in offline mode.

If Jellyfin has a proper way to send bulk playback data, I'll add support. I don't want to just spam start/end playbacks though

jmshrv avatar Aug 22 '21 02:08 jmshrv

maybe it's a me problem since this got fixed for so many people but it seems that starting a playlist/album just doesn't work to scrobble, they appear just fine on the activity tab and they do appear as scrobbling on last.fm but they never end up getting scrobbled. image

I think last.fm lags behind a bit, could you check after a few hours?

jmshrv avatar Aug 22 '21 02:08 jmshrv

I think last.fm lags behind a bit, could you check after a few hours?

after 16 hours, it seems that is just not the case. How could I try to get you logs while I try to replicate this?

carks32 avatar Aug 22 '21 17:08 carks32

The music I listened to last night wasn't synced, so it might actually still be an issue. I'll look into it more

jmshrv avatar Aug 22 '21 17:08 jmshrv

Progress updates are slightly different in the branch I'm working on right now, so there isn't much point in sending logs at the moment.

jmshrv avatar Aug 22 '21 17:08 jmshrv

hey, apologies for bumping an old issue, but i’m facing this exact bug on iOS 15, downloaded from the App Store.

icyphox avatar Nov 11 '21 13:11 icyphox

I still haven't released those improvements from August, new release soon™ (hopefully before the end of November)

jmshrv avatar Nov 11 '21 13:11 jmshrv

~~I'm still using the build from last August, but~~ (EDIT: this still applies on the latest master) I think I know why it doesn't submit even if both start and stop events register correctly.

The ListenBrainz plugin (and likely Last.fm too) only submits listens if a (configurable) minimum percentage of the track was played, this requires the stop event to contain the correct duration value. According to the logs on my server, the value is way too small, causing the listen to get dropped.

Listen to '…' won't be submitted, played 0.0008246693926028897% (15770 ticks), required 50% or 2400000000 ticks

It seems that it uses the progress for the following track in the stop event, which is still at the start.

Maxr1998 avatar Mar 10 '22 17:03 Maxr1998

Has there been any progress on this? There's been a release since this issue but afaict it still doesn't scrobble (tested with the listenbrainz plugin)

sseneca avatar Dec 01 '22 10:12 sseneca

@Maxr1998 initially fixed this in #200, and #484 should adapt his changes into the new queue system...

Chaphasilor avatar Oct 03 '23 14:10 Chaphasilor