Exemplo n.º 1
0
def play(item):
    support.log()
    itemlist = []
    ### Handling new cb01 wrapper
    if host[9:] + "/film/" in item.url:
        iurl = httptools.downloadpage(item.url, only_headers=True, follow_redirects=False).headers.get("location", "")
        support.log("/film/ wrapper: ", iurl)
        if iurl:
            item.url = iurl

    if '/goto/' in item.url:
        item.url = item.url.split('/goto/')[-1].decode('base64')

    item.url = item.url.replace('http://cineblog01.uno', 'http://k4pp4.pw')

    logger.debug("##############################################################")
    if "go.php" in item.url:
        data = httptools.downloadpage(item.url).data
        if "window.location.href" in data:
            try:
                data = scrapertoolsV2.find_single_match(data, 'window.location.href = "([^"]+)";')
            except IndexError:
                data = httptools.downloadpage(item.url, only_headers=True, follow_redirects=False).headers.get("location", "")
            data, c = unshortenit.unwrap_30x_only(data)
        else:
            data = scrapertoolsV2.find_single_match(data, r'<a href="([^"]+)".*?class="btn-wrapper">.*?licca.*?</a>')
        
        logger.debug("##### play go.php data ##\n%s\n##" % data)
    else:
        data = support.swzz_get_url(item)

    return servertools.find_video_items(data=data)
Exemplo n.º 2
0
 def load_vid_series(html, item, itemlist, blktxt):
     support.info('HTML', html)
     # Estrae i contenuti
     matches = support.match(
         html,
         patron=r'<a href=(?:")?([^ "]+)[^>]+>(?!<!--)(.*?)(?:</a>|<img)'
     ).matches
     for url, server in matches:
         item = item.clone(action="play",
                           title=server,
                           url=url,
                           server=server,
                           quality=blktxt)
         if 'swzz' in item.url: item.url = support.swzz_get_url(item)
         itemlist.append(item)
Exemplo n.º 3
0
 def load_vid_series(html, item, itemlist, blktxt):
     support.log('HTML',html)
     # Estrae i contenuti
     matches = support.match(html, patron=r'<a href=(?:")?([^ "]+)[^>]+>(?!<!--)(.*?)(?:</a>|<img)').matches
     for url, server in matches:
         item = Item(channel=item.channel,
                     action="play",
                     title=server,
                     url=url,
                     server=server,
                     fulltitle=item.fulltitle,
                     show=item.show,
                     quality=blktxt,
                     contentType=item.contentType,
                     folder=False)
         if 'swzz' in item.url: item.url = support.swzz_get_url(item)
         itemlist.append(item)
Exemplo n.º 4
0
def play(item):
    logger.info("[vedohd.py] play")

    data = support.swzz_get_url(item)

    return support.server(item, data, headers=headers)
Exemplo n.º 5
0
def play(item):
    logger.debug()

    data = support.swzz_get_url(item)

    return support.server(item, data, headers=headers)