Changeset 316 for trunk/StreamVision


Ignore:
Timestamp:
01/04/07 15:11:14 (18 years ago)
Author:
Nicholas Riley
Message:

StreamVision.py: Handle missing URLs correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/StreamVision/StreamVision.py

    r315 r316  
    4747
    4848def cleanStreamTitle(title):
    49     if title == k.MissingValue:
     49    if title == k.missing_value:
    5050        return ''
    5151    title = title.split(' [')[0] # XXX move to description
     
    112112        if iTunes.player_state() == k.playing:
    113113            url = iTunes.current_stream_URL()
    114             if url:
     114            if url != k.missing_value:
    115115                if 'radioparadise.com' in url and 'review' not in url:
    116116                    url = radioParadiseURL()
Note: See TracChangeset for help on using the changeset viewer.