Index: contrib/radiosure.py ================================================================== --- contrib/radiosure.py +++ contrib/radiosure.py @@ -1,10 +1,10 @@ # encoding: UTF-8 # api: streamtuner2 # title: RadioSure # description: Huge radio station collection -# version: 0.3 +# version: 0.4 # type: channel # category: radio # url: http://radiosure.com/ # config: - # priority: extra @@ -77,11 +77,11 @@ # import station list def update_streams(self, cat, search=None): streams = [] # refresh zip file if not os.path.isfile(self.tmp) or os.path.getmtime(self.tmp) < (time.time() - 24*3600): - with open(self.tmp, "w") as f: + with open(self.tmp, "wb") as f: f.write(ahttp.get(self.zip, binary=1)) # get first file zip = zipfile.ZipFile(self.tmp) csv = zip.read(zip.namelist()[0]) self.status("Updating streams from RadioSure CSV database")