def drawVipracinginfo(page): jsonChannels = Vipracinginfo.getChannels(page) mode = 107 for item in jsonChannels: title = item["title"] link = item["link"] add_dir(title, link, mode, icon, "vipracinginfo", link)
def openVipracingLink(url, page): channel = Vipracinginfo.getChannels(page) logger.info("found link: " + channel[0]["link"] + ", launching...") open(channel[0]["link"], page)