Skip to content

adjust scrobble timing logic #462

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

rossbates
Copy link
Contributor

Using 20 seconds for maximumWaitDurationInSec creates a situation where the player will submit submission=true after only 20 seconds of play time. This creates a problem as it fires anytime the user clicks pause/next.

Setting it to 4 minutes follows the standard scrobble logic of 50% of the song duration (curPlayingSong.duration / 2) or 4 minutes for any song longer than 4 minutes.

@rossbates
Copy link
Contributor Author

@BLeeEZ wanted to see if you had thoughts or feedback on including this change in your main branch. The change itself is trivial but the implications for how scrobbles behave is significant. While driving and listening to a large playlist on shuffle it's pretty common to listen to 20+ seconds of a song then click next.

I would just make the change in my local branch and create my own build but I have not been able to get a CarPlay entitlement (which is in itself pretty ridiculous that I can't get permission to run software I own on hardware I own)

@BLeeEZ
Copy link
Owner

BLeeEZ commented May 10, 2025

Hi,
first of all thank you for getting familiar with the code and providing this PR.
Is the increased time working with short songs too (shorter than the maximumWaitDurationInSec)?

@rossbates
Copy link
Contributor Author

@BLeeEZ the short answer is yes, this works for songs of any length. A song becomes eligible to be posted with submission=true at 50% played or 4 minutes. When testing though I found an additional issue where the scrobble timer continues to run when the song is paused. I'm going to close this and create a new branch on my end with some more significant changes.

@rossbates rossbates closed this May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants