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

Introduce fixup_player_properties #42

Merged
merged 5 commits into from
Aug 23, 2024
Merged

Introduce fixup_player_properties #42

merged 5 commits into from
Aug 23, 2024

Conversation

dukeofphilberg
Copy link
Contributor

@dukeofphilberg dukeofphilberg commented Aug 22, 2024

This PR implements the fixup_player_properties function. This function can be used on a dict[PlayerAttribute, str] to automatically decode the artist/album/title string and fixup the status if the value does not fall within our PlayingStatus enum.

This fixes #38

@dukeofphilberg dukeofphilberg marked this pull request as ready for review August 22, 2024 13:50
@silamon silamon merged commit 80da7e5 into main Aug 23, 2024
5 checks passed
@silamon silamon deleted the fixup-player-properties branch August 23, 2024 05:34
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.

PlayingStatus enum incomplete
2 participants