Skip to content

fix(spotify): fix unset volatile callback#287

Open
phts wants to merge 5 commits intovolumio:masterfrom
phts:spotify-fix-unset-volatile
Open

fix(spotify): fix unset volatile callback#287
phts wants to merge 5 commits intovolumio:masterfrom
phts:spotify-fix-unset-volatile

Conversation

@phts
Copy link
Copy Markdown
Contributor

@phts phts commented Jan 8, 2024

Very suspicious line and most likely seems like a typo. Theoretically should be a reference to a function, instead of instantly calling it.

Probably this is the reason of some "connect" issues described in https://community.volumio.com/t/new-2023-spotify-plugin/63381

Not tested yet.


UPD

Exactly fixed problem with switching volatile mode by adding flag to ignore all events from spotify during switching from volatile mode to local mode. Spotify sends several "pause" events so it used to switch back to volatile mode.

Also added some refactoring related to this functionality.

Check my commits - they describe what changes they contain.

@volumio
Copy link
Copy Markdown
Owner

volumio commented Jan 8, 2024

You're right, thanks for spotting it. Will require some testing which I'll do this week

@phts phts force-pushed the spotify-fix-unset-volatile branch from 99909d6 to 26f667f Compare January 8, 2024 20:47
@phts
Copy link
Copy Markdown
Contributor Author

phts commented Jan 9, 2024

Added .bind()

@phts phts force-pushed the spotify-fix-unset-volatile branch 2 times, most recently from 44d8290 to df77e58 Compare January 11, 2024 20:08
@phts phts force-pushed the spotify-fix-unset-volatile branch from df77e58 to d50e0a4 Compare January 15, 2024 15:23
@pachulo
Copy link
Copy Markdown

pachulo commented Feb 24, 2024

Any ETA on this @volumio ?

Thanks!

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.

3 participants