Index: channels/internet_radio.py ================================================================== --- channels/internet_radio.py +++ channels/internet_radio.py @@ -39,16 +39,17 @@ class internet_radio (ChannelPlugin): # control data listformat = "pls" categories = [] + base_url = "http://www.internet-radio.com/" # load genres def update_categories(self): - html = http.get(self.homepage) + html = http.get(self.base_url) rx = re.compile("""="/stations/[-+&.\w\s%]+/">([^<]+)<""") cats = rx.findall(html) cats = list(set(cats)) cats = [s.capitalize() for s in cats] self.categories = sorted(list(set(cats))) @@ -69,11 +70,11 @@ for page in range(1, max_pages): # Append HTML source html.append( http.get( - self.homepage + "stations/" + + self.base_url + "stations/" + cat.lower().replace(" ", "%20") + "/" + ("page"+str(page) if page>1 else "") ) )