Skip to content

change:track called twice #24

@Glench

Description

@Glench

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions