Changeset 194 for trunk/StreamVision
- Timestamp:
- 09/19/05 08:52:08 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/StreamVision/StreamVision.py
r193 r194 41 41 return session.region.firsttag('a', class_='sky')['href'] 42 42 43 def cleanStreamName(name): 43 def cleanStreamTitle(title): 44 if title == k.MissingValue: 45 return '' 46 title = title.split(' [')[0] # XXX move to description 47 title = title.replace('`', u'’') 48 return title 49 50 def cleanStreamTrackName(name): 44 51 name = name.split('. ')[0] 45 52 name = name.split(': ')[0] … … 50 57 name = name[0] 51 58 return name 52 53 def cleanStreamTitle(title):54 if title == k.MissingValue:55 return ''56 title = title.replace('`', u'’')57 return title58 59 59 60 def iTunesApp(): … … 70 71 if iTunes.current_track.class_.get() == k.URL_track: 71 72 growlNotify(cleanStreamTitle(iTunes.current_stream_title.get()), 72 cleanStream Name(iTunes.current_track.name.get()))73 cleanStreamTrackName(iTunes.current_track.name.get())) 73 74 else: 74 75 kw = {}
Note:
See TracChangeset
for help on using the changeset viewer.