Skip to content
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

change:track called twice #24

Open
Glench opened this issue May 18, 2019 · 0 comments
Open

change:track called twice #24

Glench opened this issue May 18, 2019 · 0 comments

Comments

@Glench
Copy link

Glench commented May 18, 2019

Related to #22, it seems like when tracks are changed, the change:track event can be fired twice, once when the track changes and once when the track is loaded and begins playing.

To test this, you can do:

GPM.on('change:track', () => {
    process.stdout.write('change:track being called!\n')
})

and play around with skipping to the ends of songs, pressing the next button, etc. The event gets fired more frequently than I'd expect.

I found this when looking into this bug: MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-#3383

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

No branches or pull requests

1 participant