Changeset 638


Ignore:
Timestamp:
02/25/11 02:04:04 (14 years ago)
Author:
Nicholas Riley
Message:

StreamVision.py: iTunes 10.1.2 AirPlay fix for iTunes Store layout too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/StreamVision/StreamVision.py

    r637 r638  
    106106        for button in iTunesWindow.buttons():
    107107            try:
    108                 if button.attributes['AXDescription'].value().endswith('remote speakers'):
     108                if button.attributes['AXDescription'].value().endswith('AirPlay'):
    109109                    remote_speakers = [button.title()]
    110110                    break
    111111            except CommandError:
    112112                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)
    114116
    115117def turnStereoOn():
Note: See TracChangeset for help on using the changeset viewer.