示例#1
0
def Playvid(url, name, download=None):
	videopage = utils.getHtml(url, '')
	videourl = re.compile('video_url="([^"]+)"').findall(videopage)[0]
	videourl += re.compile('video_url\+="([^"]+)"').findall(videopage)[0]	
	partes = videourl.split('||')
	videourl = decode_url(partes[0])
	videourl = re.sub('/get_file/\d+/[0-9a-z]{32}/', partes[1], videourl)
	videourl += '&' if '?' in videourl else '?'
	videourl += 'lip=' + partes[2] + '&lt=' + partes[3]		
	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'})
		listitem.setProperty("IsPlayable","true")
		if int(sys.argv[1]) == -1:
			pl = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
			pl.clear()
			pl.add(videourl, listitem)
			xbmc.Player().play(pl)
		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)
示例#2
0
def Playvid(url, name, download=None):
    abpage = utils.getHtml(url, url)
    vartucurl = re.compile('<iframe.*?src="([^"]+)"',
                           re.DOTALL | re.IGNORECASE).findall(abpage)[0]
    embedpage = utils.getHtml(vartucurl, url)
    scripturl = re.compile("src='([^']+)",
                           re.DOTALL | re.IGNORECASE).findall(embedpage)[0]
    scripturl = "https://vartuc.com" + scripturl
    videopage = utils.getHtml(scripturl, vartucurl, vartuchdr)
    video_url = re.compile("video_url:(.*?),video",
                           re.DOTALL | re.IGNORECASE).findall(videopage)[0]
    match = re.compile(r'(gh\w\w\w)="([^"]+)"',
                       re.DOTALL | re.IGNORECASE).findall(videopage)
    for repl, repl2 in match:
        video_url = video_url.replace(repl, repl2)
    video_url = video_url.replace("\"", "")
    videourl = video_url.replace("+", "")

    videourl = utils.getVideoLink(videourl, '', vartuchdr2)

    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)
示例#3
0
def PTPlayvid(url, name, download=None):
    progress.create('Play video', 'Searching for videofile.')
    progress.update(25, "", "Loading video page", "")
    videopage = utils.getHtml(url, '')
    if 'video_url_text' not in videopage:
        videourl = re.compile("video_url: '([^']+)'", re.DOTALL
                              | re.IGNORECASE).search(videopage).group(1)
    else:
        sources = {}
        srcs = re.compile(
            "video(?:_alt_|_)url(?:[0-9]|): '([^']+)'.*?video(?:_alt_|_)url(?:[0-9]|)_text: '([^']+)'",
            re.DOTALL | re.IGNORECASE).findall(videopage)
        for src, quality in srcs:
            sources[quality] = src
        videourl = utils.selector(
            'Select quality',
            sources,
            dont_ask_valid=True,
            sort_by=lambda x: int(''.join([y for y in x if y.isdigit()])),
            reverse=True)
    if not videourl:
        progress.close()
        return
    progress.update(75, "", "Video found", "")
    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)
def Playvid(url, name, download=None):
    html = utils.getHtml(url, '')
    match = re.compile(
        r"""quality_([0-9]{3,4})p\s*=(?:"|')?([^'";]+)(?:"|')?;""",
        re.DOTALL | re.IGNORECASE).findall(html)
    match = sorted(match, key=lambda x: int(x[0]), reverse=True)
    videolink = match[0][1]
    if "/*" in videolink:
        videolink = re.sub(r"/\*[^/]+/", "", videolink).replace("+", "")

        linkparts = re.compile(r"(\w+)",
                               re.DOTALL | re.IGNORECASE).findall(videolink)
        for part in linkparts:
            partval = re.compile(part + '="(.*?)";',
                                 re.DOTALL | re.IGNORECASE).findall(html)[0]
            partval = partval.replace('" + "', '')
            videolink = videolink.replace(part, partval)

    videourl = videolink.replace(" ", "")
    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)
