Example #1
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)
Example #2
0
def Playvid(url, name, download=None):
    vp = utils.VideoPlayer(name, download)
    vp.progress.update(25, "[CR]Loading video page[CR]")
    videopage = utils.getHtml(url, site.url)
    player = re.compile(r'<iframe.+?class=""\s*src="([^"]+)"',
                        re.DOTALL | re.IGNORECASE).findall(videopage)
    if player:
        playerpage = utils.getHtml(player[0], url)
    else:
        vp.progress.close()
        return
    links = re.compile(r'"src":\s*"([^"]+)".+?"label":\s*"([^"]+)"',
                       re.DOTALL | re.IGNORECASE).findall(playerpage)
    links = {
        x[1].replace('4K', '2160p').replace('UHD', '2160p'): x[0]
        for x in links
    }
    videourl = utils.selector('Choose your video',
                              links,
                              setting_valid='qualityask',
                              sort_by=lambda x: int(x[:-1]),
                              reverse=True)
    if not videourl:
        vp.progress.close()
        return
    videourl = videourl.replace("\\", "")
    videourl = utils.getVideoLink(videourl, url)
    vp.play_from_direct_link(videourl)
Example #3
0
def Playvid(url, name, download=None):
    vp = utils.VideoPlayer(name, download)
    vp.progress.update(25, "[CR]Loading video page[CR]")
    videopage = utils.getHtml(url, site.url)
    embedurl = re.compile(r'iframe\s*src="([^"]+)',
                          re.DOTALL | re.IGNORECASE).findall(videopage)[0]
    if '?id=' in embedurl:
        vid = re.compile('id=([^&]+)',
                         re.DOTALL | re.IGNORECASE).findall(embedurl)[0]
        embedurl = re.sub('id=([^&]+)', 'ir={}'.format(vid[::-1]), embedurl, 0,
                          re.MULTILINE)
        embedurl = utils.getVideoLink(embedurl, url)
    elif 'xvideos-español' in embedurl:
        embedurl = embedurl.replace('xvideos-español',
                                    'xn--xvideos-espaol-1nb')
        videopage = utils.getHtml(embedurl, site.url)
        r = re.compile(r'source\s*src="([^"]+)',
                       re.DOTALL | re.IGNORECASE).search(videopage)
        if r:
            vp.play_from_direct_link(utils.cleantext(r.group(1)))
        else:
            embedurl = re.compile(r'iframe\s*src="([^"]+)', re.DOTALL
                                  | re.IGNORECASE).findall(videopage)[0]
            vp.play_from_link_to_resolve(embedurl)
    else:
        vp.play_from_link_to_resolve(embedurl)
Example #4
0
def Playvid(url, name, download=None):
    UA = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0'
    videopage = utils.getHtml(url)
    sources = re.findall(
        '''<source\s*.+?label=['"](\w+)['"]\s*src=['"]([^'"]+)''', videopage)
    sources = [(i[0], i[1]) for i in sources if not i[1] == "dead_link"]

    if "<source" in videopage:
        videourl = re.compile('<source.*?src="([^"]+)"',
                              re.DOTALL | re.IGNORECASE).findall(videopage)[0]
    else:
        videourl = re.compile(
            'class="btn btn-1 btn-1e" href="([^"]+)" target="_blank"',
            re.DOTALL | re.IGNORECASE).findall(videopage)[0]
    if videourl:
        videourl += '|User-Agent=' + urllib.quote(UA) + '&Referer=' + url
        if 'play.php' in videourl:
            videourl = utils.getVideoLink(videourl, url)
        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)

    else:
        utils.notify('Oh oh', 'Couldn\'t find a video')
