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

"Play" and "Pause" works but "Flow" and "Loved" not. #15

Open
lxne opened this issue Oct 26, 2020 · 1 comment
Open

"Play" and "Pause" works but "Flow" and "Loved" not. #15

lxne opened this issue Oct 26, 2020 · 1 comment

Comments

@lxne
Copy link

lxne commented Oct 26, 2020

The notifications for play, pause, previous, next are working.
But I cannot get "Flow" or "Loved" to play.
[update: "Artist" and "Title" also don't work.]
Everything is running on a Pi4 with an up to date Buster and MM 2.13.0.

e.g. working:

notificationExec: {
                                notification: "AtMusicOnDemand",
                                payload: {
                                    message: "Play",
                                }
},

not working:

notificationExec: {
                                notification: "AtMusicOnDemand",
                                payload: {
                                    message: "Flow",
                                }
},
notificationExec: {
                                notification: "AtMusicOnDemand",
                                payload: {
                                    message: "Loved",
                                }
},

Any ideas would be welcome.

@lxne
Copy link
Author

lxne commented Oct 26, 2020

I got "Flow" working by changing line 314 in node_helper.js

original line:
await self.page.evaluate(()=>document.querySelector('#page_content > div.channel > section:nth-child(1) > div.carousel > div:nth-child(2) > div.carousel-wrapper > div.carousel-inner > ul > figure:nth-child(1) > div.slide-foreground > ul > button').click());

edited line:
await self.page.evaluate(()=>document.querySelector('#page_content > div.channel > section:nth-child(1) > div.carousel > div:nth-child(2) > div.carousel-wrapper > div.carousel-inner > ul > li:nth-child(1) > figure > ul > li > button‘).click());

Some insights:
"Loved" seems a bit more complicated -> not working.
When I try to play "Loved" the open chromium tab only changes to a Deezer subsite – nothing else happens. Because of being on another page afterwards "Flow" doesn't work anymore. I have to switch back to Deezer's main page manually. Then "Flow" works again.

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