- Timestamp:
- 05/14/12 18:07:06 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/StreamVision/StreamVision.py
r644 r645 49 49 50 50 def radioParadiseURL(): 51 # XXX better to use http://www2.radioparadise.com/playlist.xml ?52 51 session = scrape.Session() 53 session.go('http://www2.radioparadise.com/nowplay_b.php') 54 return session.region.firsttag('a')['href'] 52 session.go('http://radioparadise.com/jq_playlist.php') 53 url = session.region.firsttag('a')['href'] 54 if not url.startswith('http'): 55 url = 'http://www.radioparadise.com/rp2-' + url 56 return url 55 57 56 58 def cleanStreamTitle(title):
Note:
See TracChangeset
for help on using the changeset viewer.