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

MultipleChromecastsFoundError #8

Closed
muammar opened this issue Aug 15, 2016 · 2 comments
Closed

MultipleChromecastsFoundError #8

muammar opened this issue Aug 15, 2016 · 2 comments
Labels

Comments

@muammar
Copy link
Owner

muammar commented Aug 15, 2016

Reported in Google + and causing problem for owners with more than one cast device:

Traceback (most recent call last):
  File "/usr/bin/mkchromecast", line 68, in <module>
    cc.get_cc()
  File "/usr/share/mkchromecast/mkchromecast/cast.py", line 213, in get_cc
    self.cast = pychromecast.get_chromecast(self.castto)
  File "/usr/lib/python2.7/dist-packages/pychromecast/__init__.py", line 168, in get_chromecast
    'the filter criteria: {}'.format(filters))
pychromecast.error.MultipleChromecastsFoundError: More than one Chromecast was found specifying the filter criteria: {}
@muammar muammar added the bug label Aug 15, 2016
@phraim
Copy link

phraim commented Aug 16, 2016

I've got a couple of chromecasts and noticed the bug. You were close on the fix for it in the cast.py get_chromecast doesn't like the quotes though.

-            self.cast = pychromecast.get_chromecast('friendly_name="'+self.castto+'"')
+            self.cast = pychromecast.get_chromecast(friendly_name=self.castto)

@muammar
Copy link
Owner Author

muammar commented Aug 16, 2016

@phraim thank you very much for the comment. I will change the code and release a new version ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants