@@ -1,8 +1,8 @@ # api: streamtuner2 # title: Streema -# description: +# description: Directory and app for over 70.000 stations # type: channel # category: radio # version: 0.2 # url: http://www.streema.com/ # png: @@ -44,15 +44,18 @@ # takes a while to load def update_categories(self): self.categories = [] html = ahttp.get(self.base) - for cat in re.findall('', html): + main_cats = re.findall('', html) + for cat in main_cats: + self.progress(main_cats) html = ahttp.get(self.base + "/main-genre/" + cat) sub = re.findall('', html) self.categories.append(cat) self.categories.append(sub) + self.progress(0) return self.categories # get streems def update_streams(self, cat, search=None): @@ -89,11 +92,11 @@ listeners = to_int(listeners[0]) )) except: pass #some field missing - # done + # done return r # load page and get first download url (there's four, but usually identical) def resolve_urn(self, row):