def drawStreamgaroo(page): jsonChannels = Streamgaroo.getChannels(page) for item in jsonChannels: mode = 121 title = item["title"] link = item["link"] if item.has_key("thumbnail"): image = item["thumbnail"] logger.info("detected img: " + image) else: image = icon if item.has_key("navigate"): mode = 4 add_dir(title, link, mode, image, "streamgaroo", link)
def openStreamgaroo(url, page): logger.info("decoding streamgaroo link... " + url) link = Streamgaroo.getChannels(url)[0]["link"] logger.info("decoded streamgaroo link: " + link) open(link, page)