Example #5
0
def INDEX():
    utils.addDir(
        '[COLOR hotpink]Whitecream[/COLOR] [COLOR white]Scenes[/COLOR]', '', 1,
        os.path.join(rootDir, 'icon.png'), '')
    utils.addDir(
        '[COLOR hotpink]Whitecream[/COLOR] [COLOR white]Movies[/COLOR]', '', 2,
        os.path.join(rootDir, 'icon.png'), '')
    utils.addDir(
        '[COLOR hotpink]Whitecream[/COLOR] [COLOR white]Hentai[/COLOR]', '', 3,
        os.path.join(rootDir, 'icon.png'), '')
    utils.addDir(
        '[COLOR hotpink]Whitecream[/COLOR] [COLOR white]Tubes[/COLOR]', '', 6,
        os.path.join(rootDir, 'icon.png'), '')
    utils.addDir(
        '[COLOR hotpink]Whitecream[/COLOR] [COLOR white]Webcams & Streams[/COLOR]',
        '', 7, os.path.join(rootDir, 'icon.png'), '')
    utils.addDir(
        '[COLOR hotpink]Whitecream[/COLOR] [COLOR white]Favorites[/COLOR]', '',
        901, os.path.join(rootDir, 'icon.png'), '')
    download_path = addon.getSetting('download_path')
    if download_path != '' and os.path.exists(download_path):
        utils.addDir(
            '[COLOR hotpink]Whitecream[/COLOR] [COLOR white]Download Folder[/COLOR]',
            download_path, 4, os.path.join(rootDir, 'icon.png'), '')

    if not addon.getSetting('uwccounter') == 'true':
        try:
            counterpage = utils.getVideoLink(
                'http://bit.ly/uwccounter',
                'http://UWC-' + utils.__version__ + '.com')
            addon.setSetting('uwccounter', 'true')
        except:
            pass

    xbmcplugin.endOfDirectory(utils.addon_handle, cacheToDisc=False)
Example #6
0
def Playvid(url, name, download=None):
    vp = utils.VideoPlayer(name, download)
    vp.progress.update(25, "[CR]Loading video page[CR]")
    videopage = utils.getHtml(url, site.url)
    videourl = ''

    ediv = re.compile(r'<div\s*class="btns(?:\sactive)?">(.+?)(?:<div\s*class="downs">|<script)', re.DOTALL | re.IGNORECASE).findall(videopage)[0]
    if 'cd-server' in ediv:
        parts = re.compile(r'class="cd-server.+?(<a.+?)</div', re.DOTALL | re.IGNORECASE).findall(ediv)
        pno = 1
        sources = {}
        for part in parts:
            embeds = re.compile(r'class="btn-server.+?data-link="([^"]+)">([^<]+)', re.DOTALL | re.IGNORECASE).findall(part)
            sources.update({'{0} [COLOR hotpink]Part {1}[/COLOR]'.format(enames[hoster] if hoster in enames.keys() else hoster, pno): embed for embed, hoster in embeds})
            pno += 1
    else:
        embeds = re.compile(r'class="btn-server.+?data-link="([^"]+)">([^<]+)', re.DOTALL | re.IGNORECASE).findall(ediv)
        sources = {enames[hoster] if hoster in enames.keys() else hoster: embed for embed, hoster in embeds}

    olid = utils.selector('Select Hoster', sources)
    if olid:
        vurl = '{0}?c={1}'.format(surl, olid[::-1])
        videourl = utils.getVideoLink(vurl, surl)

    if not videourl:
        vp.progress.close()
        return

    vp.play_from_link_to_resolve(videourl)
Example #7
0
def Playvid(url, name, download=None):
    vp = utils.VideoPlayer(name, download)
    vp.progress.update(25, "", "Loading video page", "")
    videopage = utils.getHtml(url, pdreferer, headers, data='')
    links = re.compile(
        '<a href="([^"]+)" class="post_download_link clearfix">[^>]+>([^<]+)<',
        re.DOTALL | re.IGNORECASE).findall(videopage)
    videourl = getVideoUrl(links)
    videourl = utils.getVideoLink(videourl, url)
    vp.play_from_direct_link(videourl)
def Playvid(url, name, download=None):
    videopage = utils.getHtml(url, '')
    videourl = re.compile("video_url: '([^']+)", re.DOTALL | re.IGNORECASE).findall(videopage)[0]
    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)
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)
Example #10
0
def Playvid(url, name, download=None):
    videopage = utils.getHtml(url)
    if "<source" in videopage:
        videourl = re.compile('<source.*?src="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(videopage)[0]
    else:
        videourl = re.compile('class="btn btn-1 btn-1e" href="([^"]+)" target="_blank"', re.DOTALL | re.IGNORECASE).findall(videopage)[0]
    if videourl:
        if 'play.php' in videourl:
            videourl = utils.getVideoLink(videourl, url)
        utils.playvid(videourl, name, download)
    else:
        utils.notify('Oh oh','Couldn\'t find a video')
Example #11
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)
Example #12
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)
Example #13
0
def getStreamCloud(url):
    progress.update(40, "", "Opening Streamcloud", "")
    scpage = utils.getVideoLink(url, "")
    progress.update(50, "", "Getting Streamcloud page", "")
    schtml = utils.postHtml(scpage)
    form_values = {}
    match = re.compile('<input.*?name="(.*?)".*?value="(.*?)">', re.DOTALL | re.IGNORECASE).findall(schtml)
    for name, value in match:
        form_values[name] = value.replace("download1", "download2")
    progress.update(60, "", "Grabbing video file", "")
    newscpage = utils.postHtml(scpage, form_data=form_values)
    videourl = re.compile('file:\s*"(.+?)",', re.DOTALL | re.IGNORECASE).findall(newscpage)
    progress.update(80, "", "Returning video file", "")
    return videourl[0]
Example #14
0
def getKeeplinks(url):
    kllink = utils.getVideoLink(url, "")
    kllinkid = kllink.split("/")[-1]
    klheader = {
        "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11",
        "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
        "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.3",
        "Accept-Encoding": "none",
        "Accept-Language": "en-US,en;q=0.8",
        "Connection": "keep-alive",
        "Cookie": "flag[" + kllinkid + "] = 1;",
    }
    klpage = utils.getHtml(kllink, url, klheader)
    return klpage
Example #15
0
def Playvid(url, name, download=None):
	#vp = utils.VideoPlayer(name, download)
	#vp.progress.update(25, "", "Loading video page", "")
	videopage = utils.getHtml(url, pdreferer, headers, data='')
	links = re.compile('<a href="([^"]+)" class="post_download_link clearfix">[^>]+>([^<]+)<',
					re.DOTALL | re.IGNORECASE).findall(videopage)
	videourl = getVideoUrl(links)
	videourl = utils.getVideoLink(videourl, url)
	
	#vp.play_from_direct_link(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)	
Example #16
0
def Playvid(url, name, download=None):
    vp = utils.VideoPlayer(name, download)
    vp.progress.update(25, "", "Loading video page", "")
    videopage = utils.getHtml(url, pdreferer, headers, data='')
    links = re.compile('<a href="([^"]+)" class="post_download_link clearfix">[^>]+>([^<]+)<',re.DOTALL | re.IGNORECASE).findall(videopage)
    sources = {}
    for videolink, resolution in links:
        sources[utils.cleantext(resolution)] = videolink
    videourl = utils.selector('Select quality', sources, dont_ask_valid=True, sort_by=lambda x: 1081 if 'UHD' in x else int(x[:-3]), reverse=True)
    if not videourl:
        return
    videourl = utils.getVideoLink(videourl, url)
    vp.progress.update(75, "", "Loading video page", "")
    vp.play_from_direct_link(videourl)
Example #17
0
def Playvid(url, name, download=None):
    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:
            try:
                link = utils.getVideoLink(link, url)
            except: pass
        videourls = videourls + " " + link
    utils.playvideo(videourls, name, download, url)
Example #18
0
def getKeeplinks(url):
    kllink = utils.getVideoLink(url, '')
    kllinkid = kllink.split('/')[-1]
    klheader = {
        'User-Agent':
        'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11',
        'Accept':
        'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
        'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
        'Accept-Encoding': 'none',
        'Accept-Language': 'en-US,en;q=0.8',
        'Connection': 'keep-alive',
        'Cookie': 'flag[' + kllinkid + '] = 1;'
    }
    klpage = utils.getHtml(kllink, url, klheader)
    return klpage
Example #19
0
def getStreamCloud(url):
    progress.update(40, "", "Opening Streamcloud", "")
    scpage = utils.getVideoLink(url, '')
    progress.update(50, "", "Getting Streamcloud page", "")
    schtml = utils.postHtml(scpage)
    form_values = {}
    match = re.compile('<input.*?name="(.*?)".*?value="(.*?)">',
                       re.DOTALL | re.IGNORECASE).findall(schtml)
    for name, value in match:
        form_values[name] = value.replace("download1", "download2")
    progress.update(60, "", "Grabbing video file", "")
    newscpage = utils.postHtml(scpage, form_data=form_values)
    videourl = re.compile('file:\s*"(.+?)",',
                          re.DOTALL | re.IGNORECASE).findall(newscpage)
    progress.update(80, "", "Returning video file", "")
    return videourl[0]