示例#5
0
def Playvid(url, name, download=None):
    try:
        listhtml = utils.getHtml(url, '')
    except urllib2.HTTPError as e:
        utils.notify(name, e)
        return None
    except:
        return None
    videoArray = re.compile('source src="(.+?)".+?label=\'(.+?)\'',
                            re.DOTALL | re.IGNORECASE).findall(listhtml)
    choice = xbmcgui.Dialog().select('Select resolution',
                                     [item[1] for item in videoArray])
    if choice == -1: return
    video1 = videoArray[choice][0]
    if 'pornhdprime' in url:
        videourl = video1.replace('&amp;', '&')
    else:
        videourl = json.loads(
            base64.b64decode(video1.split('/gvf/')[-1].split('.')[1]))['url']
    iconimage = xbmc.getInfoImage("ListItem.Thumb")
    listitem = xbmcgui.ListItem(name,
                                iconImage="DefaultVideo.png",
                                thumbnailImage=iconimage)
    listitem.setInfo('video', {'Title': name, 'Genre': 'PornHD'})
    if download == 1:
        utils.downloadVideo(videourl, name)
    else:
        xbmc.Player().play(videourl, listitem)
示例#6
0
def PTPlayvid(url, name, download=None):

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

    videopage = utils.getHtml(url, '')
    match = re.compile("video_alt_url2: '([^']+)'",
                       re.DOTALL | re.IGNORECASE).findall(videopage)
    match2 = re.compile("video_alt_url: '([^']+)'",
                        re.DOTALL | re.IGNORECASE).findall(videopage)
    match3 = re.compile("video_url: '([^']+)'",
                        re.DOTALL | re.IGNORECASE).findall(videopage)
    try:
        videourl = match[0]
    except:
        try:
            videourl = match2[0]
        except:
            videourl = match3[0]

    progress.update(75, "", "Video found", "")
    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)
示例#7
0
def BGPlayvid(url, name, download=None):
	
	videopage = utils.getHtml4(url)
	#videopage = json.loads(videopage)

	if not videopage["240p"] == None:
		url = videopage["240p"].encode("utf8")
	if not videopage["480p"] == None:
		url = videopage["480p"].encode("utf8")
	if not videopage["720p"] == None:
		url = videopage["720p"].encode("utf8")
	
	url = url.replace("{DATA_MARKERS}","data=pc_XX")
	if not url.startswith("http:"): url = "https:" + url
	
	key = re.compile("/key=(.*?)%2Cend", re.DOTALL | re.IGNORECASE).findall(url)[0]
	decryptedkey = decrypt_key(key)
	
	videourl = url.replace(key, decryptedkey)
	
	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'})
		listitem.setProperty("IsPlayable","true")
		if int(sys.argv[1]) == -1:
			pl = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
			pl.clear()
			pl.add(videourl, listitem)
			xbmc.Player().play(pl)
		else:
			listitem.setPath(str(videourl))
			xbmcplugin.setResolvedUrl(utils.addon_handle, True, listitem)
示例#8
0
def BGPlayvid(url, name, download=None):
    videopage = utils.getHtml4(url)
    videopage = json.dumps(videopage)
    list = {}
    match = re.compile('"(\d+p)":\s*?"([^"]+)"',
                       re.DOTALL | re.IGNORECASE).findall(videopage)
    for quality, url in match:
        list[quality] = url
    url = utils.selector('Select quality',
                         list,
                         dont_ask_valid=True,
                         sort_by=lambda x: int(x[:-1]),
                         reverse=True)
    if not url:
        return
    url = url.replace("{DATA_MARKERS}", "data=pc_XX")
    if not url.startswith("http:"): url = "https:" + url
    videourl = url
    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'})
        listitem.setProperty("IsPlayable", "true")
        if int(sys.argv[1]) == -1:
            pl = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
            pl.clear()
            pl.add(videourl, listitem)
            xbmc.Player().play(pl)
        else:
            listitem.setPath(str(videourl))
            xbmcplugin.setResolvedUrl(utils.addon_handle, True, listitem)
示例#9
0
def BGPlayvid(url, name, download=None):
    videopage = utils.getHtml(url,'http://beeg.com')
    videopage = json.loads(videopage)
   
    if not videopage["240p"] == None:
        url = videopage["240p"].encode("utf8")
    if not videopage["480p"] == None:
        url = videopage["480p"].encode("utf8")
    if not videopage["720p"] == None:
        url = videopage["720p"].encode("utf8")

    url = url.replace("{DATA_MARKERS}","data=pc_XX")
    if not url.startswith("http:"): url = "https:" + url
    
    key = re.compile("/key=(.*?)%2Cend", re.DOTALL | re.IGNORECASE).findall(url)[0]
    decryptedkey = decrypt_key(key)
    
    videourl = url.replace(key, decryptedkey)

    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'})
        listitem.setProperty("IsPlayable","true")
        if int(sys.argv[1]) == -1:
            pl = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
            pl.clear()
            pl.add(videourl, listitem)
            xbmc.Player().play(pl)
        else:
            listitem.setPath(str(videourl))
            xbmcplugin.setResolvedUrl(utils.addon_handle, True, listitem)
示例#10
0
def Playvid(url, name, download=None):
    videopage = utils.getHtml(url, '')
    videourl = re.compile('video_url="([^"]+)"').findall(videopage)[0]
    videourl += re.compile('video_url\+="([^"]+)"').findall(videopage)[0]
    partes = videourl.split('||')
    videourl = decode_url(partes[0])
    videourl = re.sub('/get_file/\d+/[0-9a-z]{32}/', partes[1], videourl)
    videourl += '&' if '?' in videourl else '?'
    videourl += 'lip=' + partes[2] + '&lt=' + partes[3]
    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'})
        listitem.setProperty("IsPlayable", "true")
        if int(sys.argv[1]) == -1:
            pl = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
            pl.clear()
            pl.add(videourl, listitem)
            xbmc.Player().play(pl)
        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)
示例#11
0
def Playvid(url, name, download=None):
    vp = utils.VideoPlayer(name, download)
    vp.progress.update(25, "[CR]Loading video page[CR]")
    html = utils.getHtml(url)
    sources = re.findall(r"video(?:_alt)?_url:\s*'([^']+).+?text:\s*'([^']+)",
                         html)
    if sources:
        sources = {label: url for url, label in sources}
        surl = utils.prefquality(
            sources,
            sort_by=lambda x: int(''.join([y for y in x if y.isdigit()])),
            reverse=True)
        if surl.startswith('function/'):
            lcode = re.findall(r"license_code:\s*'([^']+)", html)[0]
            surl = '{0}|User-Agent=iPad&Referer={1}/'.format(
                kvs_decode(surl, lcode), site.url)
    if not surl:
        vp.progress.close()
        return
    vp.progress.update(75, "[CR]Video found[CR]")
    vp.progress.close()
    if download == 1:
        utils.downloadVideo(surl, name)
    else:
        vp.play_from_direct_link(surl)
示例#12
0
def Playvid(url, name, download=None):
    playall = True if utils.addon.getSetting(
        "paradisehill") == "true" else False
    videopage = utils.getHtml(url, site.url)
    videos = re.compile(r'href="([^"]+)">(Part\s*\d*)',
                        re.DOTALL | re.IGNORECASE).findall(videopage)
    if len(videos) < 1:
        videos = re.compile(r'<source[^\n]+src="([^"]+)">([^<]+)',
                            re.DOTALL | re.IGNORECASE).findall(videopage)

    if not playall:
        if len(videos) > 1:
            videolist = []
            for _, pname in videos:
                videolist.append(pname)
            videopart = dialog.select('Multiple videos found', videolist)
            if videopart == -1:
                return
            videourl = videos[videopart][0]
            if videourl.startswith('//'):
                videourl = 'https:' + videourl
            name = '{0} - {1}'.format(name, videos[videopart][1])
        else:
            videourl = videos[0][0]
        if videourl.startswith('//'):
            videourl = 'https:' + videourl
        videourl = videourl + '|Referer={}'.format(url)

    if download == 1 and not playall:
        if videourl.startswith('//'):
            videourl = 'https:' + videourl
        utils.downloadVideo(videourl, name)
    else:
        iconimage = xbmc.getInfoImage("ListItem.Thumb")

        if playall:
            pl = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
            pl.clear()
            for videourl, pname in videos:
                newname = name + ' ' + pname
                listitem = xbmcgui.ListItem(newname)
                listitem.setArt({
                    'thumb': iconimage,
                    'icon': "DefaultVideo.png",
                    'poster': iconimage
                })
                listitem.setInfo('video', {'Title': newname, 'Genre': 'P**n'})
                listitem.setProperty("IsPlayable", "true")
                if videourl.startswith('//'):
                    videourl = 'https:' + videourl
                videourl = "{0}|Referer={1}".format(videourl, url)
                pl.add(videourl, listitem)
                listitem = ''
            xbmc.Player().play(pl)
        else:
            if videourl.startswith('//'):
                videourl = 'https:' + videourl
            vp = utils.VideoPlayer(name)
            vp.play_from_direct_link(videourl)
示例#13
0
def Playvid(videourl, name, download=None):
    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)
示例#14
0
def Playvid(url, name, download=None):
	videopage = utils.getHtml(url, '')
	videourl=re.compile('source src="(.+?)"', re.DOTALL | re.IGNORECASE).findall(videopage)[0]
	videourl+='|verifypeer=false'
	if download == 1:
		utils.downloadVideo(videourl, name)
	else:
		xbmc.Player().play(str(videourl))
