示例#1
0
def PHVideo(url, name, download=None):
    progress.create('Play video', 'Searching videofile.')
    progress.update( 10, "", "Loading video page", "" )
    Supported_hosts = ['Openload.io', 'StreamCloud', 'NowVideo', 'FlashX', 'www.flashx.tv', 'streamcloud.eu', 'streamin.to']
    videopage = utils.getHtml(url, '')
    match = re.compile(r'<li id="link-([^"]+).*?xs-12">\s+Watch it on ([\w\.]+)', re.DOTALL | re.IGNORECASE).findall(videopage)
    if len(match) > 1:
        sites = []
        vidurls = []
        for videourl, site in match:
            if site in Supported_hosts:
                sites.append(site)
                vidurls.append(videourl)
        if len(sites) ==  1:
            sitename = match[0][1]
            siteurl = match[0][0]
        else:
            site = utils.dialog.select('Select video site', sites)
            sitename = sites[site]
            siteurl = vidurls[site]
    else:
        sitename = match[0][1]
        siteurl = match[0][0]
    outurl = "http://www.pornhive.tv/en/out/" + siteurl
    progress.update( 20, "", "Getting video page", "" )
    if 'loud' in sitename:
        progress.update( 30, "", "Getting StreamCloud", "" )
        playurl = getStreamCloud(outurl)
    elif "lash" in sitename:
        progress.update( 30, "", "Getting FlashX", "" )
        playurl = getFlashX(outurl)
    elif sitename == "NowVideo":
        progress.update( 30, "", "Getting NowVideo", "" )
        playurl = getNowVideo(outurl)        
    elif "Openload" in sitename:
        progress.update( 30, "", "Getting Openload", "" )
        progress.close()
        utils.PLAYVIDEO(outurl, name, download)
        return
    elif "streamin" in sitename:
        progress.update( 30, "", "Getting Streamin", "" )
        streaming = utils.getHtml(outurl, '')
        outurl=re.compile("action='([^']+)'").findall(streaming)[0]
        progress.close()
        utils.playvideo(outurl, name, download)
        return
    else:
        progress.close()
        utils.dialog.ok('Sorry','This host is not supported.')
        return
    progress.update( 90, "", "Playing video", "" )
    progress.close()
    if download == 1:
        utils.downloadVideo(playurl, name)
    else:
        iconimage = xbmc.getInfoImage("ListItem.Thumb")
        listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
        listitem.setInfo('video', {'Title': name, 'Genre': 'P**n'})
        xbmc.Player().play(playurl, listitem)
示例#2
0
def Playvid(url, name, download=None):
    print "cat3movie::playvid " + url
    progress.create('Play video', 'Searching videofile.')
    progress.update( 10, "", "Loading video page", "" )
    html = utils.getHtml(url, '')
    embedLinks = re.compile('<a href="(.+?)" rel="nofollow" target="_blank">').findall(html)
    url = ''
    for link in embedLinks:
        html = utils.getHtml(link, '')
        base64str = re.compile('Base64.decode\("(.+?)"\)').findall(html)
        url = url + " " + base64.b64decode(base64str[0])
    utils.playvideo(url, name, download)
示例#3
0
def Playvid(url, name, download=None):
    print "cat3movie::playvid " + url
    progress.create('Play video', 'Searching videofile.')
    progress.update(10, "", "Loading video page", "")
    html = utils.getHtml(url, '')
    embedLinks = re.compile(
        '<a href="(.+?)" rel="nofollow" target="_blank">').findall(html)
    url = ''
    for link in embedLinks:
        html = utils.getHtml(link, '')
        base64str = re.compile('Base64.decode\("(.+?)"\)').findall(html)
        url = url + " " + base64.b64decode(base64str[0])
    utils.playvideo(url, name, download)
def Playvid(url, name, download=None):
    progress.create('Play video', 'Searching videofile.')
    progress.update( 25, "", "Loading video page", "" )
    html = utils.getHtml(url, '')
    if re.search("keeplinks.eu", html, re.DOTALL | re.IGNORECASE):
        videosource = re.compile('<div class="webwarez">(.*?)</iframe>', re.DOTALL | re.IGNORECASE).findall(html)
        if not videosource:
            utils.dialog.ok('Oh oh','Links are encrypted.')
            return
        utils.playvideo(videosource[0], name, download, url)
    videosource = re.compile('<div class="webwarez">(.*?)</body>', re.DOTALL | re.IGNORECASE).findall(html)
    html = videosource[0].replace("http://linkshrink.net/zCOH=", "")
    utils.playvideo(html, name, download, url)
示例#5
0
def Playvid(url, name, download):
    progress.create('Play video', 'Searching videofile.')
    progress.update(10, "", "Loading video page", "")
    url = url.split('#')[0]
    videopage = utils.getHtml(url, '')
    entrycontent = re.compile('entry-content">(.*?)entry-content',
                              re.DOTALL | re.IGNORECASE).findall(videopage)[0]
    links = re.compile('href="([^"]+)"',
                       re.DOTALL | re.IGNORECASE).findall(entrycontent)
    videourls = " "
    for link in links:
        if 'securely' in link:
            link = utils.getVideoLink(link, url)
        videourls = videourls + " " + link
    utils.playvideo(videourls, name, download, url)
示例#6
0
def Playvid(url, name, download=None):
    progress.create('Play video', 'Searching videofile.')
    progress.update( 10, "", "Loading video page", "" )
    html = utils.getHtml(url, '')
    embedLinks = re.compile('<a href="([^"]+)" rel="nofollow" target="_blank">').findall(html)
    url = ''
    for link in embedLinks:
        if 'embedlink' in link:
            try:
                html = utils.getHtml(link, '')
                if 'Base64' in html:
                    base64str = re.compile(r'Base64\.decode\("([^"]+)"').findall(html)
                    url = url + " " + base64.b64decode(base64str[0])
            except: pass
    utils.playvideo(url, name, download, url)
示例#7
0
def play(url, name):
    print "play: " + url + " Name: " + name
    utils.progress.create("Play video", "Searching videofile.")
    utils.progress.update(10, "", "Loading video page", "")
    html = GET(url)
    match = re.compile(
        '<li class="col-md-4.+?<a href="(.+?)" target="_blank">.+?<i class="icon (.+?)"', re.DOTALL
    ).findall(html)
    sources = ""
    for videopage, host in match:
        if not host in UNSUPPORTED_HOSTS:
            sources = sources + videopage + "\n"
    print "Found sources: " + sources
    if len(sources) == 0:
        xbmc.executebuiltin("XBMC.Notification(Sorry!,Show doesn't have playable links,5000)")
    else:
        utils.playvideo(sources, name)
示例#8
0
def VIDEOLINKS(url,name):
        name = name.replace('[COLOR green]Lektor','')
        name = name.replace('[COLOR orange]Napisy','')
        name = name.replace('[/COLOR]','')
        link = getHtml (url)
        soup = BeautifulSoup(link, 'html.parser')
        divTag = soup.find_all("a" ,{"class":"watch"})
        print divTag
        for tag in divTag:
             #match=re.compile('<a class="watch" data-iframe="(.+?)" data-short="(.+?)" data-size="width: (.+?)px; height: (.+?)px;" data-urlhost="(.+?)" data-version="(.+?)" href="#!">Og').findall(str(tag))
             match=re.compile('<a class="watch" data-iframe="(.+?)" data-short="(.+?)" data-size="width: (.+?)px; height: (.+?)px;" data-urlhost="(.+?)" data-version="(.+?)"').findall(str(tag))
             for cos,lang_short,x,y,url,lang in match: 
                 print url + " linki"
                 match= re.compile('(http|https):\/\/(.+?)\/').findall(url)
                 for cos ,host in match:
                     host = host.replace('embed.','')
                     host = host.replace('www.','')
                     if "openload" in host:
                          #print "cosco " + host
                          ref = url.replace('video/','f/')
                          ref = ref.replace('http://','https://')
                          media_url = url.replace("http://openload.co/video/","https://openload.co/f/")
                          img_source = utils.getHtml(media_url, '', utils.openloadhdr)
                          match = re.compile('<meta name="og:image" content="(.+?)">').findall(img_source)
                          try:
                               poster_url = match[0]
                          except Exception:
                               pass
                          media_url = utils.playvideo(media_url, 'name', '', '')
                          media_url = media_url+'|User-Agent=Mozilla/5.0 (Windows NT 10.0; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0&Referer='+ref
                          print media_url + ' referer'
                          #media_url = urlresolver.resolve(media_url)
                          #poster_url = 'http://alltube.tv/static/host/play.png'
                          print media_url
                     elif "cda" in host:
                         media_url, poster_url = CDA(url)
                         if media_url:
                              #media_url = media_url+'|referer=http://static.cda.pl/flowplayer/flash/flowplayer.commercial-3.2.18.swf'
                              media_url = media_url+'|Cookie=PHPSESSID=1&Referer=http://static.cda.pl/flowplayer/flash/flowplayer.commercial-3.2.18.swf'
                              print media_url
                     elif "streamin" in host:
                          media_url = url.replace("video/","")
                          media_url = urlresolver.resolve(media_url)
                          poster_url = 'http://alltube.tv/static/host/play.png'
                     elif "vidto" in host:
                          media_url = url.replace("/v/","/")
                          media_url = urlresolver.resolve(media_url)
                          poster_url = 'http://alltube.tv/static/host/play.png'
                     else:                  
                         media_url = urlresolver.resolve(url)
                         poster_url = 'http://alltube.tv/static/host/play.png'
                 if media_url:
                      print media_url + " xxx"
                      #print lang
                 if media_url:
                      addLink(name+'[COLOR blue] '+lang+'[/COLOR]( '+host+' )',media_url,poster_url)
示例#9
0
def PHVideo(url, name, download=None):
    progress.create('Play video', 'Searching videofile.')
    progress.update(10, "", "Loading video page", "")
    Supported_hosts = [
        'Openload.io', 'StreamCloud', 'NowVideo', 'www.nowvideo.sx', 'FlashX',
        'www.flashx.tv', 'flashx.tv', 'streamcloud.eu', 'streamin.to',
        'videowood.tv', 'www.keeplinks.eu', 'openload.co', 'datoporn.com',
        'gr8movies.org', 'pornoworld.freeforumzone.com'
    ]
    videopage = utils.getHtml(url, '')
    match = re.compile(
        r'data-id="([^"]+)" target="_blank" title="Watch it on ([\w.]+)',
        re.DOTALL | re.IGNORECASE).findall(videopage)
    if len(match) > 1:
        sites = []
        vidurls = []
        for videourl, site in match:
            if site in Supported_hosts:
                sites.append(site)
                vidurls.append(videourl)
        if len(sites) == 1:
            sitename = sites[0]
            siteurl = vidurls[0]
        elif len(sites) > 1:
            site = utils.dialog.select('Select video site', sites)
            if site == -1:
                return
            sitename = sites[site]
            siteurl = vidurls[site]
        else:
            utils.notify('Sorry', 'No supported hosts found.')
            return
    else:
        sitename = match[0][1]
        siteurl = match[0][0]
    outurl = "http://www.pornhive.tv/en/out/" + siteurl
    progress.update(20, "", "Getting video page", "")
    if 'loud' in sitename:
        progress.update(30, "", "Getting StreamCloud", "")
        playurl = getStreamCloud(outurl)
    elif "lash" in sitename:
        progress.update(30, "", "Getting FlashX", "")
        progress.close()
        utils.PLAYVIDEO(outurl, name, download)
        return
    elif sitename == "NowVideo" or sitename == "www.nowvideo.sx":
        progress.update(30, "", "Getting NowVideo", "")
        playurl = getNowVideo(outurl)
    elif "penload" in sitename:
        progress.update(30, "", "Getting Openload", "")
        outurl1 = utils.getVideoLink(outurl, '')
        utils.playvideo(outurl1, name, download, outurl)
        return
    elif "videowood" in sitename:
        progress.update(30, "", "Getting Videowood", "")
        progress.close()
        utils.PLAYVIDEO(outurl, name, download)
        return
    elif "gr8movies" in sitename:
        progress.update(30, "", "Getting Gr8movies", "")
        progress.close()
        utils.PLAYVIDEO(outurl, name, download)
        return
    elif "freeforumzone" in sitename:
        progress.update(30, "", "Getting pornoworld", "")
        progress.close()
        utils.PLAYVIDEO(outurl, name, download)
        return
    elif "streamin" in sitename:
        progress.update(30, "", "Getting Streamin", "")
        streaming = utils.getHtml(outurl, '')
        outurl = re.compile("action='([^']+)'").findall(streaming)[0]
        progress.close()
        utils.playvideo(outurl, name, download, outurl)
        return
    elif 'keeplinks' in sitename:
        progress.update(30, "", "Getting Keeplinks", "")
        outurl2 = getKeeplinks(outurl)
        utils.playvideo(outurl2, name, download, outurl)
        return
    elif "datoporn" in sitename:
        progress.update(30, "", "Getting Datoporn", "")
        outurl1 = utils.getVideoLink(outurl, '')
        utils.playvideo(outurl1, name, download, outurl)
        return
    else:
        progress.close()
        utils.notify('Sorry', 'This host is not supported.')
        return
    progress.update(90, "", "Playing video", "")
    progress.close()
    if playurl:
        if download == 1:
            utils.downloadVideo(playurl, name)
        else:
            iconimage = xbmc.getInfoImage("ListItem.Thumb")
            listitem = xbmcgui.ListItem(name,
                                        iconImage="DefaultVideo.png",
                                        thumbnailImage=iconimage)
            listitem.setInfo('video', {'Title': name, 'Genre': 'P**n'})
            xbmc.Player().play(playurl, listitem)
示例#10
0
def PHVideo(url, name, download=None):
    progress.create('Play video', 'Searching videofile.')
    progress.update( 10, "", "Loading video page", "" )
    Supported_hosts = ['Openload.io', 'StreamCloud', 'NowVideo', 'www.nowvideo.sx', 'FlashX', 'www.flashx.tv', 'flashx.tv',  'streamcloud.eu', 'streamin.to', 'videowood.tv', 'www.keeplinks.eu', 'openload.co', 'datoporn.com', 'gr8movies.org', 'pornoworld.freeforumzone.com']
    videopage = utils.getHtml(url, '')
    match = re.compile(r'data-id="([^"]+)" target="_blank" title="Watch it on ([\w.]+)', re.DOTALL | re.IGNORECASE).findall(videopage)
    if len(match) > 1:
        sites = []
        vidurls = []
        for videourl, site in match:
            if site in Supported_hosts:
                sites.append(site)
                vidurls.append(videourl)
        if len(sites) ==  1:
            sitename = sites[0]
            siteurl = vidurls[0]
        elif len(sites) > 1:
            site = utils.dialog.select('Select video site', sites)
            if site == -1:
                return
            sitename = sites[site]
            siteurl = vidurls[site]
        else:
            utils.notify('Sorry','No supported hosts found.')
            return
    else:
        sitename = match[0][1]
        siteurl = match[0][0]
    outurl = "http://www.pornhive.tv/en/out/" + siteurl
    progress.update( 20, "", "Getting video page", "" )
    if 'loud' in sitename:
        progress.update( 30, "", "Getting StreamCloud", "" )
        playurl = getStreamCloud(outurl)
    elif "lash" in sitename:
        progress.update( 30, "", "Getting FlashX", "" )
        progress.close()
        utils.PLAYVIDEO(outurl, name, download)
        return
    elif sitename == "NowVideo" or sitename == "www.nowvideo.sx":
        progress.update( 30, "", "Getting NowVideo", "" )
        playurl = getNowVideo(outurl)        
    elif "penload" in sitename:
        progress.update( 30, "", "Getting Openload", "" )
        outurl1 = utils.getVideoLink(outurl, '')
        utils.playvideo(outurl1, name, download, outurl)
        return
    elif "videowood" in sitename:
        progress.update( 30, "", "Getting Videowood", "" )
        progress.close()
        utils.PLAYVIDEO(outurl, name, download)
        return
    elif "gr8movies" in sitename:
        progress.update( 30, "", "Getting Gr8movies", "" )
        progress.close()
        utils.PLAYVIDEO(outurl, name, download)
        return
    elif "freeforumzone" in sitename:
        progress.update( 30, "", "Getting pornoworld", "" )
        progress.close()
        utils.PLAYVIDEO(outurl, name, download)
        return        
    elif "streamin" in sitename:
        progress.update( 30, "", "Getting Streamin", "" )
        streaming = utils.getHtml(outurl, '')
        outurl=re.compile("action='([^']+)'").findall(streaming)[0]
        progress.close()
        utils.playvideo(outurl, name, download, outurl)
        return
    elif 'keeplinks' in sitename:
        progress.update( 30, "", "Getting Keeplinks", "" )
        outurl2 = getKeeplinks(outurl)
        utils.playvideo(outurl2, name, download, outurl)
        return
    elif "datoporn" in sitename:
        progress.update( 30, "", "Getting Datoporn", "" )
        outurl1 = utils.getVideoLink(outurl, '')
        utils.playvideo(outurl1, name, download, outurl)
        return        
    else:
        progress.close()
        utils.notify('Sorry','This host is not supported.')
        return
    progress.update( 90, "", "Playing video", "" )
    progress.close()
    if playurl:
        if download == 1:
            utils.downloadVideo(playurl, name)
        else:
            iconimage = xbmc.getInfoImage("ListItem.Thumb")
            listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
            listitem.setInfo('video', {'Title': name, 'Genre': 'P**n'})
            xbmc.Player().play(playurl, listitem)