Example #20
0
def Playvid(url, name, download=None):
    vp = utils.VideoPlayer(name, download)
    vp.progress.update(20, "", "Loading video page", "")
    videohtml = utils.getHtml(url)
    match = re.compile('target="_blank"\s+href=(\S+)\s+[^>]+>([^<]+)<', re.DOTALL | re.IGNORECASE).findall(videohtml)
    links = []
    for l in match:
        if l[1] not in ('FE', 'PT'):
            continue
        u = utils.getVideoLink(l[0], l[0])
        if 's=http' in u:
            u = 'http' + u.split('s=http')[-1]
        u = u.replace('youvideos.ru/f','feurl.com/v')
        links.insert(0,u)
    vp.play_from_link_list(links)
    return
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)
Example #22
0
def Playvid(url, name, download=None):
    #vp = utils.VideoPlayer(name, download)
    #vp.progress.update(25, "", "Loading video page", "")
    videopage = utils.getHtml(url, pdreferer, headers, data='')
    links = re.compile(
        '<a href="([^"]+)" class="post_download_link clearfix">[^>]+>([^<]+)<',
        re.DOTALL | re.IGNORECASE).findall(videopage)
    videourl = getVideoUrl(links)
    videourl = utils.getVideoLink(videourl, url)

    #vp.play_from_direct_link(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)
Example #23
0
def Playvid(url, name, download=None):
    progress.create('Play video', 'Searching videofile.')
    progress.update( 10, "", "Loading video page", "" )
    url = url.split('#')[0]
    videopage = utils.getHtml(url, '')
    try:
        entrycontent = re.compile('entry-content">(.*?)</div>', 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:
                try:
                    link = utils.getVideoLink(link, url)
                except: pass
            videourls = videourls + " " + link
        utils.playvideo(videourls, name, download, url)
    except:
        utils.playvideo(videopage, name, download, url)
Example #24
0
def INDEX():
    utils.addDir('[COLOR hotpink]Whitecream[/COLOR] [COLOR white]Scenes[/COLOR]','',1,os.path.join(rootDir, 'icon.png'),'')
    utils.addDir('[COLOR hotpink]Whitecream[/COLOR] [COLOR white]Movies[/COLOR]','',2,os.path.join(rootDir, 'icon.png'),'')
    utils.addDir('[COLOR hotpink]Whitecream[/COLOR] [COLOR white]Hentai[/COLOR]','',3,os.path.join(rootDir, 'icon.png'),'')
    utils.addDir('[COLOR hotpink]Whitecream[/COLOR] [COLOR white]Tubes[/COLOR]','',6,os.path.join(rootDir, 'icon.png'),'')
    utils.addDir('[COLOR hotpink]Whitecream[/COLOR] [COLOR white]Webcams & Streams[/COLOR]','',7,os.path.join(rootDir, 'icon.png'),'')
    utils.addDir('[COLOR hotpink]Whitecream[/COLOR] [COLOR white]Favorites[/COLOR]','',901,os.path.join(rootDir, 'icon.png'),'')
    download_path = addon.getSetting('download_path')
    if download_path != '' and os.path.exists(download_path):
        utils.addDir('[COLOR hotpink]Whitecream[/COLOR] [COLOR white]Download Folder[/COLOR]',download_path,4,os.path.join(rootDir, 'icon.png'),'')
        
    if not addon.getSetting('uwccounter') == 'true':
        try:
            counterpage = utils.getVideoLink('http://bit.ly/uwccounter','http://UWC-' + utils.__version__ + '.com')
            addon.setSetting('uwccounter','true')
        except: pass
        
    xbmcplugin.endOfDirectory(utils.addon_handle, cacheToDisc=False)
Example #25
0
def Playvid(url, name, download=None):
	UA= 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0'
	videopage = utils.getHtml(url)
	sources = re.findall('''<source\s*.+?label=['"](\w+)['"]\s*src=['"]([^'"]+)''', videopage)
	sources = [(i[0], i[1]) for i in sources if not i[1] == "dead_link"]	
	
	
	if "<source" in videopage:
		videourl = re.compile('<source.*?src="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(videopage)[0]
	else:
		videourl = re.compile('class="btn btn-1 btn-1e" href="([^"]+)" target="_blank"', re.DOTALL | re.IGNORECASE).findall(videopage)[0]
	if videourl:
		videourl += '|User-Agent='+urllib.quote(UA)+'&Referer='+url
		if 'play.php' in videourl:
			videourl = utils.getVideoLink(videourl, url)	
		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)				
		
	else:
		utils.notify('Oh oh','Couldn\'t find a video')
Example #26
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)
Example #27
0
def Play(url, name, download=None):
    vp = utils.VideoPlayer(name, download=download)
    vp.progress.update(25, "[CR]Loading video page[CR]")
    videohtml = utils.getHtml(url)
    match = re.compile(r'data-localize="([^"]+)".+?">([^<]+)<',
                       re.DOTALL | re.IGNORECASE).findall(videohtml)
    streams = {}
    if match:
        for m in match:
            (data, stream) = m
            streams[stream] = data
    else:
        return
    vp.progress.update(50, "[CR]Loading video page[CR]")

    streamdata = utils.selector('Select', streams)
    if not streamdata:
        return

    match = re.compile(r'var ' + streamdata + r'.+?"iframe_url":"([^"]+)"',
                       re.DOTALL | re.IGNORECASE).findall(videohtml)
    if match:
        link = base64.b64decode(match[0]).decode('utf-8')
    else:
        return
    vp.progress.update(75, "[CR]Loading video page[CR]")
    streamhtml = utils.getHtml(link, url, error='raise')
    match = re.compile(r'''var OLID = '([^']+)'.+?src="([^']+)''',
                       re.DOTALL | re.IGNORECASE).findall(streamhtml)
    if match:
        (olid, vurl) = match[0]
        olid = olid[::-1]
    else:
        return
    src = vurl + olid
    src = utils.getVideoLink(src, link)
    vp.play_from_link_to_resolve(src)
