def drawLive9(page): jsonChannels = Live9net.getChannels(page) for item in jsonChannels: title = item["title"] link = item["link"] mode = 105 #next step returns a final link if item.has_key("thumbnail"): image = item["thumbnail"] else: image = icon add_dir(title, link, mode, image, "live9", link)
def drawLive9(page): jsonChannels = Live9net.getChannels(page) for item in jsonChannels: title = item["title"] link = item["link"] mode = 105 # next step returns a final link if item.has_key("thumbnail"): image = item["thumbnail"] else: image = icon add_dir(title, link, mode, image, "live9", link)
def openLive9Link(url, page): channel = Live9net.getChannels(page) logger.info("found link: " + channel[0]["link"] + ", launching...") open(channel[0]["link"], page)