Skip to content
Browse files

Fixes issue with Play3 and line-in that caused Play3 not to display

on GUI.
  • Loading branch information...
1 parent 13d1950 commit 51060914a868332d13c0256d9827c3db687276aa @henkelis committed Apr 1, 2012
Showing with 10 additions and 5 deletions.
  1. +5 −1 sonospy/control_point_sonos.py
  2. +5 −4 sonospy/pycpoint.py
View
6 sonospy/control_point_sonos.py
@@ -420,8 +420,12 @@ def get_audio_in(self):
"""
"""
service = self.get_ai_service()
- service_response = service.GetAudioInputAttributes()
+ if service:
+ service_response = service.GetAudioInputAttributes()
+ else:
+ service_response = None
+
log.debug(service_response)
return service_response
View
9 sonospy/pycpoint.py
@@ -2799,10 +2799,11 @@ def browse_media_server_root(self, searchvars=None):
if current_server.udn in self.known_zone_players:
linein_result = self.control_point.get_audio_in()
log.debug("get_audio_in result: %s", linein_result)
- li_title = linein_result['CurrentName']
- li_id = "AI:"
- li_type = "LineIn_ROOT"
- self.update_rootdata(li_title, li_id, li_type)
+ if linein_result:
+ li_title = linein_result['CurrentName']
+ li_id = "AI:"
+ li_type = "LineIn_ROOT"
+ self.update_rootdata(li_title, li_id, li_type)
# if current server is a zone player, append any third party media servers
current_server = self.control_point.get_current_server()

0 comments on commit 5106091

Please sign in to comment.
Something went wrong with that request. Please try again.