Example #28
0
def Playvid(url, name, download=None):
    vp = utils.VideoPlayer(name, download)
    vp.progress.update(25, "[CR]Loading video page[CR]")
    videopage = utils.getHtml(url, '')

    eurls = re.compile(r'<li><a\s*href="([^"]+)"\s*>\s*([^<]+)',
                       re.DOTALL | re.IGNORECASE).findall(videopage)
    sources = {}
    for eurl, ename in eurls:
        if eurl != '?server=1':
            videopage = utils.getHtml(url + eurl, '')
        embedurl = re.compile('<iframe.+?src="([^"]+)',
                              re.DOTALL | re.IGNORECASE).findall(videopage)[0]
        if 'filestar.club' in embedurl:
            embedurl = utils.getVideoLink(embedurl, url)
        if '//' in embedurl:
            sources[enames[ename]] = embedurl
    videourl = utils.selector('Select Hoster', sources)
    if not videourl:
        vp.progress.close()
        return
    if 'motonews' in videourl:
        if videourl.startswith('//'):
            videourl = 'https:' + videourl
        epage = utils.getHtml(videourl, url)
        surl = re.search(r'file":"([^"]+)', epage)
        if surl:
            surl = surl.group(1)
            if surl.startswith('//'):
                surl = 'https:' + surl
            vp.play_from_direct_link(surl + '|Referer={0}'.format(videourl))
        else:
            vp.progress.close()
            return
    else:
        vp.play_from_link_to_resolve(videourl)