示例#15
0
def Playvid(url, name, download=None):
	videopage = utils.getHtml(url, '')
	videourl=re.compile('source src="(.+?)"', re.DOTALL | re.IGNORECASE).findall(videopage)[0]
	videourl+='|verifypeer=false'
	if download == 1:
		utils.downloadVideo(videourl, name)
	else:    
		xbmc.Player().play(str(videourl))
示例#16
0
def NFPlayvid(url, name, download=None):
    videourl = url
    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)
示例#17
0
def Playvid(url, name, download=None):
    if download == 1:
        utils.downloadVideo(url, name)
    else:
        page = utils.getHtml(url, '')
        match = re.compile(r'videoUrlMedium = "(.+?)"', re.DOTALL | re.IGNORECASE).findall(page)
        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(match[0], listitem)
示例#18
0
def Playvid(url, name, download=None):
    if download == 1:
        utils.downloadVideo(url, name)
    else:
        page = utils.getHtml(url, '')
        match = re.compile(r'videoUrlMedium = "(.+?)"', re.DOTALL | re.IGNORECASE).findall(page)
        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(match[0], listitem)
示例#19
0
def Playvid(url, name, download=None):
    html = utils.getHtml(url, '')
    videourl = re.compile("video_url: '([^']+)").findall(html)
    videourl = videourl[0]
    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)
示例#20
0
def yourporn_play(url, name, download=None):
	html = utils.getHtml(url, '')
	videourl = re.compile('''data-vnfo='{".+?":"(.+?)"''', re.DOTALL | re.IGNORECASE).findall(html)[0].replace('\/','/').replace('/cdn/','/cdn2/')
	videourl='https://yourporn.sexy'+videourl
	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)		
示例#21
0
def Playvid(url, name, download=None):
	html = utils.getHtml(url, '')
	videourl = re.compile('video id="vporn-video-player".*?<source src="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(html)[0]
	if download == 1:
		utils.downloadVideo(videourl, name)
	else:    
	#	xbmc.Player().play(str(videourl))
		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)		
def Playvid(url, name, download=None):
    videopage = utils.getHtml(url, '')
    videourl = re.compile("'file': '([^']+)", re.DOTALL | re.IGNORECASE).findall(videopage)[-1]
    videourl = utils.getVideoLink(videourl, url)
    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)
示例#23
0
def NLPLAYVID(url,name, download=None):
    videopage = utils.getHtml(url, '')
    videourl = re.compile('<source src="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(videopage)
    videourl = videourl[0]
    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)
示例#24
0
def HCPlayvid(url, name, download=None):
    progress.create('Play video', 'Searching videofile.')
    progress.update(10, "", "Loading video page", "")
    link = utils.getHtml(url, '')
    match = re.compile('<iframe.*? src="([^"]+)" FRAME',
                       re.DOTALL | re.IGNORECASE).findall(link)
    if len(match) > 1:
        vh = dialog.select('Videohost:', match)
        if vh == -1:
            return
    else:
        vh = 0
    progress.update(40, "", "Loading video host", "")
    urldata2 = getHC(match[vh])
    if match[vh].find('hentaiupload') > 0:
        progress.update(80, "", "Loading hentaiupload", "")
        try:
            match1 = re.compile('url: "([^"]+mp4)',
                                re.DOTALL | re.IGNORECASE).findall(urldata2)
            url = match1[0]
        except:
            pass
        videourl = url + "|referer=" + match[vh]
    elif match[vh].find('hvidengine') > 0:
        progress.update(80, "", "Loading hvidengine", "")
        try:
            match1 = re.compile('file: "([^"]+)',
                                re.DOTALL | re.IGNORECASE).findall(urldata2)
            url = match1[0]
        except:
            pass
        videourl = url + "|referer=" + match[vh]
    else:
        progress.update(80, "", "Loading video uphentaivid", "")
        match2 = re.compile("<script type='text/javascript'>([^<]+)</sc",
                            re.DOTALL | re.IGNORECASE).findall(urldata2)
        for jspacked in match2:
            res = unpack(jspacked)
            try:
                videourl = re.compile("file.*?(http.*?mp4)", re.DOTALL
                                      | re.IGNORECASE).findall(res)[0]
            except:
                videourl = None
    progress.close()
    if videourl:
        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)
示例#25
0
def Playvid(url, name, download=None):
    html = utils.getHtml(url, '')
    videourl = re.compile("video_url: '([^']+)").findall(html)
    videourl = videourl[0]
    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)
示例#26
0
 def playvid(videourl, referer):
     progress.close()
     if download == 1:
         utils.downloadVideo(videourl, name)
     else:
         videourl = videourl + "|referer=" + referer
         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)
示例#27
0
def Playvid(url, name, download=None):
    videopage = utils.getHtml(url, pdreferer, headers, data='')
    links = re.compile('<a href="([^"]+)" class="post_download_link clearfix">[^>]+>.*?(\d+p).*?<',
                       re.DOTALL | re.IGNORECASE).findall(videopage)
    videourl = getVideoUrl(links)
    videourl = utils.getVideoLink(videourl, url)
    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)
示例#28
0
def TPPlayvid(url, name, download=None):
    videopage = utils.getHtml(url, '')
    match = re.compile('<source src="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(videopage)
    if match:
        videourl = match[0]
        if videourl.startswith('//'): videourl = 'http:' + videourl
        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)
示例#29
0
def TPPlayvid(url, name, download=None):
    videopage = utils.getHtml(url, '')
    match = re.compile('<source src="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(videopage)
    if match:
        videourl = match[0]
        if videourl.startswith('//'): videourl = 'http:' + videourl
        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)
示例#30
0
def Playvid(url, name, download=None):
    videopage = utils.getHtml(url, pdreferer, headers, data='')
    links = re.compile('<a href="([^"]+)" class="post_download_link clearfix">[^>]+>.*?(\d+p).*?<',
                       re.DOTALL | re.IGNORECASE).findall(videopage)
    videourl = getVideoUrl(links)
    videourl = utils.getVideoLink(videourl, url)
    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)
示例#31
0
def PTPlayvid(url, name, download=None):
    videopage = utils.getHtml(url, '')
    match = re.compile("<filehd>([^<]+)<", re.DOTALL | re.IGNORECASE).findall(videopage)
    match2 = re.compile("<file>([^<]+)<", re.DOTALL | re.IGNORECASE).findall(videopage)
    try: videourl = match[0]
    except: videourl = match2[0]
    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)
示例#32
0
def Playvid(url, name, download=None):
    if utils.addon.getSetting("paradisehill") == "true": playall = True
    else: playall = ''
    videopage = utils.getHtml(url, '')
    match = re.compile('"src":"([^"]+)',
                       re.DOTALL | re.IGNORECASE).findall(videopage)
    videos = match

    if playall == '':
        if len(videos) > 1:
            i = 1
            videolist = []
            for x in videos:
                videolist.append('Part ' + str(i))
                i += 1
            videopart = dialog.select('Multiple videos found', videolist)
            if videopart == -1:
                return
            videourl = videos[videopart]
        else:
            videourl = videos[0]
        videourl = videourl.replace('\/', '/')
        videourl = videourl + "|referer=" + url

    if download == 1 and playall == '':
        utils.downloadVideo(videourl, name)
    else:
        iconimage = xbmc.getInfoImage("ListItem.Thumb")

        if playall:
            pl = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
            pl.clear()
            i = 1
            for videourl in videos:
                newname = name + ' Part ' + str(i)
                listitem = xbmcgui.ListItem(newname,
                                            iconImage="DefaultVideo.png",
                                            thumbnailImage=iconimage)
                listitem.setInfo('video', {'Title': newname, 'Genre': 'P**n'})
                listitem.setProperty("IsPlayable", "true")
                videourl = videourl + "|referer=" + url
                pl.add(videourl, listitem)
                i += 1
                listitem = ''
            xbmc.Player().play(pl)
        else:
            listitem = xbmcgui.ListItem(name,
                                        iconImage="DefaultVideo.png",
                                        thumbnailImage=iconimage)
            listitem.setInfo('video', {'Title': name, 'Genre': 'P**n'})
            xbmc.Player().play(videourl, listitem)
示例#33
0
def NLPLAYVID(url, name, download=None):
    videopage = utils.getHtml(url, '')
    videourl = re.compile('<source src="([^"]+)"',
                          re.DOTALL | re.IGNORECASE).findall(videopage)
    videourl = videourl[0]
    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)
