Пример #1
0
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)
Пример #2
0
 def extractChannel(html,page="http://www.vipgoal.net/"):
     element = {}
     if html.find('<script type="text/javascript" src="http://www.playerapp1.pw/channel.php?file=')>-1: #old part
         scriptUrl = Decoder.extractWithRegex('http://www.playerapp1.pw/channel.php?file=','"',html)
         html2 = Vigoal.getContentFromUrl(scriptUrl)
         lastUrl = Decoder.extractWithRegex('http://','" ',html2)
         lastUrl = lastUrl.replace('"',"")
         logger.debug("last url: "+lastUrl+", cookie="+Vigoal.cookie)
         html3 = Vigoal.getContentFromUrl(lastUrl,"",Vigoal.cookie,lastUrl)
         playerUrl = Decoder.decodeBussinessApp(html3,lastUrl)
         logger.debug("player url is: "+playerUrl)
         element["title"] = "Watch streaming"
         element["permalink"] = True
         element["link"] = playerUrl
     else: #unified with cinestrenostv, they are the same people, at least the same code works and the changes are at the same time xD
         logger.debug('Extracting channel from: '+page)
         element = Cineestrenostv.extractIframeChannel(html,page)
     return element
Пример #3
0
 def extractChannel(html, page="http://www.vipgoal.net/"):
     element = {}
     if html.find(
             '<script type="text/javascript" src="http://www.playerapp1.pw/channel.php?file='
     ) > -1:  #old part
         scriptUrl = Decoder.extractWithRegex(
             'http://www.playerapp1.pw/channel.php?file=', '"', html)
         html2 = Vigoal.getContentFromUrl(scriptUrl)
         lastUrl = Decoder.extractWithRegex('http://', '" ', html2)
         lastUrl = lastUrl.replace('"', "")
         logger.debug("last url: " + lastUrl + ", cookie=" + Vigoal.cookie)
         html3 = Vigoal.getContentFromUrl(lastUrl, "", Vigoal.cookie,
                                          lastUrl)
         playerUrl = Decoder.decodeBussinessApp(html3, lastUrl)
         logger.debug("player url is: " + playerUrl)
         element["title"] = "Watch streaming"
         element["permalink"] = True
         element["link"] = playerUrl
     else:  #unified with cinestrenostv, they are the same people, at least the same code works and the changes are at the same time xD
         logger.debug('Extracting channel from: ' + page)
         element = Cineestrenostv.extractIframeChannel(html, page)
     return element
Пример #4
0
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)