Example #29
0
def Playvid(url, name, download=None):
    listhtml = utils.getHtml(url)
    match = re.compile(
        'data-lazy-type="iframe" data-src="([^"]+)"', ).findall(listhtml)
    videoArray = []
    for item in match:
        if 'javhoho.com' in item:
            try:
                listhtml = utils.getHtml(item)
                videourl = 'https://www.bitporno.com' + re.compile(
                    'file: "(.+?)"', re.DOTALL).findall(listhtml)[0]
                videoArray.append(['Bitporno', videourl])
            except:
                continue
        if 'streamz.cc' in item:
            try:
                listhtml = utils.getHtml(item)
                packed = re.compile(
                    '(eval\(function\(p,a,c,k,e,d\).+?)\s*</script>',
                    re.DOTALL | re.IGNORECASE).findall(listhtml)[0]
                unpacked = utils.unpack(packed)
                videourl = re.compile("'(http.+?)\\\\'", re.DOTALL
                                      | re.IGNORECASE).findall(unpacked)[0]
                videoArray.append(['Streamz.cc', videourl])
            except:
                continue
        if 'gdriveplayer.to' in item:
            try:
                listhtml = utils.getHtml('https:' + item)
                packed = re.compile(
                    '(eval\(function\(p,a,c,k,e,d\).+?)\s*</script>',
                    re.DOTALL | re.IGNORECASE).findall(listhtml)[0]
                unpacked = utils.unpack(packed)
                videourl = re.compile("'(http.+?)'", re.DOTALL
                                      | re.IGNORECASE).findall(unpacked)[0]
                videoArray.append(['Gdriveplayer.to', videourl])
            except:
                continue
        if 'youvideos.ru' in item:
            try:
                r = requests.post(item.replace('/v/', '/api/source/'),
                                  data='').text
                movieJson = json.loads(r)['data']
                videoRU = [[str(item['label']), item['file']]
                           for item in movieJson]
                videoArray.append(['YouVideos.ru', videourl])
            except:
                pass
    if not videoArray:
        utils.notify('Oh oh', 'Couldn\'t find a video')
        return
    choice = xbmcgui.Dialog().select('Select server',
                                     [item[0] for item in videoArray])
    videourl = videoArray[choice][1]
    if 'YouVideos.ru' in videoArray[choice][0]:
        videoRUs = sorted(videoRU, key=lambda x: int(x[0][:-1]), reverse=True)
        choice = xbmcgui.Dialog().select('Select resolution',
                                         [str(item[0]) for item in videoRUs])
        videourl = videoRUs[choice][1]

    iconimage = xbmc.getInfoImage("ListItem.Thumb")
    listitem = xbmcgui.ListItem(name,
                                iconImage="DefaultVideo.png",
                                thumbnailImage=iconimage)
    listitem.setInfo('video', {'Title': name, 'Genre': 'JAVhoho'})
    xbmc.Player().play(videourl, listitem)
    return

    vp = utils.VideoPlayer(name, download)
    vp.progress.update(20, "", "Loading video page", "")
    videohtml = utils.getHtml(url)
    match = re.compile('target="_blank"\s+href=(\S+)\s+[^>]+>([^<]+)<',
                       re.DOTALL | re.IGNORECASE).findall(videohtml)
    links = []
    for l in match:
        if l[1] not in ('FE', 'PT'):
            continue
        u = utils.getVideoLink(l[0], l[0])
        if 's=http' in u:
            u = 'http' + u.split('s=http')[-1]
        u = u.replace('youvideos.ru/f', 'feurl.com/v')
        links.insert(0, u)
    vp.play_from_link_list(links)
    return
Example #30
0
def Playvid(url, name, download=None):
    vp = utils.VideoPlayer(name, download)
    vp.progress.update(25, "[CR]Loading video page[CR]")
    videopage = utils.getHtml(url, site.url)

    eurls = re.compile(r'<li><a\s*href="([^"]+)"\s*>\s*([^<]+)',
                       re.DOTALL | re.IGNORECASE).findall(videopage)
    sources = {}
    for eurl, ename in eurls:
        if eurl != '?server=1':
            videopage = utils.getHtml(url + eurl, '')
        embedurl = re.compile('<iframe.+?src="([^"]+)',
                              re.DOTALL | re.IGNORECASE).findall(videopage)[0]
        if 'filestar.club' in embedurl:
            embedurl = utils.getVideoLink(embedurl, url)

        if '//' in embedurl:
            sources[enames[ename]] = embedurl
    videourl = utils.selector('Select Hoster', sources)
    if not videourl:
        vp.progress.close()
        return
    if 'gdriveplayer.to' in videourl:
        videourl = videourl.split('data=')[-1]
        while '%' in videourl:
            videourl = urllib_parse.unquote(videourl)
        videohtml = utils.getHtml('https:' + videourl, site.url)
        ptext = jsunpack.unpack(videohtml).replace('\\', '')
        ct = re.findall(r'"ct":"([^"]+)', ptext)[0]
        salt = codecs.decode(re.findall(r'"s":"([^"]+)', ptext)[0], 'hex')
        pf = re.findall(r"null,\s*'([^']+)", ptext, re.S)[0]
        pf = re.compile(r"[a-zA-Z]{1,}").split(pf)
        passphrase = ''.join([chr(int(c)) for c in pf])
        passphrase = re.findall(r'var\s+pass\s*=\s*"([^"]+)', passphrase)[0]
        from resources.lib.jscrypto import jscrypto
        etext = jscrypto.decode(ct, passphrase, salt)
        ctext = jsunpack.unpack(etext).replace('\\', '')
        frames = re.findall(r'sources:\s*(\[[^]]+\])', ctext)[0]
        frames = re.findall(r'file":"([^"]+)[^}]+label":"(\d+p)"', frames)
        t = int(time.time() * 1000)
        sources = {
            qual: "{0}{1}&ref={2}&res={3}".format(source, t, site.url, qual)
            for source, qual in frames
        }
        surl = utils.prefquality(sources)
        if surl:
            if surl.startswith('//'):
                surl = 'https:' + surl
            vp.play_from_direct_link(surl)
        vp.progress.close()
        return
    elif 'motonews' in videourl:
        if videourl.startswith('//'):
            videourl = 'https:' + videourl
        epage = utils.getHtml(videourl, url)
        s = re.findall(r'file":"(?P<url>[^"]+)","label":"(?P<label>[^"]+)',
                       epage)
        if s:
            sources = {qual: source.replace('\\/', '/') for source, qual in s}
            surl = utils.prefquality(sources)
            if surl.startswith('//'):
                surl = 'https:' + surl
            vp.play_from_direct_link(surl +
                                     '|Referer={0}&verifypeer=false'.format(
                                         urllib_parse.urljoin(videourl, '/')))
        else:
            vp.progress.close()
            utils.notify('Oh oh', 'No video found')
            return
    else:
        vp.play_from_link_to_resolve(videourl)