示例#34
0
def Playvid(url, name, download=None):
    print "mrsexe::Playvid " + url
    html = utils.getHtml(url, '')
    videourl = re.compile(r"src='(/inc/clic\.php\?video=.+?&cat=mrsex.+?)'").findall(html)
    html = utils.getHtml('http://www.mrsexe.com/' + videourl[0], '')
    videourls = re.compile(r"'file': \"(.+?)\",.+?'label': '(.+?)'", re.DOTALL).findall(html)
    videourls = sorted(videourls, key=lambda tup: tup[1], reverse=True)
    videourl = videourls[0][0]
    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)
示例#35
0
def Playvid(url, name, download=None):
    print "mrsexe::Playvid " + url
    html = utils.getHtml(url, '')
    videourl = re.compile(r"src='(/inc/clic\.php\?video=.+?&cat=mrsex.+?)'").findall(html)
    html = utils.getHtml('http://www.mrsexe.com/' + videourl[0], '')
    videourls = re.compile(r"'file': \"(.+?)\",.+?'label': '(.+?)'", re.DOTALL).findall(html)
    videourls = sorted(videourls, key=lambda tup: tup[1], reverse=True)
    videourl = videourls[0][0]
    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)
示例#36
0
def Playvid(url, name, download=None):
    videopage = utils.getHtml(url, '')
    servervideo = re.compile("servervideo = '([^']+)'", re.DOTALL | re.IGNORECASE).findall(videopage)[0]
    vpath = re.compile("path = '([^']+)'", re.DOTALL | re.IGNORECASE).findall(videopage)[0]
    repp = re.compile(r"repp = codage\('([^']+)'", re.DOTALL | re.IGNORECASE).findall(videopage)[0]
    filee = re.compile("filee = '([^']+)'", re.DOTALL | re.IGNORECASE).findall(videopage)[0]
    repp = hashlib.md5(repp).hexdigest()
    videourl = servervideo + vpath + repp + filee
    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)
示例#37
0
def Playvid(url, name, download=None):
    html = utils.getHtml(url, '')
    videourl = re.compile(
        'video id="vporn-video-player".*?<source src="([^"]+)"',
        re.DOTALL | re.IGNORECASE).findall(html)[0]
    if download == 1:
        utils.downloadVideo(videourl, name)
    else:
        #	xbmc.Player().play(str(videourl))
        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)
示例#38
0
def Playvid(url, name, download=None):
    utils.progress.create('Playing video', 'Searching for videofile')
    utils.progress.update(25, "", "Loading video page", "")
    videopage = utils.getHtml(url, '')
    videourl = re.compile('video_url="([^"]+)"',
                          re.DOTALL | re.IGNORECASE).findall(videopage)[-1]
    videourl = utils.getVideoLink(videourl, url)
    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'})
        utils.progress.update(90, "", "Playing video", "")
        xbmc.Player().play(videourl, listitem)
示例#39
0
def Playvid(url, name, download=None):
    html = utils.getHtml(url, '')
    stream_id = re.compile("stream_id  = '([^']+)';").findall(html)
    stream_key = re.compile("stream_key  = '([^']+)'").findall(html)
    stream_hd = re.compile("stream_hd  = (1|0)").findall(html)
    if int(stream_hd[0]) == 1:
        source = '/title/720p__mp4'
    else:
        source = '/title/480p__mp4'
    videourl = base_url + '/_' + stream_id[0] + '/' + stream_key[0] + source
    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)
示例#40
0
def Playvid(url, name, download=None):
    html = utils.getHtml(url, '')
    stream_id = re.compile("stream_id  = '([^']+)';").findall(html)
    stream_key = re.compile("stream_key  = '([^']+)'").findall(html)
    stream_hd = re.compile("stream_hd  = (1|0)").findall(html)
    if int(stream_hd[0]) == 1:
        source = '/title/720p__mp4'
    else:
        source = '/title/480p__mp4'
    videourl = base_url + '/_' + stream_id[0] + '/' + stream_key[0] + source
    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)
示例#41
0
def Play(url, name, download=None):
    vp = utils.VideoPlayer(name, download)
    vp.progress.update(25, "[CR]Loading video page[CR]")
    html = utils.getHtml(url, site.url)
    sources = re.compile(r'<a\s*class="video-links__link"\s*href="([^"]+)"\s*no-load-content>([^\s]+)').findall(html)
    if sources:
        sources = {key: value for value, key in sources}
        videourl = utils.prefquality(sources, reverse=True)
    if not videourl:
        vp.progress.close()
        return
    vp.progress.update(75, "[CR]Video found[CR]")
    vp.progress.close()
    if download == 1:
        utils.downloadVideo(videourl, name)
    else:
        vp.play_from_direct_link(videourl)
