Changeset 234


Ignore:
Timestamp:
06/06/06 14:23:53 (19 years ago)
Author:
Nicholas Riley
Message:

StreamVision.py: switch to Stations playlist if we're viewing the iPod read-only or something equally useless

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/StreamVision/StreamVision.py

    r233 r234  
    134134    def playPause(self):
    135135        iTunes = iTunesApp()
     136        was_playing = (iTunes.player_state.get() == k.playing)
    136137        iTunes.playpause()
     138        if not was_playing and iTunes.player_state.get() == k.stopped:
     139            # most likely, we're focused on the iPod, so playing does nothing
     140            iTunes.browser_windows[1].view.set(iTunes.user_playlists.filter(its.name=='Stations')[1].get())
     141            iTunes.play()
    137142        if HAVE_XTENSION:
    138143            if iTunes.player_state.get() == k.playing:
Note: See TracChangeset for help on using the changeset viewer.