Exemplo n.º 1
0
def drawSkylinewebcams(page):
    jsonChannels = Skylinewebcamscom.getChannels(page)
    mode = 4
    for item in jsonChannels:
        title = item["title"]
        link = item["link"]
        if item.has_key("thumbnail"):
            image = item["thumbnail"]
            logger.info("detected img: " + image)
        else:
            image = icon
        if item.has_key("permaLink"):
            mode = 108
        add_dir(title, link, mode, image, "skylinewebcams", link)
Exemplo n.º 2
0
def drawSkylinewebcams(page):
    jsonChannels = Skylinewebcamscom.getChannels(page)
    mode = 4
    for item in jsonChannels:
        title = item["title"]
        link = item["link"]
        if item.has_key("thumbnail"):
            image = item["thumbnail"]
            logger.info("detected img: " + image)
        else:
            image = icon
        if item.has_key("permaLink"):
            mode = 108
        add_dir(title, link, mode, image, "skylinewebcams", link)
Exemplo n.º 3
0
def openSkylineLink(url, page):
    channel = Skylinewebcamscom.getChannels(page, True)
    logger.info("found link: " + channel[0]["link"] + ", launching...")
    open(channel[0]["link"], page)
Exemplo n.º 4
0
def openSkylineLink(url, page):
    channel = Skylinewebcamscom.getChannels(page, True)
    logger.info("found link: " + channel[0]["link"] + ", launching...")
    open(channel[0]["link"], page)