def drawYoutvgratis(url): channels = Youtvgratis.getChannels(url) logger.debug("items obtained: " + str(len(channels))) level = 119 # stream for channel in channels: img = "" if channel.has_key("thumbnail"): img = channel["thumbnail"] add_dir(channel["title"], channel["link"], level, img, "youtvgratis", channel["link"])
def drawYoutvgratis(url): channels = Youtvgratis.getChannels(url) logger.debug("items obtained: " + str(len(channels))) level = 119 # stream for channel in channels: img = '' if channel.has_key("thumbnail"): img = channel["thumbnail"] add_dir(channel["title"], channel["link"], level, img, "youtvgratis", channel["link"])
def openYoutvgratisLink(url, page): logger.info("decoding youtvgratis link... " + url) link = Youtvgratis.getChannels(url)[0]["link"] logger.info("decoded youtvgratis link: " + link) open(link, page)