Changeset 195 for trunk/StreamVision/StreamVision.py
- Timestamp:
- 10/05/05 18:32:59 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/StreamVision/StreamVision.py
r194 r195 35 35 application_name=GROWL_APP_NAME, 36 36 **kw) 37 37 38 38 def radioParadiseURL(): 39 39 session = scrape.Session() 40 session.go('http://www2.radioparadise.com/nowplay_ 3.php')41 return session.region.firsttag('a' , class_='sky')['href']40 session.go('http://www2.radioparadise.com/nowplay_b.php') 41 return session.region.firsttag('a')['href'] 42 42 43 43 def cleanStreamTitle(title): … … 47 47 title = title.replace('`', u'’') 48 48 return title 49 49 50 50 def cleanStreamTrackName(name): 51 51 name = name.split('. ')[0] … … 57 57 name = name[0] 58 58 return name 59 59 60 60 def iTunesApp(): 61 61 return app(id='com.apple.iTunes') … … 86 86 trackName = iTunes.current_track.name.get() 87 87 growlNotify("iTunes is not playing.", trackName) 88 88 89 89 def goToSite(self): 90 90 iTunes = iTunesApp() … … 97 97 return 98 98 NSBeep() 99 99 100 100 def registerHotKey(self, func, keyCode, mods=0): 101 101 hotKeyRef = RegisterEventHotKey(keyCode, mods, (0, 0),
Note:
See TracChangeset
for help on using the changeset viewer.