Example #1
0
def drawVipgoal(page):
    jsonChannels = Vigoal.getChannels(page)
    for item in jsonChannels:
        title = item["title"]
        if title == 'Display by event':
            title = XBMCUtils.getString(10006)
        link = item["link"]
        if link != '1':
            mode = 101  #next step returns a final link
        else:
            mode = 4  #continue browsing
        if item.has_key("thumbnail"):
            image = item["thumbnail"]
        else:
            image = icon
        add_dir(title, link, mode, image, "vigoal", link)
Example #2
0
def drawVipgoal(page):
    jsonChannels = Vigoal.getChannels(page)
    for item in jsonChannels:
        title = item["title"]
        if title == "Display by event":
            title = XBMCUtils.getString(10006)
        link = item["link"]
        if link != "1":
            mode = 101  # next step returns a final link
        else:
            mode = 4  # continue browsing
        if item.has_key("thumbnail"):
            image = item["thumbnail"]
        else:
            image = icon
        add_dir(title, link, mode, image, "vigoal", link)
Example #3
0
def openVipgoalLink(url, page):
    jsonChannels = Vigoal.getChannels(page)
    url = jsonChannels[0]["link"]
    logger.info("found link: " + url + ", launching...")
    open(url, page)  # same that 2, but reserved for rtmp
Example #4
0
def openVipgoalLink(url, page):
    jsonChannels = Vigoal.getChannels(page)
    url = jsonChannels[0]["link"]
    logger.info("found link: " + url + ", launching...")
    open(url, page)  # same that 2, but reserved for rtmp