Changeset 323


Ignore:
Timestamp:
07/14/07 23:11:21 (17 years ago)
Author:
Nicholas Riley
Message:

StreamVision.py: fix encoding/decoding for iTunes 7.1+; include star as Unicode string for Python 2.3 compatibility

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/StreamVision/StreamVision.py

    r317 r323  
    5050        return ''
    5151    title = title.split(' [')[0] # XXX move to description
     52    title = title.encode('iso-8859-1').decode('utf-8') # XXX iTunes 7.1 or RP?
    5253    title = title.replace('`', u'’')
    53     return title.encode('iso-8859-1').decode('utf-8') # XXX iTunes 7.1 or RP?
     54    return title
    5455
    5556def cleanStreamTrackName(name):
     
    103104                kw['pictImage'] = artwork[0].data()
    104105        growlNotify(trackName + '  ' +
    105                     '★' * (iTunes.current_track.rating() / 20),
    106                     iTunes.current_track.album() + "\n" +
     106                    u'★' * (iTunes.current_track.rating() / 20),
     107                    iTunes.current_track.album() + '\n' +
    107108                    iTunes.current_track.artist(),
    108109                    **kw)
Note: See TracChangeset for help on using the changeset viewer.