def drawZoptv(page): jsonChannels = Zoptvcom.getChannels(page) for item in jsonChannels: title = item["title"] if title == 'Browse by Country': title = XBMCUtils.getString(10007) elif title == 'Browse by Genre': title = XBMCUtils.getString(10008) link = item["link"] mode = 4 if item.has_key("thumbnail"): image = item["thumbnail"] mode = 104 else: image = icon add_dir(title, link, mode, image, "zoptv", link)
def drawZoptv(page): jsonChannels = Zoptvcom.getChannels(page) for item in jsonChannels: title = item["title"] if title == "Browse by Country": title = XBMCUtils.getString(10007) elif title == "Browse by Genre": title = XBMCUtils.getString(10008) link = item["link"] mode = 4 if item.has_key("thumbnail"): image = item["thumbnail"] mode = 104 else: image = icon add_dir(title, link, mode, image, "zoptv", link)
def openZopTvLink(url, page): channel = Zoptvcom.getChannels(page) logger.info("found link: " + channel[0]["link"] + ", launching...") open(channel[0]["link"], page)