Changeset 643 for trunk/StreamVision


Ignore:
Timestamp:
05/14/12 17:44:40 (13 years ago)
Author:
Nicholas Riley
Message:

StreamVision.py: iTunes 10.6 AirPlay button description is of the form "AirPlay[, speakers]".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/StreamVision/StreamVision.py

    r638 r643  
    101101    iTunesWindow = systemEvents.application_processes[u'iTunes'].windows[u'iTunes']
    102102    try:
    103         remote_speakers = iTunesWindow.buttons[its.attributes['AXDescription'].value.endswith(u'AirPlay')].title()
     103        remote_speakers = iTunesWindow.buttons[its.attributes['AXDescription'].value.beginswith(u'AirPlay')].title()
    104104    except CommandError:
    105105        # with iTunes Store visible, the query fails with errAENoSuchObject
Note: See TracChangeset for help on using the changeset viewer.