示例#42
0
def HCPlayvid(url,name, download=None):
    progress.create('Play video', 'Searching videofile.')
    progress.update( 10, "", "Loading video page", "" )
    link = utils.getHtml(url,'')
    match = re.compile('<iframe.*? src="([^"]+)" FRAME', re.DOTALL | re.IGNORECASE).findall(link)
    if len(match) > 1:
        vh = dialog.select('Videohost:', match)
        if vh == -1:
            return
    else:
        vh = 0
    progress.update( 40, "", "Loading video host", "" )
    urldata2 = getHC(match[vh])
    if match[vh].find('hentaiupload') > 0:
        progress.update( 80, "", "Loading hentaiupload", "" )    
        try:
            match1 = re.compile('url: "([^"]+mp4)', re.DOTALL | re.IGNORECASE).findall(urldata2)
            url = match1[0]
        except: pass
        videourl = url + "|referer="+ match[vh]
    elif match[vh].find('hvidengine') > 0:
        progress.update( 80, "", "Loading hvidengine", "" )        
        try:
            match1 = re.compile('file: "([^"]+)', re.DOTALL | re.IGNORECASE).findall(urldata2)
            url = match1[0]
        except: pass
        videourl = url + "|referer="+ match[vh]
    else:
        progress.update( 80, "", "Loading video uphentaivid", "" )
        match2 = re.compile("<script type='text/javascript'>([^<]+)</sc", re.DOTALL | re.IGNORECASE).findall(urldata2)
        for jspacked in match2:
            res = unpack(jspacked)
            try:
                videourl = re.compile("file.*?(http.*?mp4)", re.DOTALL | re.IGNORECASE).findall(res)[0]
            except:
                videourl = None
    progress.close()
    if videourl:
        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)
示例#43
0
def Playvid(url, name, download=None):
    if utils.addon.getSetting("paradisehill") == "true": playall = True
    else: playall = ''
    videopage = utils.getHtml(url, '')
    match = re.compile('films="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(videopage)
    videos = match[0].split('|||')
    
    if playall == '':
        if len(videos) > 1:
            i = 1
            videolist = []
            for x in videos:
                videolist.append('Part ' + str(i))
                i += 1
            videopart = dialog.select('Multiple videos found', videolist)
            if videopart == -1:
                return
            videourl = videos[videopart]
        else: videourl = videos[0]    
        videourl = videourl + "|referer="+ url

    if download == 1 and playall == '':
        utils.downloadVideo(videourl, name)
    else:
        iconimage = xbmc.getInfoImage("ListItem.Thumb")
      
        if playall:
            pl = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
            pl.clear()
            i = 1
            for videourl in videos:
                newname = name + ' Part ' + str(i)
                listitem = xbmcgui.ListItem(newname, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
                listitem.setInfo('video', {'Title': newname, 'Genre': 'P**n'})
                listitem.setProperty("IsPlayable","true")
                videourl = videourl + "|referer="+ url
                pl.add(videourl, listitem)
                i += 1
                listitem = ''
            xbmc.Player().play(pl)
        else:
            listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
            listitem.setInfo('video', {'Title': name, 'Genre': 'P**n'})        
            xbmc.Player().play(videourl, listitem)
            
示例#44
0
def Playvid(url, name, download=None):
    html = utils.getHtml(url, '')
    videourl = re.compile(r"src='(/inc/clic\.php\?video=.+?&cat=mrsex.+?)'").findall(html)
    html = utils.getHtml('http://www.mrsexe.com/' + videourl[0], '')
    videourls = re.compile(r"""['"](htt.+?.mp4)['"]""").findall(html)
    output = []
    for videourl in videourls:
        link='Link'
        output.append([videourl, link])
    videourls = sorted(output, key=lambda tup: tup[1], reverse=True)
    videourl = videourls[0][0]
    if videourl.startswith('//'): videourl = 'http:' + videourl
    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)
示例#45
0
def Playvid(url, name, download=None):
    videopage = utils.getHtml(url, "")
    videourl = re.compile("video_url: '(.+?)\/\?br", re.DOTALL | re.IGNORECASE).findall(videopage)
    videourl = videourl[0]
    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"})
        listitem.setProperty("IsPlayable", "true")
        if int(sys.argv[1]) == -1:
            pl = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
            pl.clear()
            pl.add(videourl, listitem)
            xbmc.Player().play(pl)
        else:
            listitem.setPath(str(videourl))
            xbmcplugin.setResolvedUrl(utils.addon_handle, True, listitem)
示例#46
0
def PTPlayvid(url, name, download=None):
    videopage = utils.getHtml(url, '')
    match = re.compile("<filehd>([^<]+)<",
                       re.DOTALL | re.IGNORECASE).findall(videopage)
    match2 = re.compile("<file>([^<]+)<",
                        re.DOTALL | re.IGNORECASE).findall(videopage)
    try:
        videourl = match[0]
    except:
        videourl = match2[0]
    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)
