Changeset 191 for trunk


Ignore:
Timestamp:
06/20/05 15:55:40 (20 years ago)
Author:
Nicholas Riley
Message:

StreamVision.py: handle lack of artwork on remote tracks properly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/StreamVision/StreamVision.py

    r190 r191  
    7171                            cleanStreamName(iTunes.current_track.name.get()))
    7272            else:
    73                 artwork = iTunes.current_track.artworks.data.get()
    74                 if artwork:
    75                     artwork = artwork[0]
    76                 else:
    77                     artwork = None
     73                kw = {}
     74                artwork = iTunes.current_track.artworks.get()
     75                if artwork:
     76                    kw['pictImage'] = artwork[0].data.get()
    7877                growlNotify(iTunes.current_track.name.get(),
    7978                            iTunes.current_track.album.get() + "\n" +
    8079                            iTunes.current_track.artist.get(),
    81                             pictImage=artwork)
     80                            **kw)
    8281        else:
    8382            trackName = ''
Note: See TracChangeset for help on using the changeset viewer.