Example #31
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)
Example #32
0
def Playvid(url, name, download=None):
    vp = utils.VideoPlayer(name, download)
    vp.progress.update(20, "[CR]Loading video page[CR]")

    listhtml = utils.getHtml(url, site.url)
    listhtml = listhtml.split('Free Player<')[1].split('>VIP Download')[0]
    match = re.compile('data-lazy-src="([^"]+)"', ).findall(listhtml)
    videoArray = {}
    for item in match:
        vp.progress.update(30, "[CR]Loading video page[CR]")
        if 'javhoho.com' in item:
            item = utils.getVideoLink(item, site.url, get_method=None)
        # if 'hxdrive.xyz' in item:
        #     if '/embed/' not in item:
        #         item = item.replace('hxdrive.xyz/', 'hxdrive.xyz/embed/')
        #     try:
        #         listhtml = utils.getHtml(item)
        #         item = re.compile('<iframe src="([^"]+)"', re.DOTALL).findall(listhtml)[0]
        #         if item.startswith('//'):
        #             item = 'https:' + item
        #     except:
        #         pass
        if 'bitporno' in item:
            try:
                listhtml = utils.getHtml(item)
                videourl = re.compile('file: "(.+?)"',
                                      re.DOTALL).findall(listhtml)[0]
                if videourl.startswith('/'):
                    videourl = 'https://www.bitporno.com' + videourl
                videoArray['Bitporno'] = videourl
            except:
                pass
        if 'streamz.cc' in item:
            try:
                listhtml = utils.getHtml(item)
                packed = re.compile(
                    r'(eval\(function\(p,a,c,k,e,d\).+?)\s*</script>',
                    re.DOTALL | re.IGNORECASE).findall(listhtml)[0]
                unpacked = utils.unpack(packed)
                videourl = re.compile("'(http.+?)\\\\'", re.DOTALL
                                      | re.IGNORECASE).findall(unpacked)[0]
                videoArray['Streamz.cc'] = videourl
            except:
                pass
        # if 'gdriveplayer.to' in item:
        #     try:
        #         listhtml = utils.getHtml(item)
        #         packed = re.compile(r'(eval\(function\(p,a,c,k,e,d\).+?)\s*</script>', re.DOTALL | re.IGNORECASE).findall(listhtml)[0]
        #         unpacked = utils.unpack(packed)
        #         videourl = re.compile("'(http.+?)'", re.DOTALL | re.IGNORECASE).findall(unpacked)[0]
        #         videoArray['Gdriveplayer.to'] = videourl
        #     except:
        #         pass
        if 'youvideos.ru' in item:
            item = item.replace('youvideos.ru/f/', 'youvideos.ru/v/')
            videoArray['YouVideos.ru'] = item
    if not videoArray:
        utils.notify('Oh oh', 'Couldn\'t find a video')
        return
    choice = utils.selector('Select server', videoArray)
    if not choice:
        return
    videourl = choice
    if 'youvideos.ru' in videourl:
        videourl = videourl.replace('youvideos.ru/v', 'feurl.com/v')
        vp.play_from_link_to_resolve(videourl)
    else:
        vp.play_from_direct_link(videourl)
    return
Example #33
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)