示例#47
0
def Playvid(url, name, download=None):
    videopage = utils.getHtml(url, '')
    videourl = re.compile(r"'label': '\d{3,4}p',\s+'file': '([^']+)'", re.DOTALL | re.IGNORECASE).findall(videopage)
    videourl = videourl[-1]
    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'})
        listitem.setProperty("IsPlayable","true")
        if int(sys.argv[1]) == -1:
            pl = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
            pl.clear()
            pl.add(videourl, listitem)
            xbmc.Player().play(pl)
        else:
            listitem.setPath(str(videourl))
            xbmcplugin.setResolvedUrl(utils.addon_handle, True, listitem)
示例#48
0
def Playvid(url, name, download=None):
	xbmc.log(url, xbmc.LOGNOTICE)
	print "mrsexe::Playvid " + url
	html = utils.getHtml(url, '')
	videourl = re.compile(r"src='(/inc/clic\.php\?video=.+?&cat=mrsex.+?)'").findall(html)
	html = utils.getHtml('http://www.mrsexe.com/' + videourl[0], '')
	videourls = re.compile(r"""['"](htt.+?.mp4)['"]""").findall(html)
	output = []
	for videourl in videourls:
		link='Link'
		output.append([videourl, link])
	videourls = sorted(output, key=lambda tup: tup[1], reverse=True)
	videourl = videourls[0][0]
	if videourl.startswith('//'): videourl = 'http:' + videourl
	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)
示例#49
0
def Playvid(url, name, download=None):
    html = utils.getHtml(url, '')
    match = re.compile(r"var player_quality_(\w+) = '([^']+)'", re.DOTALL | re.IGNORECASE).findall(html)
    for quality, vidurl in match:
        if '1080' in quality:
            videourl = vidurl
            break
        elif '720' in quality:
            videourl = vidurl
            break
        elif '480' in quality:
            videourl = vidurl
            break
        else:
            videourl = vidurl
    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)
示例#50
0
def Playvid(url, name, download=None):
    abpage = utils.getHtml(url, url)
    vartucurl = re.compile('<iframe.*?src="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(abpage)[0]
    embedpage = utils.getHtml(vartucurl, url)
    scripturl = re.compile("src='([^']+)", re.DOTALL | re.IGNORECASE).findall(embedpage)[0]
    scripturl = "https://vartuc.com" + scripturl
    videopage = utils.getHtml(scripturl, vartucurl, vartuchdr)
    video_url = re.compile("video_url:(.*?),video", re.DOTALL | re.IGNORECASE).findall(videopage)[0]
    match = re.compile(r'(gh\w\w\w)="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(videopage)
    for repl, repl2 in match:
        video_url = video_url.replace(repl,repl2)
    video_url = video_url.replace("\"","")
    videourl = video_url.replace("+","")
    
    videourl = utils.getVideoLink(videourl, '', vartuchdr2)

    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)
示例#51
0
def PTPlayvid(url, name, download=None):
    progress.create('Play video', 'Searching for videofile.')
    progress.update(25, "", "Loading video page", "")
    videopage = utils.getHtml(url, '')
    if 'video_url_text' not in videopage:
        videourl = re.compile("video_url: '([^']+)'", re.DOTALL | re.IGNORECASE).search(videopage).group(1)
    else:
        sources = {}
        srcs = re.compile("video(?:_alt_|_)url(?:[0-9]|): '([^']+)'.*?video(?:_alt_|_)url(?:[0-9]|)_text: '([^']+)'", re.DOTALL | re.IGNORECASE).findall(videopage)
        for src, quality in srcs:
            sources[quality] = src
        videourl = utils.selector('Select quality', sources, dont_ask_valid=True, sort_by=lambda x: int(''.join([y for y in x if y.isdigit()])), reverse=True)
    if not videourl:
        progress.close()
        return
    progress.update(75, "", "Video found", "")
    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)
示例#52
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)