Index: channels/myoggradio.py ================================================================== --- channels/myoggradio.py +++ channels/myoggradio.py @@ -1,6 +1,6 @@ - +# encoding: utf-8 # api: streamtuner2 # title: MyOggRadio # description: Open source internet radio directory. # type: channel # category: radio @@ -118,10 +118,13 @@ if not urls: urls = [row["url"]] row["url"] = ahttp.fix_url(urls[0]) # prevent double check-ins + if not self.streams.get("common"): + log.WARN("Cache empty. Cannot compare stream info for newness. Please reload MyOggRadio channel first.") + return if row["title"] in (r.get("title") for r in self.streams["common"]): pass elif row["url"] in (r.get("url") for r in self.streams["common"]): pass @@ -183,10 +186,10 @@ else: lap = conf.netrc(["myoggradio", "myoggradio.org", "www.myoggradio.org"]) if lap: return [lap[0] or lap[1], lap[2]] else: - self.parent.status("No login data for MyOggRadio configured. See F12 for setup, or F1 for help."); + self.parent.status('⛔ No login data for MyOggRadio configured. See F12 for setup, or F1 for help.', timeout=10, markup=1); pass