def drawZonasportsme(page): mode = 109 jsonChannels = Zonasportsme.getChannels(page) for item in jsonChannels: title = item["title"] link = item["link"] image = icon add_dir(title, link, mode, image, "zonasportsme", link)
def openZonasportsLink(url, page): channel = Zonasportsme.getChannels(url) logger.info("found link: " + channel[0]["link"] + ", launching...") open(channel[0]["link"], page)