예제 #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)