-
-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mpris): Restructuring and cleanup
* MPRIS: Restructured existing implementation My pr addresses some of the inconsistencies in ncspot's mpris implementation. While the previous logic was technically good enough, it was inflexible and reported redundant information. This will make it easier for software, that processes mpris events in some way, to accurately react to player updates. - 'Metadata' and 'Playback' updates have been separated into there own command - Mpris commands are only emitted from within spotify.rs - Some parts of the application creation logic has been restructured to allow for mpris events to be emitted upon startup - The initial song loading code has been moved from 'Queue::new' into 'Application::new'. * MPRIS: implemented most clippy suggestions * Fix: applied clippy suggestions + format * MPRIS: Renamed MprisCommands to be more resonable I've added a clippy exception so it does not complain to us about enum variants starting with the same prefix. --------- Co-authored-by: haruInDisguise <--help>
- Loading branch information
1 parent
8eb7d1d
commit 3893a0e
Showing
4 changed files
with
59 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters