Пример #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):
    utils.PLAYVIDEO(url, name, download)
Пример #3
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)
Пример #4
0
def WXFVideo(url, name, download):
    utils.PLAYVIDEO(url, name, download)
Пример #5
0
def PPlayvid(url, name, alternative=1, download=None):
    def playvid():
        progress.close()
        if download == 1:
            utils.downloadVideo(videourl, 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(videourl, listitem)

    progress.create('Play video', 'Searching videofile.')
    progress.update(25, "", "Loading video page", "")

    videopage = utils.getHtml(url, '', '', True)
    if 'openload' in videopage:
        progress.close()
        utils.PLAYVIDEO(url, name, download)
    elif re.search('server/\?t=', videopage, re.DOTALL | re.IGNORECASE):
        match = re.compile(r'/server/\?t=([^"]+)',
                           re.DOTALL | re.IGNORECASE).findall(videopage)
        match = "http://www.porn00.org/server/?t=" + match[0]
        progress.update(50, "", "Opening porn00 video page", "")
        iframepage = utils.getHtml(match, url)
        video720 = re.compile(r'file: "([^"]+)",\s+label: "7',
                              re.DOTALL | re.IGNORECASE).findall(iframepage)
        if not video720:
            if re.search('id="alternatives"', videopage,
                         re.DOTALL | re.IGNORECASE):
                alturl, nalternative = GetAlternative(url, alternative)
                PPlayvid(alturl, name, nalternative, download)
            else:
                progress.close()
                utils.notify('Oh oh', 'Couldn\'t find a supported videohost')
        else:
            videourl = video720[0]
            playvid()
    elif re.search('video_ext.php\?', videopage, re.DOTALL | re.IGNORECASE):
        match = re.compile('<iframe.*?src="([^"]+video_ext[^"]+)"',
                           re.DOTALL | re.IGNORECASE).findall(videopage)
        progress.update(30, "", "Opening VK video page", "")
        videourl = getVK(match[0])
        if not videourl:
            if re.search('id="alternatives"', videopage,
                         re.DOTALL | re.IGNORECASE):
                alturl, nalternative = GetAlternative(url, alternative)
                PPlayvid(alturl, name, nalternative, download)
            else:
                progress.close()
                utils.notify('Oh oh', 'Couldn\'t find a supported videohost')
        else:
            playvid()
    elif re.search('play/\?v=', videopage, re.DOTALL | re.IGNORECASE):
        try:
            match = re.compile(r'src="([^"]+play/\?v=\d{3,})"',
                               re.DOTALL | re.IGNORECASE).findall(videopage)
            progress.update(50, "", "Opening porn00/pornAQ video page", "")
            iframepage = utils.getHtml(match[0], url)
            pcloudid = re.compile(r"playermodes\('(\d+)'", re.DOTALL
                                  | re.IGNORECASE).findall(iframepage)[0]
            pcloudurl = "https://api.pcloud.com/getvideolinks?fileid=%s&access_token=6EWjZL1NQ4yoIe5kZSj6Wq7Z0Yc1Wmg04EmBbwWttEcUekM7cWwX" % pcloudid
            pcloudpage = utils.getHtml(pcloudurl, match[0])
            pcloudjson = json.loads(pcloudpage)
            xbmc.log(pcloudpage)
            if pcloudjson["result"] != 0:
                if re.search('id="alternatives"', videopage,
                             re.DOTALL | re.IGNORECASE):
                    alturl, nalternative = GetAlternative(url, alternative)
                    PPlayvid(alturl, name, nalternative, download)
                else:
                    progress.close()
                    utils.notify('Oh oh',
                                 'Couldn\'t find a supported videohost')
            else:
                videourl = "https://%s%s" % (
                    pcloudjson["variants"][-1]["hosts"][0],
                    pcloudjson["variants"][-1]["path"])
                playvid()
        except:
            if re.search('id="alternatives"', videopage,
                         re.DOTALL | re.IGNORECASE):
                alturl, nalternative = GetAlternative(url, alternative)
                PPlayvid(alturl, name, nalternative, download)
            else:
                progress.close()
                utils.notify('Oh oh', 'Couldn\'t find a supported videohost')
    elif re.search('/\?V=', videopage, re.DOTALL | re.IGNORECASE):
        try:
            match = re.compile('<iframe.*?src="([^"]+watch/[^"]+)"',
                               re.DOTALL | re.IGNORECASE).findall(videopage)
            progress.update(50, "", "Opening porn00/pornAQ video page", "")
            iframepage = utils.getHtml(match[0], url)
            video720 = re.compile(r'file: "([^"]+)",\s+label: "7', re.DOTALL
                                  | re.IGNORECASE).findall(iframepage)
            if not video720:
                if re.search('id="alternatives"', videopage,
                             re.DOTALL | re.IGNORECASE):
                    alturl, nalternative = GetAlternative(url, alternative)
                    PPlayvid(alturl, name, nalternative, download)
                else:
                    progress.close()
                    utils.notify('Oh oh',
                                 'Couldn\'t find a supported videohost')
            else:
                videourl = video720[0]
                playvid()
        except:
            if re.search('id="alternatives"', videopage,
                         re.DOTALL | re.IGNORECASE):
                alturl, nalternative = GetAlternative(url, alternative)
                PPlayvid(alturl, name, nalternative, download)
            else:
                progress.close()
                utils.notify('Oh oh', 'Couldn\'t find a supported videohost')
    elif re.search('google.com/file', videopage, re.DOTALL | re.IGNORECASE):
        match = re.compile('file/d/([^/]+)/',
                           re.DOTALL | re.IGNORECASE).findall(videopage)
        googleurl = "https://docs.google.com/uc?id=" + match[
            0] + "&export=download"
        progress.update(50, "", "Opening Google docs video page", "")
        googlepage = utils.getHtml(googleurl, '')
        video720 = re.compile('"downloadUrl":"([^?]+)',
                              re.DOTALL | re.IGNORECASE).findall(googlepage)
        if not video720:
            if re.search('id="alternatives"', videopage,
                         re.DOTALL | re.IGNORECASE):
                alturl, nalternative = GetAlternative(url, alternative)
                PPlayvid(alturl, name, nalternative, download)
            else:
                progress.close()
                utils.notify('Oh oh', 'Couldn\'t find a supported videohost')
        else:
            videourl = video720[0]
            playvid()
    elif re.search('id="alternatives"', videopage, re.DOTALL | re.IGNORECASE):
        alturl, nalternative = GetAlternative(url, alternative)
        PPlayvid(alturl, name, nalternative, download)
    else:
        progress.close()
        utils.notify('Oh oh', 'Couldn\'t find a supported videohost')
Пример #6
0
def Playvid(url, name, download):
    url = url.split('#')[0]
    utils.PLAYVIDEO(url, name, download)
Пример #7
0
def Playvid(url, name):
    utils.PLAYVIDEO(url, name)