Changeset 195 for trunk/StreamVision


Ignore:
Timestamp:
10/05/05 18:32:59 (19 years ago)
Author:
Nicholas Riley
Message:

StreamVision.py: changes for new Radio Paradise site design

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/StreamVision/StreamVision.py

    r194 r195  
    3535        application_name=GROWL_APP_NAME,
    3636        **kw)
    37        
     37
    3838def radioParadiseURL():
    3939    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']
    4242
    4343def cleanStreamTitle(title):
     
    4747    title = title.replace('`', u'’')
    4848    return title
    49    
     49
    5050def cleanStreamTrackName(name):
    5151    name = name.split('. ')[0]
     
    5757        name = name[0]
    5858    return name
    59    
     59
    6060def iTunesApp():
    6161    return app(id='com.apple.iTunes')
     
    8686                trackName = iTunes.current_track.name.get()
    8787            growlNotify("iTunes is not playing.", trackName)
    88    
     88
    8989    def goToSite(self):
    9090        iTunes = iTunesApp()
     
    9797                return
    9898        NSBeep()
    99    
     99
    100100    def registerHotKey(self, func, keyCode, mods=0):
    101101        hotKeyRef = RegisterEventHotKey(keyCode, mods, (0, 0),
Note: See TracChangeset for help on using the changeset viewer.