Changeset 645 for trunk


Ignore:
Timestamp:
05/14/12 18:07:06 (13 years ago)
Author:
Nicholas Riley
Message:

StreamVision.py: Update for Radio Paradise 2 site design.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/StreamVision/StreamVision.py

    r644 r645  
    4949
    5050def radioParadiseURL():
    51     # XXX better to use http://www2.radioparadise.com/playlist.xml ?
    5251    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
    5557
    5658def cleanStreamTitle(title):
Note: See TracChangeset for help on using the changeset viewer.