Changeset 638
- Timestamp:
- 02/25/11 02:04:04 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/StreamVision/StreamVision.py
r637 r638 106 106 for button in iTunesWindow.buttons(): 107 107 try: 108 if button.attributes['AXDescription'].value().endswith(' remote speakers'):108 if button.attributes['AXDescription'].value().endswith('AirPlay'): 109 109 remote_speakers = [button.title()] 110 110 break 111 111 except CommandError: 112 112 pass 113 return (remote_speakers and remote_speakers[0] != k.missing_value) 113 else: 114 return False # XXX shouldn't get here 115 return remote_speakers and remote_speakers[0] not in (None, k.missing_value) 114 116 115 117 def turnStereoOn():
Note:
See TracChangeset
for help on using the changeset viewer.