Changeset 341


Ignore:
Timestamp:
09/27/07 22:08:38 (17 years ago)
Author:
Nicholas Riley
Message:

StreamVision.py: Handle misencoded stream titles more intelligently.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/StreamVision/StreamVision.py

    r340 r341  
    5656        return ''
    5757    title = title.split(' [')[0] # XXX move to description
    58     # XXX fails with Arvo Pärt
    59     title = title.encode('iso-8859-1').decode('utf-8') # XXX iTunes 7.1 or RP?
     58    try: # incorrectly encoded?
     59        title = title.encode('iso-8859-1').decode('utf-8')
     60    except UnicodeDecodeError:
     61        pass
    6062    title = title.replace('`', u'’')
    6163    return title
Note: See TracChangeset for help on using the changeset viewer.