-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
Added possibility to turn on/off shuffle using MPRIS #318
Conversation
Removed "user:" from URIType check because Spotify doesn't always provide it.
…the Spotify URI so that it matches the functionality of the official Spotify client.
…n support podcasts.
# Conflicts: # src/mpris.rs
Added possibility to search for Podcast Episodes.
MPRIS OpenUri function now supports Spotify url links.
You could do it better using |
Changed the default value to be retrieved from spotify.
Thanks for the suggestion @r4v3n6101! I have changed it to use |
Previously an |
Also if |
I was reading the MPRIS specification about the Shuffle property and there was no mention about toggling. |
Using |
Which do you think would be a better default, true or false? Or just the current state but inverted |
I think the best one is not using shuffle cause I'm assuming there's no shuffle by default. Also you can ask @hrkfdn as he defines code design. |
Yeah. Defaulting to no shuffle is probably the best. @hrkfdn what do you think? |
The specifications state that clients should handle the no parameter case
gracefully, so I'd suggest to do nothing if no setting is supplied, i.e.
return.
…On Sat, Nov 14, 2020, 7:48 AM Bettehem ***@***.***> wrote:
Yeah. Defaulting to no shuffle is probably the best. @hrkfdn
<https://github.com/hrkfdn> what do you think?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#318 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAE3LD7CNDHZGFFQ6ODVRLSPYR5FANCNFSM4TS3H2OA>
.
|
So in the case that no setting is supplied, do you mean it would be good to best |
I think |
I have pushed a minor change to implement this behavior. Could you confirm that it works for your use-case? |
Yes! It works as it should. Thank you. |
Now there is the next problem though. |
And not just once during DBus/MPRIS setup. Also, redraw UI when shuffle state has changed.
Ah, right. Sorry, I didn't have access to a machine running DBus to test it. Now it should work as expected. |
Merged, thanks! |
Hello, I added shuffle support for MPRIS.
Solves #317.
For example using playerctl:
playerctl -p ncspot shuffle on
-> Turns shuffle onplayerctl -p ncspot shuffle off
-> Turns shuffle offHowever I'm facing one problem that I can't figure out.
After adding these changes, running
playerctl -p ncspot shuffle
always returns "Off" regardless of the actual shuffle state.Without these changes it functions as expected, and returns "On" or "Off" depending on the shuffle state.
I'd imagine it's probably a simple fix but I'm still a Rust newbie so I can't quite figure it out on my own :/