def openSpliveLink(url, page, provider): if url.find(".m3u8") == -1 and url.find("rtmp://") == -1: channel = Spliveappcom.decodeUrl(url, provider) link = channel[0]["link"] if link.find(", referer:") > -1: link = link[0 : link.find(", referer:")] url = link else: logger.debug("nothing decoded for splive encrypted channels, continue...") logger.debug("splive BRUTE logic for url: " + url) try: if "ponlatv.com" in url or "playerhd1.pw" in url: logger.debug("trying to decode cineestrenos script from url: " + url) url = Cineestrenostv.extractScriptLevel3(url, referer=Cineestrenostv.MAIN_URL) logger.debug("decoded link was: " + url) else: url = Cineestrenostv.getChannels(url)[0]["link"] html = Downloader.getContentFromUrl(url) element = Cineestrenostv.extractIframeChannel(html, url) if element is not None and element.has_key("link"): url = element["link"] logger.debug("cineestrenos url was decoded to: " + url) else: logger.debug("nothing was done to decode cineestrenostv url!") except: logger.debug("nothing to be decoded with url: " + url) pass link = url logger.info("found link: " + link + ", launching...") open(link, page)
def openMobdro(url, page): try: link = base64.decodestring(url) except: logger.debug("not a valid base64 content...") pass logger.info("decoded streamgaroo link: " + link) open(link, page)
def openTuneInLink(url, page): logger.info("decoding tunein link... " + url) link = TuneIn.getChannels(url)[0]["link"] logger.info("decoded tunein link: " + link) open(link, page)
def openYoutubeLink(url, page): # could be replaced by decodeAndOpenLink, traces are the unique difference logger.info("decoding youtube link... " + url) link = Decoder.decodeLink(url) logger.info("decoded youtube link: " + link) open(link, page)
def openZonaappLink(url, page): logger.info("decoding zonaapp link... " + url) link = ZonaAppCom.getFinalLink(url) logger.info("decoded zonaapp link: " + link) open(link, page)
def openShowsportsLink(url, page): channel = ShowsportTvCom.getChannels(url) logger.info("found link: " + channel[0]["link"] + ", launching...") open(channel[0]["link"], page)
def openArenavisionLink(url, page): channel = Arenavisionin.getChannels(url) logger.info("found link: " + channel[0]["link"] + ", launching...") open(channel[0]["link"], page)
def openStreamgaroo(url, page): logger.info("decoding streamgaroo link... " + url) link = Streamgaroo.getChannels(url)[0]["link"] logger.info("decoded streamgaroo link: " + link) open(link, page)
def openCricFreeLink(url, page): channel = Cricfreetv.getChannels(page) logger.info("found link: " + channel[0]["link"] + ", launching...") open(channel[0]["link"], page)
def openZonasportsLink(url, page): channel = Zonasportsme.getChannels(url) logger.info("found link: " + channel[0]["link"] + ", launching...") open(channel[0]["link"], page)
def openSports365Link(url, page): channel = Sportstream365com.getChannels(url) logger.info("found link: " + channel[0]["link"] + ", launching...") open(channel[0]["link"], page)
def openVipracingLink(url, page): channel = Vipracinginfo.getChannels(page) logger.info("found link: " + channel[0]["link"] + ", launching...") open(channel[0]["link"], page)
def openSkylineLink(url, page): channel = Skylinewebcamscom.getChannels(page, True) logger.info("found link: " + channel[0]["link"] + ", launching...") open(channel[0]["link"], page)
def openSports4uLink(url, page): channel = Sports4u.getChannels(page) logger.info("found link: " + channel[0]["link"] + ", launching...") open(channel[0]["link"], page)
def openLive9Link(url, page): channel = Live9net.getChannels(page) logger.info("found link: " + channel[0]["link"] + ", launching...") open(channel[0]["link"], page)
def openZopTvLink(url, page): channel = Zoptvcom.getChannels(page) logger.info("found link: " + channel[0]["link"] + ", launching...") open(channel[0]["link"], page)
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)
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
def openYomvies(url, page): logger.info("decoding yomvi link... " + url) link = Yomvies.getChannels(url)[0]["link"] logger.info("decoded yomvi link: " + link) open(link, page)
def openMamahdLink(url, page): channel = Mamahdcom.getChannels(url) logger.info("found link: " + channel[0]["link"] + ", launching...") open(channel[0]["link"], page)
def decodeAndOpenLink(url, page): logger.info("decoding: " + url) link = Decoder.decodeLink(url) logger.info("decoded: " + link) open(link, page)
def openCineestrenosLink(url, page): jsonChannels = Cineestrenostv.getChannels(page) url = jsonChannels[0]["link"] logger.info("found link: " + url + ", launching...") open(url, page)