stevenleeg / geemusic

A bridge between Google Music and Amazon's Alexa
GNU General Public License v3.0
662 stars 178 forks source link

[Issue #276] Last.fm scrobbling improvement #278

Closed RandyCupic closed 5 years ago

RandyCupic commented 5 years ago

According to the issue https://github.com/stevenleeg/geemusic/issues/276: Last.fm scrobbling was not working properly. The problem was manifested on the following ways:

I moved the scrobbling code to the finished_playing intent, which means that the song will get scrobbled once it finishes playing. This is still far from perfect, because most people love for the song the be scrobbled after it was played for more than 50%. On this way, the song won't be scrobbled if you, for example, skip the song or stop the playback, even though you might listened to 90% of the song. So it will be scrobbled only if you listen it till the end. But I think that this is far better then before, because there will be no more false scrobbles.

I've been testing this modification for the last week and it works fine. My last.fm list of scrobbled songs is now very clean and precise. No more false or duplicate scrobbles.

Later, when I found some time, I will try to improve this even more, to somehow check on skip/stop if the song has been played for at least X % (where X will be the environment variable) and then scrobble or even better - automatically scrobble the song when it reaches X %.