Author Topic: Scrobble songs shorter than 30 seconds  (Read 2285 times)

Eggaian

  • Jr. Member
  • **
  • Posts: 22
  • You all know exactly who I am. Now, say my name.
Could the built-in scrobbler be modified so as to allow scrobbling of songs shorter than/or that are 30 seconds long?
I listen to a lot of hardcore that has short songs that are not scrobbled to my last.fm account and I wish for a way to do this.


Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34268
i tried removing the 30 second restriction but last.fm returns an 'ignored' status and doesnt count the scrobble

ost

  • Jr. Member
  • **
  • Posts: 94


Buxbaum666

  • Newbie
  • *
  • Posts: 7
i tried removing the 30 second restriction but last.fm returns an 'ignored' status and doesnt count the scrobble
Could you please give some information on what the internal plugin sends to the lfm API? I would like to know what duration it sends to lfm and if there's any rounding going on beforehand.

The plugin I made works but the threshold does not seem to be exactly 30 seconds. I pinpointed the duration when lfm starts to accept songs from the built-in scrobbler to exactly 29,963 milliseconds on my machine so I set the plugin to automatically scrobble anything track shorter than that. Someone on github reported to me that they're still experiencing double scrobbles with a song that is 29,960ms long.
If you could clear up what happens here internally, that would be very helpful.

Edit: by brute-force testing generated audio files of various durations, I figured out that MusicBee 3.5 rounds up to 30 seconds from 29,467ms.
Last Edit: December 14, 2023, 08:40:38 PM by Buxbaum666