-
Notifications
You must be signed in to change notification settings - Fork 140
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
self.codec
is not set appropriately on Mac
#468
Comments
@psmgeelen Is this something you'd like to work on? No worries if not. If so, let me know how much guidance would be helpful. |
@xsdg Yes! I would be. In terms of support, I would like to point out that I don't own a Mac, even though by the look of this, it doesn't seem that I really need one. Let me review properly this weekend and get back to you with a PR. What was the formatting again so I can connect my PR to the issue? |
Sounds good. I would suggest writing a new unit test that replicates this issue (see https://github.com/muammar/mkchromecast/blob/master/tests/test_instantiate.py ), and then making sure that your fix causes that unit test to start passing. As for connecting things, you can mention an issue with |
@xsdg I hope this is what you needed :) |
@muammar Could you confirm whether this bug is fixed? |
@xsdg Let me know if you have something else for me to fix ;) |
It's fixed. I wanted to find the problem with the Sonos list not being populated, but got caught up with some stuff at work. Thanks for the follow up. |
Found by @muammar in #466
The issue is here:
mkchromecast/mkchromecast/__init__.py
Line 144 in 1d14cdf
On Mac, the default backend is
"node"
and the default codec is"mp3"
, which is the only codec supported by the node backend. Whenargs.codec
is set to anything else, we override and setself.codec
to"mp3"
, which is correct. But whenargs.codec
is correct, we never copy it intoself.codec
, andself.codec
remains unset.The text was updated successfully, but these errors were encountered: