def Playvid(url, name, download=None): links = {} vp = utils.VideoPlayer(name, download) videohtml = utils.getHtml(url) try: allplayer = re.compile('<iframe src="(//allplayer[^"]+)"', re.DOTALL | re.IGNORECASE).findall(videohtml)[0] allplayer = 'https:' + allplayer vp.progress.update(20, "", "Loading video page", "") allplayerhtml = utils.getHtml(allplayer, url) vp.progress.update(40, "", "Loading video page", "") packed = re.compile('>(eval.+?)jwplayer\(\)', re.DOTALL | re.IGNORECASE).findall(allplayerhtml)[0] unpacked = utils.unpack(packed) unpacked = unpacked.replace('\\', '') directlinks = re.compile("file:'([^']+)',.+?,label:'([^']+)'", re.DOTALL | re.IGNORECASE).findall(unpacked) vp.progress.update(60, "", "Loading video page", "") for video_link, quality in directlinks: links[quality] = video_link selected = utils.selector('Select quality', links, dont_ask_valid=True, sort_by=lambda x: int(x[:-1]), reverse=True) if not selected: return vp.play_from_direct_link(selected + '|Referer=' + allplayer) except: vp.play_from_html(videohtml)
def Playvid(url, name, download=None): vp = utils.VideoPlayer(name, download) vp.progress.update(25, "", "Loading video page", "") videopage = utils.getHtml(url) # utils.kodilog(videopage) refurl = re.compile('<iframe[^>]+src="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(videopage)[0] vp.progress.update(50, "", "Loading video page", "") utils.kodilog(refurl) refpage = utils.getHtml(refurl) # videourl = re.compile('JuicyCodes.Run\(([^\)]+)\)', re.DOTALL | re.IGNORECASE).findall(refpage)[0] videourl = re.compile('>(eval.+?)<\/script>', re.DOTALL | re.IGNORECASE).findall(refpage)[0] # videourl = videourl.replace('"+"','').replace('"','') # videourl = base64.b64decode(videourl) videourl = utils.unpack(videourl) utils.kodilog(videourl) videolink = re.compile('file:"([^"]+)"', re.DOTALL | re.IGNORECASE).findall(videourl)[0] # list = {} # for url, quality in videolinks: # 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 videolink = videolink + '|Referer=' + refurl vp.play_from_direct_link(videolink)
def Playvid(url, name, download=None): vp = utils.VideoPlayer(name, download) vp.progress.update(25, "", "Loading video page", "") videopage = utils.getHtml(url, url) videourl = re.compile('"><iframe src="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(videopage)[0] vp.progress.update(50, "", "Loading video page", "") videourl1 = utils.getHtml(videourl, url) packed = re.compile('>(eval.+?)<\/script>', re.DOTALL | re.IGNORECASE).findall(videourl1)[0] unpacked = utils.unpack(packed) vp.progress.update(75, "", "Loading video page", "") source = re.search('''sources\s*:\s*\["([^"]+)''', unpacked) if source: vp.play_from_direct_link(source.group(1)) else: utils.notify('Video not found.')
def animeidhentai_play(url, name, download=None): vp = utils.VideoPlayer(name, download) vp.progress.update(25, "", "Loading video page", "") html = utils.getHtml(url) # video_url = re.compile('data-lazy-src="([^"]+ksplayer[^"]+)"></iframe>', re.DOTALL | re.IGNORECASE).findall(html) video_url = re.compile('data-lazy-src="([^"]+embed[^"]+)"></iframe>', re.DOTALL | re.IGNORECASE).findall(html)[0] # video_url = video_url[0].replace('embed','download') videopage = utils.getHtml(video_url, url) packed = re.compile('>(eval.+?)<\/script>', re.DOTALL | re.IGNORECASE).findall(videopage)[0] unpacked = utils.unpack(packed) video = re.compile('"file":"([^"]+)"', re.DOTALL | re.IGNORECASE).findall(unpacked)[0] # match = re.compile('''href=["']?(?P<url>[^"']+)["']?>DOWNLOAD <span>(?P<label>[^<]+)''', re.DOTALL | re.IGNORECASE).findall(videopage) vp.progress.update(50, "", "Loading video page", "") # list = {} # for video_link, quality in match: # list[quality] = video_link # selected = utils.selector('Select quality', list, dont_ask_valid=True, sort_by=lambda x: int(x[:-1]), reverse=True) # if not selected: return vp.play_from_direct_link(video)
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
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