def drawSportstream365(page): mode = 110 jsonChannels = Sportstream365com.getChannels(page) for item in jsonChannels: title = item["title"] link = item["link"] image = icon add_dir(title, link, mode, image, "sportstream365com", link)
def openSports365Link(url, page): channel = Sportstream365com.getChannels(url) logger.info("found link: " + channel[0]["link"] + ", launching...") open(channel[0]["link"], page)