Index: contrib/radionet.py ================================================================== --- contrib/radionet.py +++ contrib/radionet.py @@ -1,11 +1,11 @@ # encoding: UTF-8 # api: streamtuner2 # title: radio.net # description: Europe's biggest radio platform # url: http://radio.net/ -# version: 0.3 +# version: 0.4 # type: channel # category: radio # png: # iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAt0lEQVR42mNgYGD4r+Ar/F/BDwkD+SBxojBMs1mLPBArgGlFqEEENYMNQNLsukIDYkirAvGu # ABsA1OC6XOP/5f8nwIaYAg0k2gBFsAsgTgcZkvnfDugFEeK9AFKsCPMG0CU6eZJgQ4R1eP8H7LLEivWyFJANQcQCLPBAmkGG4MJohmA6C6QA5gI5OxEUDNII @@ -106,13 +106,14 @@ # Patch together JSON station info URL def _url(self, name): return \ - "{}/search/station?_={}&apikey={}&pageindex=1&station={}".format( - self.apiPrefix, time.time(), self.apiKey, name - ) + "{}/search/station?apikey={}&pageindex=1&station={}".format( + self.apiPrefix, self.apiKey, name + ) # '?_={time}&' is omitted here, only relevant to jQuery/AJAX, + # and just made bookmarks.is_in() fail due to randomized URLs # extract JavaScript key from any HTML blob (needed for station query) def set_key(self, html): ls = re.findall("""apiKey: '(\w+)'""", html)