示例#1
0
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)
示例#2
0
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)
示例#3
0
def openLive9Link(url, page):
    channel = Live9net.getChannels(page)
    logger.info("found link: " + channel[0]["link"] + ", launching...")
    open(channel[0]["link"], page)
示例#4
0
def openLive9Link(url, page):
    channel = Live9net.getChannels(page)
    logger.info("found link: " + channel[0]["link"] + ", launching...")
    open(channel[0]["link"], page)