Index: channels/shoutcast.py ================================================================== --- channels/shoutcast.py +++ channels/shoutcast.py @@ -4,11 +4,11 @@ # type: channel # category: radio # author: Mario # original: Jean-Yves Lefort # version: 1.6 -# url: http://www.shoutcast.com/ +# url: http://directory.shoutcast.com/ # config: # { name: shoutcast_format, type: select, select: pls|m3u|xspf, value: pls, description: "Shoutcast playlist format to retrieve" } # priority: default # png: # iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAelJREFUOI2NU0toE2EYnM12t2wLkhSXSIgEJMHFQ2naQ+kpoPYQoaXH3gRFsegloUhRQTyU2oOgggQUzzlEQomIBzU+EHooBIol0cOGLqFFFiJ5SB5skvFU6ebRduA7/DAz @@ -102,13 +102,13 @@ # downloads stream list from shoutcast for given category def update_streams(self, cat): # page - url = "http://directory.shoutcast.com/Home/BrowseByGenre" + url = self.base_url + "Home/BrowseByGenre" params = { "genrename": cat } - referer = None + referer = self.base_url try: json = ahttp.get(url, params=params, referer=referer, post=1, ajax=1) json = json_decode(json) except: log.ERR("HTTP request or JSON decoding failed. Outdated python/requests perhaps.")