def seriesflv_linker_servers(params): plugintools.log('[%s %s] Linker SeriesFlv %s' % (addonName, addonVersion, repr(params))) plugintools.add_item(action="",url="",title="[COLOR lightblue][B]Linker SeriesFlv"+version+"[/B][COLOR lightblue]"+sc4+"[I] *** PLD.VisionTV ***[/I]"+ec4,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) url = params.get("url") data = jump_cloudflare(url) title_capit = params.get("extra") bloq_cover = plugintools.find_single_match(data,'<div class="portada">(.*?)</div>') corver = plugintools.find_single_match(bloq_cover,'src="([^"]+)') bloq_server = plugintools.find_single_match(data,'<div id="enlaces">(.*?)</table>') server = plugintools.find_multiple_matches(bloq_server, '<img width="20"(.*?)</tr>') for item in server: lang = plugintools.find_single_match(item,'src="http://www.seriesflv.net/images/lang/(.*?).png"') if lang =='es': lang = sc2+'[I][ESP][/I]'+ec2 elif lang =='la': lang = sc2+'[I][LAT][/I]'+ec2 elif lang =='en': lang = sc2+'[I][ENG][/I]'+ec2 elif lang =='sub': lang= sc2+'[I][SUB][/I]'+ec2 else: lang = sc2+'[I][N/D][/I]'+ec2 server_name = plugintools.find_single_match(item,'class="e_server"><img width="16" src="([^"]+)"') server_name = server_name.split("domain=") server_name = server_name[-1] url_redir = plugintools.find_single_match(item,'<td width="84"><a href="([^"]+)"') server = video_analyzer(server_name) titlefull = sc+str(title_capit)+ec+' '+str(lang)+' '+sc5+'[I]['+str(server)+'][/I]'+ec5 plugintools.addPeli(action="getlink_flv",url=url_redir,title=titlefull,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=True)
def tvvip_serie_epis(params): plugintools.log("[%s %s] Linker TV-vip %s" % (addonName, addonVersion, repr(params))) plugintools.add_item(action="",url="",title="[COLOR lightblue][B]Linker TV-vip"+version+"[/B][COLOR lightblue]"+sc4+"[I] *** By Aquilesserr/PalcoTV Team ***[/I]"+ec4,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) title_temp = '[B]'+params.get("title").replace('>>','')+'[/B]' logo = params.get('thumbnail') fondo = params.get("url").replace('section','json/playlist')+'/background.jpg' plugintools.add_item(action="",url="",title=sc2+title_temp+ec2,thumbnail=logo,fanart=fondo,folder=False,isPlayable=False) url = params.get("url") cookie_sess = params.get("extra") headers = {'Host': 'tv-vip.com','User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0', 'Accept': 'application/json, text/javascript, */*; q=0.01','Accept-Language': 'es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3','Accept-Encoding': 'gzip, deflate', 'DNT': '1','X-Requested-With': 'XMLHttpRequest','Referer': referer,'Connection': 'keep-alive','Cache-Control': 'max-age=0','__cfduid':cookie_sess} url = url.replace('section','json/playlist')+'index.json' r = requests.get(url,headers=headers) data = r.text.encode('utf8') js = json.loads(data) try: episfull = js['sortedRepoChilds'] i = 0 epis = js['sortedRepoChilds'][i] for epis in episfull: title_epis = epis['name'].encode('utf8').strip().replace("\n","").replace("\t","") titlefull = sc+title_epis+ec url = 'http://tv-vip.com/film/'+epis['id'].encode('utf8')+'/' # / necesaria para enviar a tvvip_serie_resolvers plugintools.addPeli(action="tvvip_serie_resolvers",url=url,title=titlefull,extra= cookie_sess,thumbnail=logo,fanart=fondo,folder=True,isPlayable=False) epis = int(i)+1 except: pass
def seriesflv_linker_servers(params): plugintools.log('[%s %s] Linker SeriesFlv %s' % (addonName, addonVersion, repr(params))) plugintools.add_item(action="",url="",title="[COLOR lightblue][B]Linker SeriesFlv"+version+"[/B][COLOR lightblue]"+sc4+"[I] *** By PalcoTV Team ***[/I]"+ec4,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) url = params.get("url") title_capit = params.get("extra") data = cloudflare.request(url) bloq_cover = plugintools.find_single_match(data,'<div class="portada">(.*?)</div>') corver = plugintools.find_single_match(bloq_cover,'src="([^"]+)') bloq_server = plugintools.find_single_match(data,'<div id="enlaces">(.*?)</table>') server = plugintools.find_multiple_matches(bloq_server, '<img width="20"(.*?)</tr>') for item in server: lang = plugintools.find_single_match(item,'src="http://www.seriesflv.net/images/lang/(.*?).png"') if lang =='es': lang = sc2+'[I][ESP][/I]'+ec2 elif lang =='la': lang = sc2+'[I][LAT][/I]'+ec2 elif lang =='en': lang = sc2+'[I][ENG][/I]'+ec2 elif lang =='sub': lang= sc2+'[I][SUB][/I]'+ec2 else: lang = sc2+'[I][N/D][/I]'+ec2 server_name = plugintools.find_single_match(item,'class="e_server"><img width="16" src="([^"]+)"') server_name = server_name.split("domain=") server_name = server_name[-1] url_redir = plugintools.find_single_match(item,'<td width="84"><a href="([^"]+)"') url = getlinkflv(url_redir)#,cookie_ses) server = video_analyzer(server_name) titlefull = sc+str(title_capit)+ec+' '+str(lang)+' '+sc5+'[I]['+str(server)+'][/I]'+ec5 plugintools.addPeli(action=server,url=url,title=titlefull,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=True)
def newdvds(params): plugintools.log("[%s %s] Gnula Cine parser... %s " % (addonName, addonVersion, repr(params))) r = requests.get(web) data = r.content # print data plugintools.add_item(action="", url="", title="[COLOR blue][B]Gnula Cine[/B][/COLOR]" + version + "", thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) bloque_newdvds = plugintools.find_single_match( data, '<h2>Estrenos DVD-S</h2>(.*?)</div>') dvds = plugintools.find_multiple_matches(bloque_newdvds, '<a(.*?)></a>') for item in dvds: title = plugintools.find_single_match(item, 'title="(.*?) -').replace( "VOSE", sc2 + "V.O" + ec2).replace("VS", sc2 + "Sub" + ec2).replace( "VC", sc2 + "Esp" + ec2).replace("VL", sc2 + "Lat" + ec2).replace( "OV", sc2 + "Otros" + ec2) calidad = plugintools.find_single_match(item, 'title="(.*?) -') img = plugintools.find_single_match(item, '" src="(.*?)"') url = plugintools.find_single_match(item, 'href="(.*?)"') plugintools.addPeli(action="resolvers_2", url=url, title=sc3 + title + ec3, thumbnail=img, fanart=fanart, folder=True, isPlayable=False)
def danko_serieserver_linker(params): plugintools.log("[%s %s] Danko %s" % (addonName, addonVersion, repr(params))) plugintools.add_item(action="",url="",title="[COLOR lightblue][B] SeriesDanko"+version+"[/B][COLOR lightblue]"+sc4+"[I] [/I]"+ec4,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) url = params.get("url") title_epis = params.get("title") logo = params.get("thumbnail") plugintools.add_item(action="",url="",title=sc2+'[B]-- '+title_epis.replace(sc,sc2).replace(ec,ec2)+' --[/B]'+ec2,thumbnail=logo,fanart=fanart,folder=True,isPlayable=False) r = requests.get(url) data = r.content bloq_server = plugintools.find_single_match(data,"<td class='tam13'>Comentario</td></tr>(.*?)<b>Opciones de descarga</b>") server = plugintools.find_multiple_matches(bloq_server,"<tr><td class='tam12'>(.*?)</td></tr>") for item in server: lang = plugintools.find_single_match(item,"<img src='/assets/img/banderas/(.*?).png") if lang == 'es': lang = lang.replace('es','ESP') elif lang == 'la': lang = lang.replace('la','LAT') elif lang == 'vos': lang = lang.replace('vos','SUB-ESP') elif lang == 'vo': lang = lang.replace('vo','V.O') name_server = plugintools.find_single_match(item,"<img src='/assets/img/servidores/(.*?)\.") if 'streamin' in name_server: name_server = 'streamin.to' url = plugintools.find_single_match(item,"href='([^']+)'") url_anonim = 'http://seriesdanko.com/'+url server = video_analyzer(name_server) title_epis = plugintools.find_single_match(title_epis,'.*?([0-9]*X[0-9]*)') titlefull = sc+'Capitulo '+title_epis.replace('X','x')+ec+" "+sc2+" [I]["+lang+"][/I] "+ec2+sc5+' [I]['+server.title()+'][/I]'+ec5 plugintools.addPeli(action="danko_anonim_linker",url=url_anonim,title=titlefull,thumbnail=logo,fanart=fanart,folder=False,isPlayable=True)
def seriesadicto_linker_epis(params): plugintools.log('[%s %s] Linker SeriesBlanco %s' % (addonName, addonVersion, repr(params))) plugintools.add_item(action="", url="", title="[COLOR lightblue][B]Linker Seriesadicto" + version + "[/B][COLOR lightblue]" + sc4 + "[I] *** By PalcoTV Team ***[/I]" + ec4, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) url = params.get("url") r = requests.get(url) data = r.content logo = referer + plugintools.find_single_match( data, '<img style="width: 240px; height: 360px;" src="([^"]+)"') if logo == "": logo = thumbnail title = plugintools.find_single_match(data, '<h1>(.*?)</h1>').strip() num_epis = plugintools.find_single_match( data, '<link rel="canonical" href="http://seriesadicto.com/capitulo/.*?/(.*?)/(.*?)/' ) num_epis = num_epis[0] + 'x' + num_epis[1] if num_epis == "": num_epis = title plugintools.addPeli(action="", url="", title=sc2 + "[B]" + title + "[/B]" + ec2, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) bloq_link = plugintools.find_single_match(data, '<tbody>(.*?)</table>') link = plugintools.find_multiple_matches(bloq_link, '<tr class="(.*?)</tr>') for item in link: lang = plugintools.find_single_match(item, '<td><img src="([^"]+)"') if '1.png' in lang: lang = sc2 + '[I][ESP][/I]' + ec2 if '2.png' in lang: lang = sc2 + '[I][LAT][/I]' + ec2 if '3.png' in lang: lang = sc2 + '[I][ENG-SUB][/I]' + ec2 if '4.png' in lang: lang = sc2 + '[I][ENG][/I]' + ec2 url_server = plugintools.find_single_match(item, '<a href="([^"]+)"') server = video_analyzer(url_server) titlefull = sc + 'Capitulo ' + num_epis + ec + " " + sc2 + lang + ec2 + " " + sc5 + '[I][' + server.title( ) + '][/I]' + ec5 plugintools.addPeli(action=server, url=url_server, title=titlefull, thumbnail=logo, fanart=fanart, folder=False, isPlayable=True) ############################################# By PalcoTv Team ####################################################
def seriesblanco1(params): plugintools.log('[%s %s] Linker SeriesBlanco %s' % (addonName, addonVersion, repr(params))) sinopsis = params.get("plot") datamovie = {} datamovie["Plot"]=sinopsis thumbnail = params.get("thumbnail") fanart = params.get("fanart") headers = {'Host':"seriesblanco.com","User-Agent": 'User-Agent=Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; es-ES; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12', "Referer": referer} url = params.get("url").replace('www.seriesblanco.com','seriesblanco.com') r = requests.get(url,headers=headers) data = r.content plugintools.add_item(action="",url="",title="[COLOR lightblue][B]Linker SeriesBlanco"+version+"[/B][COLOR lightblue]"+sc4+"[I] ***PLD.VisionTV***[/I]"+ec4,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) #No hay peticion Ajax match_listacapis = plugintools.find_single_match(data,"<h2>Visionados Online</h2>(.*?)<h2>Descarga</h2>") #Si hay peticion Ajax if match_listacapis =="": # Buscando la url y datos del envio post a la peticion ajax ajax = plugintools.find_single_match(data,"function LoadGrid(.*?)success:") ajaxrequest = plugintools.find_single_match(ajax,"url : '(.*?)'.*?data : \"(.*?)\"") # Petición ajax url_ajax = scrapertools.cache_page(referer + ajaxrequest[0], ajaxrequest[1]) custom_post=ajaxrequest[1] body,response_headers = plugintools.read_body_and_headers(referer+ajaxrequest[0], post=custom_post) #plugintools.log("data= "+data) match_listacapis = plugintools.find_single_match(body,'<h2>Visionados Online</h2>(.*?)</table>') match_capi = plugintools.find_multiple_matches(match_listacapis,'<td><div class="grid_content sno">(.*?)<br>') for entry in match_capi: img = plugintools.find_single_match(entry,"src='/servidores([^']+)") url_img = 'http://www.seriesblanco.com/servidores'+img url_capi = plugintools.find_single_match(entry,'<a href="([^"]+)"') #url_capi = 'http://www.seriesblanco.com'+url_capi #Puede ser seriesblanco.tv o seriesblanco.com lang_audio = plugintools.find_single_match(entry,'<img src="http://seriesblanco.tv/banderas/([^"]+)"') if lang_audio =="": lang_audio = plugintools.find_single_match(entry,'<img src="http://seriesblanco.com/banderas/([^"]+)"') if lang_audio.find("es.png") >= 0: lang_audio = "ESP" elif lang_audio.find("la.png") >= 0: lang_audio = "LAT" elif lang_audio.find("vos.png") >= 0: lang_audio = "V.O.S." elif lang_audio.find("vo.png") >= 0: lang_audio = "V.O." url_server = plugintools.find_single_match(entry,"<img src='/servidores/([^']+)") url_server = url_server.replace(".png", "").replace(".jpg", "") quality = plugintools.find_single_match(entry,"<img src='/servidores/.*?alt=''>.*?</center></td><td class='tam12'>(.*?)</td>") #if quality == "": quality = "undefined" server = video_analyzer(url_server) titlefull = params.get("title")+sc2+'[I] ['+lang_audio+'] [/I]'+ec2+sc5+'[I] ['+server+'][/I] '+ec5+sc+'[I]'+quality+'[/I]'+ec if server != "": plugintools.addPeli(action="getlink_seriesblanco",title=titlefull,url=url_capi,info_labels=datamovie,thumbnail=url_img,fanart=fanart,folder=False,isPlayable=True)
def danko_serie_linker(params): plugintools.log("[%s %s] Linker Danko %s" % (addonName, addonVersion, repr(params))) plugintools.add_item(action="", url="", title="[COLOR lightblue][B]Linker SeriesDanko" + version + "[/B][COLOR lightblue]" + sc4 + "[I] *** By Aquilesserr/PalcoTV Team ***[/I]" + ec4, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) url = params.get("url") r = requests.get(url) data = r.content title = plugintools.find_single_match( data, '<meta property="og:title" content="([^"]+)"') plugintools.addPeli(action="", url="", title=sc5 + "[B]" + title + "[/B]" + ec5, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) num_temp = plugintools.find_multiple_matches( data, '<div id="T([0-9]*)" style="display:none">') bloq_temp = plugintools.find_multiple_matches( data, '<div id="(T[0-9]*)" style="display:none">(.*?)toggle\(\'slow\'\);') for item in bloq_temp: name_temp = item[0].replace('T', 'Temporada ') img = plugintools.find_single_match(item[1], "<img src='([^']+)'") if img == "": img = thumbnail plugintools.add_item(action="", url="", title=sc2 + '-- ' + name_temp + ' --' + ec2, thumbnail=img, fanart=fanart, folder=False, isPlayable=False) episfull = plugintools.find_multiple_matches( item[1], '<br><br><a(.*?)<img src=') for item in episfull: url_epis = plugintools.find_single_match(item, "href='([^']+)'") url = 'http://seriesdanko.com/' + url_epis title_epis = plugintools.find_single_match(item, "href='.*?>(.*?)</a>") plugintools.add_item(action="danko_serieserver_linker", url=url, title=sc + str(title_epis) + ec, thumbnail=img, fanart=fanart, folder=True, isPlayable=False)
def danko_peli_linker(params): plugintools.log("[%s %s]PelisDanko %s" % (addonName, addonVersion, repr(params))) plugintools.add_item(action="",url="",title="[COLOR lightblue][B]PelisDanko"+version+"[/B][COLOR lightblue]"+sc4+"[I] [/I]"+ec4,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) url = params.get("url") r = requests.get(url) data = r.content cookie_ses = r.cookies['pelisdanko_session'] #cookie de la sesion fondo = plugintools.find_single_match(data,'(http://pelisdanko.com/img/movie.backdrops/w396/.*?\.jpg)').strip() #if "walter.trakt.us" in fondo: fondo = fanart logo = plugintools.find_single_match(data,'<img class="img-responsive poster" src="([^"]+)"') if logo =="": logo = thumbnail title = plugintools.find_single_match(data,'<dt>Título</dt> <dd>([^<]+)</dd>').upper() year = plugintools.find_single_match(data,'<dt>Estreno</dt> <dd>([^<]+)</dd>') if year =="": year = 'N/D' country = plugintools.find_single_match(data,'<span class="label label-success">([^<]+)</span></h4>') if country =="": country = 'N/D' genrfull = plugintools.find_multiple_matches(data,'<span class="label label-info">([^<]+)</span></h4>') genr = danko_genr(genrfull) sinopsis = plugintools.find_single_match(data,'<dt>Sinopsis</dt> <dd class="text-justify">(.*?)</dd>').strip() datamovie = { 'genre': sc3+'[B]Género: [/B]'+ec3+sc+str(genr)+', '+ec, 'year': sc3+'[B]Año: [/B]'+ec3+sc+str(year)+', '+ec, 'country': sc3+'[B]País: [/B]'+ec3+sc+str(country)+'[CR]'+ec, 'sinopsis': sc3+'[B]Sinopsis: [/B]'+ec3+sc+str(sinopsis)+ec} datamovie["plot"]=datamovie["genre"]+datamovie["year"]+datamovie["country"]+datamovie["sinopsis"] plugintools.addPeli(action="",url="",title=sc5+"[B]"+title+"[/B]"+ec5,info_labels=datamovie,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) bloq_film = plugintools.find_single_match(data,'<h3 class="coolfont">Streaming</h3>(.*?)</tbody>') film =plugintools.find_multiple_matches(bloq_film,'<tr class="rip hover"(.*?)</tr>') for item in film: langfull = plugintools.find_multiple_matches(item,'src="http://pelisdanko.com/img/flags/(.*?).png') lang = danko_lang(langfull) id_vid = plugintools.find_single_match(item,'data-id="([^"]+)"') #id del video slug1 = plugintools.find_single_match(item,'data-slug="([^"]+)"')#slug del video url_slug1 = params.get("url")+'/'+slug1+'/ss?#ss' #http://pelisdanko.com/peli/deadpool-5233/7V9gGJlcbE1vi7TJ10697/ss?#ss #Preparando parametros para danko_slug,cookie, id_video, slug1 params_danko_slug = cookie_ses+'|'+id_vid+'|'+slug1 quality = plugintools.find_single_match(item,'quality-.*?">([^<]+)</span>').strip() titlefull = sc+" Audio: "+ec+sc2+lang+ec2+sc+" Video: "+ec+" "+sc5+'[I]['+quality+'][/I]'+ec5 plugintools.addPeli(action='danko_slug',url=url_slug1,title=titlefull,info_labels=datamovie,extra=params_danko_slug,thumbnail=logo,fanart=fondo,folder=True,isPlayable=False)
def jkanime_resolverlink(params): plugintools.log("[%s %s] Jkanime %s" % (addonName, addonVersion, repr(params))) plugintools.add_item(action="",url="",title="[COLOR lightblue][B]Parser Jkanime"+version+"[/B][COLOR lightblue]"+sc4+"[I] [/I]"+ec4,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) url = params.get("url") logo = params.get("thumbnail") title = params.get("title") try: datamovie = params.get("extra").split('|') datamovie = { 'genre': sc3+'[B]Género: [/B]'+ec3+sc+str(datamovie[0])+', '+ec, 'duration': sc3+'[B]Duración: [/B]'+ec3+sc+str(datamovie[1])+', '+ec, 'year': sc3+'[B]Fecha de Inicio: [/B]'+ec3+sc+str(datamovie[2])+'[CR]'+ec, 'sinopsis': sc3+'[B]Sinopsis: [/B]'+ec3+sc+str(datamovie[3])+ec} datamovie["plot"] = datamovie["genre"]+datamovie["year"]+datamovie["sinopsis"] except: datamovie = {'sinopsis': sc3+'[B]No hay Descripción Disponible[/B]'+ec3} datamovie["plot"] = datamovie["sinopsis"] headers = {'Host':'jkanime.net','User-Agent':'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0','Referer':web} r = requests.get(url,headers=headers) data = r.content plugintools.add_item(action="",url="",title=title,info_labels=datamovie,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) bloq_opc = plugintools.find_single_match(data,'<select id="select_lang">(.*?)<div class="video_nav"') if bloq_opc =="": bloq_opc = plugintools.find_single_match(data,'<div class="video_option_act">(.*?)<div class="video_left">') control_server = plugintools.find_single_match(bloq_opc,'href="#">(.*?)</a>') # Comprueba que existen conectores if control_server =="": plugintools.addPeli(action="",url="",title=sc4+'No hay Enlaces Disponibles'+ec4,info_labels=datamovie,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) else: lang = plugintools.find_single_match(bloq_opc,'<option value=".*?">(.*?)</option>') if lang =="": lang = 'N/D' opc_server = plugintools.find_multiple_matches(bloq_opc,'href="#">(.*?)</a>') opc_url = plugintools.find_multiple_matches(bloq_opc,'<iframe class="player_conte" src=(.*?)\s') i = 0 for item in opc_server: try: if 'Desuka' in item: name_server = '[I][Desuka][/I]';server = 'play_video' elif 'Anime' in item: name_server = '[I][Anime][/I]';server = 'openload' elif 'Misuki' in item: name_server = '[I][Misuki][/I]';server = 'play_video' elif 'Xtreme S' in item: name_server = '[I][Xtreme S][/I]';server = 'play_video' elif 'Xtreme HD' in item: name_server = '[I][Xtreme HD][/I]';server = 'play_video' elif 'Dailymotion' in item: name_server = '[I][Dailymotion][/I]';server = 'dailymotion' ####### Reemplazando espacios y comillas extraidas para corregir el error ####### url_server = opc_url[i].replace(' ','').replace('"','').replace("'",'') ################################################################################# j = i+1 # Numeracion para las Opciones titlefull = sc+'Opc.'+str(j)+': '+ec+sc2+'[I]['+lang+'][/I]'+ec2+sc5+' '+name_server+ec5 plugintools.addPeli(action=server,url=url_server,title=titlefull,info_labels=datamovie,thumbnail=logo,fanart=fanart,folder=False,isPlayable=True) i = i+1 except:pass
def jkanime_videoserie(params): plugintools.log("[%s %s] Jkanime %s" % (addonName, addonVersion, repr(params))) url = params.get("url") r = requests.get(url) data = r.content plugintools.add_item(action="",url="",title="[COLOR lightblue][B]Jkanime"+version+"[/B][COLOR lightblue]"+sc4+"[I] [/I]"+ec4,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) bloq_info = plugintools.find_single_match(data,'<div class="cont_top"></div>(.*?)<div id="footer">') logo = plugintools.find_single_match(bloq_info,'<img title=".*?src="([^"]+)"') if logo =="": logo = thumbnail title = plugintools.find_single_match(bloq_info,'<div class="sinopsis_title title21">([^<]+)</div>').upper().strip() estado = plugintools.find_single_match(bloq_info,'<div><span class="labl">Estado:</span>.*?">([^<]+)</span>').strip() if estado =="": estado = 'N/D' genrfull = plugintools.find_multiple_matches(bloq_info,'http://jkanime.net/genero/(.*?)/') genr = jkanime_genr(genrfull) year = plugintools.find_single_match(bloq_info,'<div><span class="labl">Emitido:</span>.*?">(.*?)</span>').strip().replace('<br/>','') if year =="": year = 'N/D' duration = plugintools.find_single_match(bloq_info,'<div><span class="labl">Duracion:</span>.*?">([^<]+)</span>').strip().replace('<br/>','') if duration =="": duration = 'N/D' sinopsis = plugintools.find_single_match(bloq_info,'<div class="sinoptext">\s+<p>(.*?)</p>').strip().replace('<br/>','') titlefull = sc5+'[B]'+title+'[/B]'+ec5+sc+' Estado: '+ec+sc3+'[I]('+estado+')[/I]'+ec3 datamovie = { 'genre': sc3+'[B]Género: [/B]'+ec3+sc+str(genr)+', '+ec, 'duration': sc3+'[B]Duración: [/B]'+ec3+sc+str(duration)+', '+ec, 'year': sc3+'[B]Fecha de Inicio: [/B]'+ec3+sc+str(year)+'[CR]'+ec, 'sinopsis': sc3+'[B]Sinopsis: [/B]'+ec3+sc+str(sinopsis)+ec} datamovie["plot"] = datamovie["genre"]+datamovie["duration"]+datamovie["year"]+datamovie["sinopsis"] datamovie_pass = genr+'|'+duration+'|'+year+'|'+sinopsis plugintools.add_item(action="",url="",title=titlefull,info_labels=datamovie,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) ############ Extración de Episodios ########## epis_list = plugintools.find_single_match(data,'<div class="listnavi">(.*?)</div>') epis_bloq = plugintools.find_multiple_matches(epis_list,'<a class="listpag list22" href="#pag(.*?)">') id_file = plugintools.find_single_match(data,'ajax/pagination_episodes/(.*?)/') for item in epis_bloq: #http://jkanime.net/ajax/pagination_episodes/814/2/ url = 'http://jkanime.net/ajax/pagination_episodes/'+id_file+'/'+item+'/' info_epis = extrac_epis(url) try: for item in info_epis: number_epis = item[0] title_epis = item[1].decode('unicode_escape').encode('utf8') url = plugintools.find_single_match(data,"href: '(.*?)'") url_epis = url+number_epis+'/' titlefull = sc+'Episodio '+str(number_epis)+ec+' - '+sc5+title_epis+ec5 plugintools.addPeli(action="jkanime_resolverlink",url=url_epis,title=titlefull,info_labels=datamovie,extra=datamovie_pass,thumbnail=logo,fanart=fanart,folder=True,isPlayable=False) except:pass
def tvvip_serie_resolvers(params): plugintools.log("[%s %s] Linker TV-vip %s" % (addonName, addonVersion, repr(params))) plugintools.add_item(action="",url="",title="[COLOR lightblue][B]Linker TV-vip"+version+"[/B][COLOR lightblue]"+sc4+"[I] *** By Aquilesserr/PalcoTV Team ***[/I]"+ec4,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) url = params.get("url") cookie_sess = params.get("extra") headers = {'Host': 'tv-vip.com','User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0', 'Accept': 'application/json, text/javascript, */*; q=0.01','Accept-Language': 'es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3','Accept-Encoding': 'gzip, deflate', 'DNT': '1','X-Requested-With': 'XMLHttpRequest','Referer': referer,'Connection': 'keep-alive','Cache-Control': 'max-age=0','__cfduid':cookie_sess} url = url.replace('film','json/repo')+'index.json' r = requests.get(url,headers=headers) data = r.text.encode('utf8') data_js = r.text js = json.loads(data_js) logo = params.get("thumbnail") fondo = params.get("url").replace('film','json/repo')+'thumbnail.jpg' title = js['name'].encode('utf8').strip().replace("\n","").replace("\t","") title = title.replace('á','á').replace('é','é').replace('Ã','í').replace('ó','ó').replace('º','ú').replace('ñ','ñ') genr = tvvip_genr(url) if genr =="": genr = 'N/D' year = js['year'].encode('utf8').strip().replace("\n","").replace("\t","") if year =="": year = 'N/D' durac = js['durationHuman'].encode('utf8').strip().replace("\n","").replace("\t","") if durac =="": durac = 'N/D' punt = js['rate'].encode('utf8').strip().replace("\n","").replace("\t","") if punt =="": punt = 'N/D' lang = tvvip_lang(url) subtitle = tvvip_lang_sub(url) datamovie = { 'duration': sc3+'[B]Duración: [/B]'+ec3+sc+str(durac)+', '+ec, 'audiochannels': sc3+'[B]Audio: [/B]'+ec3+sc+str(lang)+', '+ec, 'subtitleslanguage': sc3+'[B]Subtitulos: [/B]'+ec3+sc+str(subtitle)+ec} datamovie["plot"]=datamovie["duration"]+datamovie["audiochannels"]+datamovie["subtitleslanguage"] plugintools.addPeli(action="",url="",title=sc5+"[B]"+title+"[/B]"+ec5,info_labels=datamovie,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) quality_grup = js['profiles'] for quality in quality_grup: quality_max = js['profiles'][quality]['videoResolution'].encode('utf8') peso = js['profiles'][quality]['sizeHuman'].encode('utf8') videouri = js['profiles'][quality]['videoUri'].encode('utf8');print videouri server = js['profiles'][quality]['servers'] i=0 for item in server: transcoder = js['profiles'][quality]['servers'][i]['url'].encode('utf8') plugintools.addPeli(action="play_resolvers",url=transcoder,page=videouri,title=sc+title+' (Serv.'+str(i+1)+')'+ec+sc2+" ["+str(quality_max)+"]"+ec2+sc5+" ["+peso+"]"+ec5,extra= cookie_sess,info_labels=datamovie,thumbnail=logo,fanart=fondo,folder=False,isPlayable=True) i=i+1
def seriesflv_linker0(params): plugintools.log('[%s %s] Linker SeriesFlv %s' % (addonName, addonVersion, repr(params))) plugintools.add_item(action="",url="",title="[COLOR lightblue][B]Linker SeriesFlv"+version+"[/B][COLOR lightblue]"+sc4+"[I] *** By PalcoTV Team ***[/I]"+ec4,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) url = params.get("url") data = cloudflare.request(url) logo = plugintools.find_single_match(data,'<img title=".*?src="([^"]+)"') if logo =="": logo = thumbnail title = plugintools.find_single_match(data,'<h1 class="off">([^<]+)</h1>').replace('\\','') votos = plugintools.find_single_match(data,'<span id="reviewCount">(.*?)<') if votos =="": votos = 'N/D' punt = plugintools.find_single_match(data,'<meta itemprop="ratingValue" content="([^"]+)"') if punt =="": punt = 'N/D' year = plugintools.find_single_match(data,'<td>Año.*?<td>(.*?)</td>') if year =="": year = 'N/D' bloq_temp =plugintools.find_single_match(data,'<div class="temporadas m1">(.*?)<div id="lista" class="color1 ma1">') n_temp = plugintools.find_multiple_matches(bloq_temp,'<a class="color1 on ma1 font2".*?">Temporada(.*?)<') n_temp = n_temp[-1].strip() if n_temp =="": n_temp = 'N/D' bloq_genr = plugintools.find_single_match(data,'<td>Géneros(.*?)</tr>') n_genr = plugintools.find_multiple_matches(bloq_genr,'href=".*?">(.*?)<') genr = seriesflv_genr(n_genr) bloq_pais = plugintools.find_single_match(data,'<td>País </td>(.*?)/td>') pais = plugintools.find_multiple_matches(bloq_pais,'<img src=".*?">(.*?)<') try: pais = pais[-1].strip() except: pais = 'N/D' sinopsis = plugintools.find_single_match(data,'<p class="color7">(.*?)</p>').replace('\"','"') if sinopsis =="": sinopsis = 'N/D' datamovie = { 'season': sc3+'[B]Temporadas Disponibles: [/B]'+ec3+sc+str(n_temp)+', '+ec, 'votes': sc3+'[B]Votos: [/B]'+ec3+sc+str(votos)+', '+ec, 'rating': sc3+'[B]Puntuación: [/B]'+ec3+sc+str(punt)+', '+ec, 'genre': sc3+'[B]Género: [/B]'+ec3+sc+str(genr)+', '+ec, 'year': sc3+'[B]Año: [/B]'+ec3+sc+str(year)+', '+ec, 'country': sc3+'[B]País: [/B]'+ec3+sc+str(pais)+'[CR]'+ec, 'sinopsis': sc3+'[B]Sinopsis: [/B]'+ec3+sc+str(sinopsis)+ec} datamovie["plot"]=datamovie["season"]+datamovie["votes"]+datamovie["rating"]+datamovie["genre"]+datamovie["year"]+datamovie["country"]+datamovie["sinopsis"] plugintools.add_item(action="",url="",title=sc5+"[B]"+title+"[/B]"+ec5,info_labels=datamovie,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) patron_temp = '<a class="color1 on ma1 font2"(.*?)/a>' item_temp = re.compile(patron_temp,re.DOTALL).findall(data) for temp in item_temp: url = plugintools.find_single_match(temp,'href="([^"]+)"') name_temp = plugintools.find_single_match(temp,'.html">(.*?)<') plugintools.addPeli(action="seriesflv_linker_capit",url=url,title=sc2+name_temp+' >>'+ec2,info_labels=datamovie,thumbnail=logo,fanart=fanart,folder=True,isPlayable=False)
def lista_capis(params): plugintools.log('[%s %s] Linker SeriesFlv %s' % (addonName, addonVersion, repr(params))) plugintools.add_item(action="",url="",title="[COLOR lightblue][B]Linker SeriesFlv"+version+"[/B][COLOR lightblue]"+sc4+"[I] *** PLD.VisionTV ***[/I]"+ec4,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) url = params.get("url") data = jump_cloudflare(url) logo = plugintools.find_single_match(data,'<img title=".*?src="([^"]+)"') if logo =="": logo = thumbnail title = plugintools.find_single_match(data,'<h1 class="off">([^<]+)</h1>').replace('\\','') votos = plugintools.find_single_match(data,'<span id="reviewCount">(.*?)<') if votos =="": votos = 'N/D' punt = plugintools.find_single_match(data,'<meta itemprop="ratingValue" content="([^"]+)"') if punt =="": punt = 'N/D' year = plugintools.find_single_match(data,'<td>Año.*?<td>(.*?)</td>') if year =="": year = 'N/D' bloq_temp =plugintools.find_single_match(data,'<div class="temporadas m1">(.*?)<div id="lista" class="color1 ma1">') n_temp = plugintools.find_multiple_matches(bloq_temp,'<a class="color1 on ma1 font2".*?">Temporada(.*?)<') n_temp = n_temp[-1].strip() if n_temp =="": n_temp = 'N/D' bloq_genr = plugintools.find_single_match(data,'<td>Géneros(.*?)</tr>') n_genr = plugintools.find_multiple_matches(bloq_genr,'href=".*?">(.*?)<') genr = seriesflv_genr(n_genr) bloq_pais = plugintools.find_single_match(data,'<td>País </td>(.*?)/td>') pais = plugintools.find_multiple_matches(bloq_pais,'<img src=".*?">(.*?)<') try: pais = pais[-1].strip() except: pais = 'N/D' sinopsis = plugintools.find_single_match(data,'<p class="color7">(.*?)</p>').replace('\"','"') if sinopsis =="": sinopsis = 'N/D' datamovie = { 'season': sc3+'[B]Temporadas Disponibles: [/B]'+ec3+sc+str(n_temp)+', '+ec, 'votes': sc3+'[B]Votos: [/B]'+ec3+sc+str(votos)+', '+ec, 'rating': sc3+'[B]Puntuación: [/B]'+ec3+sc+str(punt)+', '+ec, 'genre': sc3+'[B]Género: [/B]'+ec3+sc+str(genr)+', '+ec, 'year': sc3+'[B]Año: [/B]'+ec3+sc+str(year)+', '+ec, 'country': sc3+'[B]País: [/B]'+ec3+sc+str(pais)+'[CR]'+ec, 'sinopsis': sc3+'[B]Sinopsis: [/B]'+ec3+sc+str(sinopsis)+ec} datamovie["plot"]=datamovie["season"]+datamovie["votes"]+datamovie["rating"]+datamovie["genre"]+datamovie["year"]+datamovie["country"]+datamovie["sinopsis"] plugintools.add_item(action="",url="",title=sc5+"[B]"+title+"[/B]"+ec5,info_labels=datamovie,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) patron_temp = '<a class="color1 on ma1 font2"(.*?)/a>' item_temp = re.compile(patron_temp,re.DOTALL).findall(data) for temp in item_temp: url = plugintools.find_single_match(temp,'href="([^"]+)"') name_temp = plugintools.find_single_match(temp,'.html">(.*?)<') plugintools.addPeli(action="seriesflv_linker_capit",url=url,title=sc2+name_temp+' >>'+ec2,info_labels=datamovie,thumbnail=logo,fanart=fanart,folder=True,isPlayable=False)
def seriesflv_linker_capit(params): plugintools.log('[%s %s] SeriesFlv %s' % (addonName, addonVersion, repr(params))) plugintools.add_item(action="", url="", title="[COLOR lightblue][B]SeriesFlv" + version + "[/B][COLOR lightblue]" + sc4 + "[I] [/I]" + ec4, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) url = params.get("url") data = cloudflare.request(url) bloq_capit = plugintools.find_single_match( data, '<div class="serie-cont left">(.*?)</table>') title_temp = plugintools.find_single_match( bloq_capit, '<h1 class="off">(.*?)</h1>').replace('\\', '') plugintools.add_item(action="", url="", title=sc2 + '[B]' + title_temp + '[/B]' + ec2, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) bloq_cover = plugintools.find_single_match( data, '<div class="portada">(.*?)</div>') corver = plugintools.find_single_match(bloq_cover, 'src="([^"]+)') capit = plugintools.find_multiple_matches(bloq_capit, '<td class="sape">(.*?)</tr>') for item in capit: title_capit = plugintools.find_single_match( item, 'class="color4".*?">(.*?)</a>').replace('\\', '') url_capit = plugintools.find_single_match( item, '<a class="color4" href="([^"]+)"') lang = plugintools.find_multiple_matches( item, 'http://www.seriesflv.net/images/lang/(.*?).png') plugintools.addPeli(action="seriesflv_linker_servers", url=url_capit, title=sc + str(title_capit) + ec, extra=str(title_capit), thumbnail=corver, fanart=fanart, folder=True, isPlayable=False)
def danko_slug(params): plugintools.log("[%s %s] Danko %s" % (addonName, addonVersion, repr(params))) plugintools.add_item(action="",url="",title="[COLOR lightblue][B] Danko"+version+"[/B][COLOR lightblue]"+sc4+"[I] [/I]"+ec4,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) params_danko_slug = params.get("extra").split('|') #separando los parametros cookie_ses = params_danko_slug[0];id_vid = params_danko_slug[1];slug1 = params_danko_slug[-1] title = params.get("title");logo = params.get("thumbnail");fondo = params.get("fanart") headers = {'Host': 'pelisdanko.com','User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0', 'Referer': params.get("url"),'pelisdanko_session':cookie_ses} url = params.get("url") #http://pelisdanko.com/peli/deadpool-5233/7V9gGJlcbE1vi7TJ10697/ss?#ss r = requests.get(url,headers=headers) data = r.content title_pel = plugintools.find_single_match(data,'<meta itemprop="name" content="([^"]+)').strip() plugintools.add_item(action="",url="",title=title,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) streaming = plugintools.find_single_match(data,'<h3 class="coolfont">Streaming</h3>(.*?)</iframe>') if streaming !="": url_streaming = plugintools.find_single_match(streaming,'src="([^"]+)"') server = video_analyzer(streaming) titlefull = sc+'1. '+title_pel+ec+sc5+' [I]['+server+'][/I]'+ec5 plugintools.addPeli(action=server,url=url_streaming,title=titlefull,thumbnail=logo,fanart=fondo,folder=False,isPlayable=True) else: pass bloq_slug2 = plugintools.find_single_match(data,'class="lnks"><div class="text-center">(.*?)">Mostrar enlaces</span></a>') slug2 = plugintools.find_single_match(bloq_slug2,'data-slug="([^"]+)"') headers = {'Host': 'pelisdanko.com','User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0', 'Referer': url,'pelisdanko_session':cookie_ses} #http://pelisdanko.com/strms/5233/7V9gGJlcbE1vi7TJ10697/VLr9dzBnPx9A8l8r10697 url = 'http://pelisdanko.com/strms/'+id_vid+'/'+slug1+'/'+slug2 r = requests.post(url,headers=headers) data = r.content bloq_server = plugintools.find_multiple_matches(data,'<tr>(.*?)</tr>') i=2 for item in bloq_server: url_vid = plugintools.find_single_match(item,'<a href="([^"]+)"') server = video_analyzer(url_vid) titlefull = sc+str(i)+'. '+title_pel+ec+sc5+' [I]['+server+'][/I]'+ec5 plugintools.addPeli(action=server,url=url_vid,title=titlefull,thumbnail=logo,fanart=fondo,folder=False,isPlayable=True) i=i+1
def seriesflv_linker_capit(params): plugintools.log('[%s %s] Linker SeriesFlv %s' % (addonName, addonVersion, repr(params))) plugintools.add_item(action="",url="",title="[COLOR lightblue][B]Linker SeriesFlv"+version+"[/B][COLOR lightblue]"+sc4+"[I] *** PLD.VisionTV ***[/I]"+ec4,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) url = params.get("url") data = jump_cloudflare(url) bloq_capit = plugintools.find_single_match(data,'<div class="serie-cont left">(.*?)</table>') title_temp = plugintools.find_single_match(bloq_capit,'<h1 class="off">(.*?)</h1>').replace('\\','') plugintools.add_item(action="",url="",title=sc2+'[B]'+title_temp+'[/B]'+ec2,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) bloq_cover = plugintools.find_single_match(data,'<div class="portada">(.*?)</div>') corver = plugintools.find_single_match(bloq_cover,'src="([^"]+)') capit= plugintools.find_multiple_matches(bloq_capit,'<td class="sape">(.*?)</tr>') for item in capit: title_capit = plugintools.find_single_match(item,'class="color4".*?">(.*?)</a>').replace('\\','') url_capit = plugintools.find_single_match(item, '<a class="color4" href="([^"]+)"') lang = plugintools.find_multiple_matches(item,'http://www.seriesflv.net/images/lang/(.*?).png') plugintools.addPeli(action="seriesflv_linker_servers",url=url_capit,title=sc+str(title_capit)+ec,extra=str(title_capit),thumbnail=corver,fanart=fanart,folder=True,isPlayable=False)
def hd_peli_linker(params): plugintools.log("[%s %s] Linker HDfull.tv %s" % (addonName, addonVersion, repr(params))) plugintools.add_item(action="", url="", title="[COLOR lightblue][B]Linker HDfull" + version + "[/B][COLOR lightblue]" + sc4 + "[I] *** By Aquilesserr/PalcoTV Team ***[/I]" + ec4, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) ################## Params Library #################### url_list = [] option_list = [] source = params.get("extra") ###################################################### url = params.get("url") r = requests.get(url) data = r.content ####################################### Control for Linker ########################################## if source == "linker": fondo = plugintools.find_single_match( data, '<div style="background-image:url\(([^)]+)\)').strip() if "walter.trakt.us" in fondo: fondo = fanart logo = plugintools.find_single_match( data, '<img itemprop="image" src="([^"]+)"') if logo == "": logo = thumbnail title = plugintools.find_single_match( data, '<div id="summary-title" itemprop="name">([^<]+)</div>').upper() punt_imdb = plugintools.find_single_match( data, '<meta itemprop="ratingValue" content="([^"]+)"') if punt_imdb == "": punt_imdb = 'N/D' year = plugintools.find_single_match( data, '<p><span>Año: </span>\s+<a href="http://hdfull.tv/buscar/year/(.*?)">' ) if year == "": year = 'N/D' direct = plugintools.find_single_match( data, '<span>Director:</span>.*?<span itemprop="name">([^<]+)</span></a>' ) if direct == "": direct = 'N/D' id_imdb = plugintools.find_single_match( data, '<a href="http://www.imdb.com/title/(.*?)"') durac = imdb_time(id_imdb) genr = imdb_genr(id_imdb) sinopsis = plugintools.find_single_match( data, 'itemprop="description">(.*?)<br />').strip().replace('\n', '') datamovie = { 'rating': sc3 + '[B]Puntuación: [/B]' + ec3 + sc + str(punt_imdb) + ', ' + ec, 'genre': sc3 + '[B]Género: [/B]' + ec3 + sc + str(genr) + ', ' + ec, 'year': sc3 + '[B]Año: [/B]' + ec3 + sc + str(year) + ', ' + ec, 'duration': sc3 + '[B]Duración: [/B]' + ec3 + sc + str(durac) + '[CR]' + ec, 'sinopsis': sc3 + '[B]Sinopsis: [/B]' + ec3 + sc + str(sinopsis) + ec } datamovie[ "plot"] = datamovie["rating"] + datamovie["genre"] + datamovie[ "year"] + datamovie["duration"] + datamovie["sinopsis"] plugintools.addPeli(action="", url="", title=sc5 + "[B]" + title + "[/B]" + ec5, info_labels=datamovie, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) ##################################################################################################### bloq_film = plugintools.find_single_match( data, '<div class="row-pages-wrapper">(.*?)<div id="link_list"') film = plugintools.find_multiple_matches( bloq_film, '<div class="embed-selector"(.*?)<div class="embed-movie">') for item in film: lang = plugintools.find_single_match( item, 'Idioma:.*?</b>([^<]+)</span>').strip().replace( "\n", "").replace("\t", "").replace('ñ', 'ñ') lang = lang.replace('á', 'á').replace('é', 'é').replace( 'í', 'í').replace('ó', 'ó').replace('ú', 'ú') lang = lang.replace('Audio', '').replace('Español', 'Esp').replace( 'Latino', 'Lat').replace('Subtítulo', 'Sub -').replace('Original', 'V.O') serverfull = plugintools.find_single_match( item, 'class="provider" style="background-image: url\(.*?\)">([^<]+)</b>' ) quality = plugintools.find_single_match( item, 'Calidad:.*?</b>([^<]+)</span>').strip().replace("\n", "").replace( "\t", "") #id_vid = plugintools.find_single_match(item,'onclick="reportMovie\((.*?)\)') url_vid = plugintools.find_single_match( item, '<a href="javascript.*?<a href="([^"]+)"') #server = video_analyzer(serverfull) ####################################### Control for Linker ########################################## if source == "linker": titlefull = sc + serverfull.title( ) + ec + " " + sc2 + " [" + lang.strip( ) + "] " + ec2 + " " + sc + "Video: " + ec + sc5 + quality + ec5 plugintools.addPeli(action="getlink_hdfull_linker", url=url_vid, title=titlefull, info_labels=datamovie, thumbnail=logo, fanart=fondo, folder=False, isPlayable=True) ##################################################################################################### ####################################### Control for Library ######################################### elif source == "library": titlefull = '[COLOR white]' + serverfull.title( ) + ' ' + '[/COLOR][COLOR lightyellow][I][' + lang.strip( ) + '] [/COLOR][COLOR lightblue][' + quality + '] [/COLOR][COLOR gold][HDFull][/I][/COLOR]' url_list.append(url_vid) option_list.append(titlefull) ##################################################################################################### if source == "library": return option_list, url_list
def hd_serieserver_linker(params): plugintools.log("[%s %s] Linker HDfull.tv %s" % (addonName, addonVersion, repr(params))) plugintools.add_item(action="", url="", title="[COLOR lightblue][B]Linker HDfull" + version + "[/B][COLOR lightblue]" + sc4 + "[I] *** By Aquilesserr/PalcoTV Team ***[/I]" + ec4, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) url = params.get("url") fondo = params.get("fanart") logo = params.get("thumbnail") r = requests.get(url) data = r.content punt_imdb = plugintools.find_single_match( data, '<meta itemprop="ratingValue" content="([^"]+)"') if punt_imdb == "": punt_imdb = 'N/D' year = plugintools.find_single_match( data, '<p><span>Año: </span>\s+<a href="http://hdfull.tv/buscar/year/(.*?)">' ) if year == "": year = 'N/D' id_imdb = plugintools.find_single_match( data, '<a href="http://www.imdb.com/title/(.*?)"') durac = imdb_time(id_imdb) genr = imdb_genr(id_imdb) bloq_film = plugintools.find_single_match( data, '<div class="row-pages-wrapper">(.*?)<div id="link_list"') film = plugintools.find_multiple_matches( bloq_film, '<div class="embed-selector"(.*?)<div class="embed-movie">') for item in film: lang = plugintools.find_single_match( item, 'Idioma:.*?</b>([^<]+)</span>').strip().replace( "\n", "").replace("\t", "").replace('ñ', 'ñ') lang = lang.replace('á', 'á').replace('é', 'é').replace( 'í', 'í').replace('ó', 'ó').replace('ú', 'ú') lang = lang.replace('Audio', '').replace('Español', 'Esp').replace( 'Latino', 'Lat').replace('Subtítulo', 'Sub -').replace('Original', 'V.O') ''' serverfull = plugintools.find_single_match(item,'class="provider" style="background-image: url\(.*?\)">([^<]+)</b>') quality = plugintools.find_single_match(item,'Calidad:.*?</b>([^<]+)</span>').strip().replace("\n","").replace("\t","") id_vid = plugintools.find_single_match(item,'onclick="reportMovie\((.*?)\)') url_redir = plugintools.find_single_match(item,'<a href="javascript.*?<a href="([^"]+)"') server = video_analyzer(url_vid) titlefull = sc+server.title()+ec+" "+sc2+" ["+lang.strip()+"] "+ec2+" "+sc+"Video: "+ec+sc5+quality+ec5 plugintools.addPeli(action=server,url=url_redir,title=titlefull,thumbnail=logo,fanart=fondo,folder=False,isPlayable=True) ''' serverfull = plugintools.find_single_match( item, 'class="provider" style="background-image: url\(.*?\)">([^<]+)</b>' ) quality = plugintools.find_single_match( item, 'Calidad:.*?</b>([^<]+)</span>').strip().replace("\n", "").replace( "\t", "") #id_vid = plugintools.find_single_match(item,'onclick="reportMovie\((.*?)\)') url_vid = plugintools.find_single_match( item, '<a href="javascript.*?<a href="([^"]+)"') #server = video_analyzer(serverfull) titlefull = sc + serverfull.title( ) + ec + " " + sc2 + " [" + lang.strip( ) + "] " + ec2 + " " + sc + "Video: " + ec + sc5 + quality + ec5 plugintools.addPeli(action="getlink_hdfull_linker", url=url_vid, title=titlefull, thumbnail=logo, fanart=fondo, folder=False, isPlayable=True)
def hd_epis_linker(params): plugintools.log("[%s %s] Linker HDfull.tv %s" % (addonName, addonVersion, repr(params))) plugintools.add_item(action="", url="", title="[COLOR lightblue][B]Linker HDfull" + version + "[/B][COLOR lightblue]" + sc4 + "[I] *** By Aquilesserr/PalcoTV Team ***[/I]" + ec4, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) url = params.get("url") fondo = params.get("fanart") logo = params.get("thumbnail") name_temp = params.get('title').replace('>>', '') r = requests.get(url) data = r.content plugintools.addPeli(action="", url="", title=sc2 + "-- " + name_temp + " --" + ec2, thumbnail=logo, fanart=fondo, folder=True, isPlayable=False) post = 'action=season&start=0&limit=0' show = plugintools.find_single_match(data, "var sid = '([^']+)") season = plugintools.find_single_match(data, "var ssid = '([^']+)") params_post = post + '&show=' + show + '&season=' + season url_js = 'http://hdfull.tv/a/episodes' body, response_headers = plugintools.read_body_and_headers( url_js, post=params_post) data_js = json.loads(body) try: i = 0 epis = data_js[i] for epis in data_js: #epis = js[i] num_temp = epis['season'].encode('utf8') num_epis = epis['episode'].encode('utf8') #img = 'http://hdfull.tv/tthumb/220x124/'+epis['thumbnail'] id_epis = epis['id'] title = epis['title']['es'].encode('utf8') if title == "": title = epis['title']['en'].encode('utf8') url = params.get("url") + '/episodio-' + num_epis titlefull = str(sc + num_temp + 'x' + num_epis + ' -- ' + title + ec) #+' '+sc2+lang+ec2) plugintools.add_item(action="hd_serieserver_linker", url=url, title=titlefull, thumbnail=logo, fanart=fondo, folder=True, isPlayable=False) epis = int(i) + 1 except: plugintools.addPeli(action="", url="", title=sc4 + 'No existen capitulos' + ec4, thumbnail=logo, fanart=fondo, folder=False, isPlayable=False)
def hd_serietemp_linker(params): plugintools.log("[%s %s] Linker HDfull.tv %s" % (addonName, addonVersion, repr(params))) plugintools.add_item(action="", url="", title="[COLOR lightblue][B]Linker HDfull" + version + "[/B][COLOR lightblue]" + sc4 + "[I] *** By Aquilesserr/PalcoTV Team ***[/I]" + ec4, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) url = params.get("url") r = requests.get(url) data = r.content fondo = plugintools.find_single_match( data, '<div style="background-image:url\(([^)]+)\)').strip() if "walter.trakt.us" in fondo: fondo = fanart logo = plugintools.find_single_match( data, '<div class="show-poster">\s+<img src="([^"]+)"') if logo == "": logo = thumbnail title = plugintools.find_single_match( data, '<div id="summary-title" itemprop="name">([^<]+)</div>').upper() punt_imdb = plugintools.find_single_match( data, '<meta itemprop="ratingValue" content="([^"]+)"') if punt_imdb == "": punt_imdb = 'N/D' year = plugintools.find_single_match( data, '<p><span>Año: </span>\s+<a href="http://hdfull.tv/buscar/year/(.*?)">' ) if year == "": year = 'N/D' n_temp = plugintools.find_multiple_matches(data, "<li><a href='.*?'>(.*?)</a>") n_temp = n_temp[-1] if n_temp == "": direct = 'N/D' id_imdb = plugintools.find_single_match( data, '<a href="http://www.imdb.com/title/(.*?)"') estado = plugintools.find_single_match( data, '<p><span>Estado: </span>.*?>(.*?)</a>') durac = imdb_time(id_imdb) genr = imdb_genr(id_imdb) sinopsis = plugintools.find_single_match( data, 'itemprop="description">(.*?)<br />').strip().replace('\n', '') datamovie = { 'season': sc3 + '[B]Temporadas Disponibles: [/B]' + ec3 + sc + str(n_temp) + ', ' + ec, 'rating': sc3 + '[B]Puntuación: [/B]' + ec3 + sc + str(punt_imdb) + ', ' + ec, 'genre': sc3 + '[B]Género: [/B]' + ec3 + sc + str(genr) + ', ' + ec, 'year': sc3 + '[B]Año: [/B]' + ec3 + sc + str(year) + ', ' + ec, 'duration': sc3 + '[B]Duración: [/B]' + ec3 + sc + str(durac) + '[CR]' + ec, 'sinopsis': sc3 + '[B]Sinopsis: [/B]' + ec3 + sc + str(sinopsis) + ec } datamovie["plot"] = datamovie["season"] + datamovie["rating"] + datamovie[ "genre"] + datamovie["year"] + datamovie["duration"] + datamovie[ "sinopsis"] plugintools.addPeli(action="", url="", title=sc5 + "[B]" + title + "[/B]" + ec5 + sc2 + " (" + estado + ")" + ec2, info_labels=datamovie, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) patron_temp = 'itemprop="season"(.*?)</div>' item_temp = re.compile(patron_temp, re.DOTALL).findall(data) for temp in item_temp: url = plugintools.find_single_match(temp, "<a href='([^']+)'") img = plugintools.find_single_match(temp, 'src="([^"]+)"') if img == "": img = logo name_temp = plugintools.find_single_match(temp, 'itemprop="name">([^<]+)<') plugintools.add_item(action="hd_epis_linker", url=url, title=sc2 + name_temp + ' >>' + ec2, info_labels=datamovie, thumbnail=img, fanart=fondo, folder=True, isPlayable=False)
def reyanime_linker0(params): plugintools.log("[%s %s] Linker Reyanime %s" % (addonName, addonVersion, repr(params))) url = params.get("url") r = requests.get(url) data = r.content bloq_info = plugintools.find_single_match( data, '<div class="cuerpo-todo">(.*?)<div class="lista-cap-title">') logo = 'http://reyanime.com' + plugintools.find_single_match( bloq_info, '<img src="([^"]+)"') if logo == "": logo = thumbnail title_vid = plugintools.find_single_match(bloq_info, '<h1>(.*?)<b>').upper().strip() if title_vid == "": title_vid = 'N/D' tipe = plugintools.find_single_match(bloq_info, '<b>(.*?)</b>').strip() if tipe == "": tipe = 'N/D' title = title_vid + ' ' + tipe estado = plugintools.find_single_match(bloq_info, '<div class="box-([^<]+)">') if estado == "": estado = 'N/D' genrfull = plugintools.find_multiple_matches( bloq_info, '<a href="/genero/.*?">(.*?)</a>') genr = reyanime_genr(genrfull) if genr == "": genr = 'N/D' year = plugintools.find_single_match( bloq_info, '<div class="sinopsis".*?<span>(.*?)</span>').strip() if year == "": year = 'N/D' sinopsis = plugintools.find_single_match( bloq_info, '<div class="sinopsis".*?</h2>(.*?)</div>').strip().replace( '"', '').replace('&', '') datamovie = { 'genre': sc3 + '[B]Género: [/B]' + ec3 + sc + str(genr) + ', ' + ec, 'year': sc3 + '[B]Fecha: [/B]' + ec3 + sc + str(year) + '[CR]' + ec, 'sinopsis': sc3 + '[B]Sinopsis: [/B]' + ec3 + sc + str(sinopsis) + ec } datamovie["plot"] = datamovie["genre"] + datamovie["year"] + datamovie[ "sinopsis"] titlefull = sc5 + '[B]' + title + '[/B]' + ec5 + sc + ' Estado: ' + ec + sc3 + '[I](' + estado + ')[/I]' + ec3 bloq_epis = plugintools.find_single_match( data, '<div class="lista-cap-title">(.*?)<div class="lista-cap-title">') epis = plugintools.find_multiple_matches(bloq_epis, 'href="(.*?)">\s+<b>(.*?)</a>') datamovie_pass = genr + '|' + year + '|' + sinopsis #Pasando los datos a reyanime_resolverlink if len(epis) > 1: plugintools.add_item(action="", url="", title="[COLOR lightblue][B]Linker Reyanime" + version + "[/B][COLOR lightblue]" + sc4 + "[I] [/I]" + ec4, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) plugintools.add_item(action="", url="", title=titlefull, info_labels=datamovie, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) for item in epis: try: url_vid = item[0] url_vid = 'http://reyanime.com' + url_vid title = item[1].replace('</b>', '').strip() plugintools.addPeli(action="reyanime_resolverlink", url=url_vid, title=sc + title + ec, info_labels=datamovie, extra=datamovie_pass, thumbnail=logo, fanart=fanart, folder=True, isPlayable=False) except: pass elif len(epis) <= 1: try: url = plugintools.find_single_match(bloq_epis, 'href="(.*?)"') url_vid = 'http://reyanime.com' + url title = str(title_vid) titlefull = sc5 + '[B]' + title + '[/B]' + ec5 + sc + ' Estado: ' + ec + sc3 + '[I](' + estado + ')[/I]' + ec3 params["url"] = url_vid params["extra"] = datamovie_pass params["thumbnail"] = logo params["title"] = titlefull #Cogiendo los parametros necesarios reyanime_resolverlink(params) except: pass
def peliculasdk_linker0(params): plugintools.log("[%s %s] PeliculasDK %s " % (addonName, addonVersion, repr(params))) ################## Params Library #################### url_list = [] option_list = [] source = params.get("extra") ###################################################### url = params.get("url") r = requests.get(url) data = r.content print data ####################################### Control for Linker ########################################## if source == "linker": plugintools.add_item(action="", url="", title="[COLOR lightblue][B]PeliculasDK[/B]" + version + "[/COLOR][COLOR red][I] [/I][/COLOR]", thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) poster = plugintools.find_single_match( data, '<div class="karatula">.*?src="(.*?)"') genrfull = plugintools.find_multiple_matches( data, 'rel="category tag">(.*?)</a>') genr = peliculasdk_genr(genrfull) title = plugintools.find_single_match( data, '<a><img border="0" src=".*?></a>([^<]+)</h3>').upper().replace( '’', '').replace('–', '').replace('“', '"').replace('”', '"') ####################################### Analizando Cine X ########################################### if title == "": title = plugintools.find_single_match( data, '<td valign="top"><div class="caja_cont"><h3>(.*?)</h3>' ).upper().replace('’', '').replace('–', '').replace( '“', '"').replace('”', '"') calidad = 'Adultos' audio = 'Cine X' genr = 'Adultos' ##################################################################################################### rating = plugintools.find_single_match( data, 'Calificación IMDb: <span>(.*?)\n').replace('</B>', '') if rating == "": rating = 'N/D' duration = plugintools.find_single_match( data, 'Duración: <span>([^<]+)</span>') if duration == "": duration = 'N/D' year = plugintools.find_single_match(data, 'Estreno: <span>([^<]+)</span>') if year == "": year = 'N/D' country = plugintools.find_single_match(data, 'País: <span>([^<]+)</span>') if country == "": country = 'N/D' sinopsis = plugintools.find_single_match( data, '<span class="clms">Sinopsis: </span>(.*?)</div>').strip() if sinopsis == "": sinopsis = plugintools.find_single_match( data, '<div class="sinopsis">(.*?)</div>').strip() datamovie = { 'genre': sc3 + '[B]Género: [/B]' + ec3 + sc + str(genr) + ', ' + ec, 'duration': sc3 + '[B]Duración: [/B]' + ec3 + sc + str(duration) + ', ' + ec, 'rating': sc3 + '[B]Calificación: [/B]' + ec3 + sc + str(rating) + ', ' + ec, 'year': sc3 + '[B]Año: [/B]' + ec3 + sc + str(year) + ', ' + ec, 'country': sc3 + '[B]País: [/B]' + ec3 + sc + str(country) + '[CR]' + ec, 'sinopsis': sc3 + '[B]Sinopsis: [/B]' + ec3 + sc + str(sinopsis) + ec } datamovie["plot"] = datamovie["genre"] + datamovie[ "duration"] + datamovie["rating"] + datamovie["year"] + datamovie[ "country"] + datamovie["sinopsis"] plugintools.add_item(action="", url="", title=sc5 + "[B]" + title + "[/B]" + ec5, info_labels=datamovie, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) ##################################################################################################### bloque_link = plugintools.find_single_match( data, '<div id="verpelicula">(.*?)<div id="mreporta">') if bloque_link == "": bloque_link = plugintools.find_single_match( data, '<div id="verpelicula">(.*?)<center><script type="text/javascript">' ) name_server = plugintools.find_multiple_matches( bloque_link, '<script>(.*?)\(\"(.*?)\"') audio = plugintools.find_single_match( data, '<li><a href="#tab1"><span class="re">.*?<span class="(.*?)"') audio = audio.replace('la', 'Latino').replace('su', 'Subtitulado').replace( 'es', 'Español') if audio == "": audio = 'N/D' calidad = plugintools.find_single_match( data, '<li><a href="#tab1"><span class="re">.*?<span class=".*?".*?<span class="c">(.*?)</span>' ) if calidad == "": calidad = 'N/D' for item in name_server: #plugintools.log("Nombre Servidor= "+str(item)) server = item[0] id = item[1] ####################################### Control for Linker ########################################## if source == "linker": titlefull = sc + "[I]Ver en: " + server.title( ) + '[/I] ' + ec + sc2 + '[I][' + str(audio) + " - " + str( calidad) + "][/I]" + ec2 if ("allmy") in server: linkpeli = 'https://allmyvideos.net/' + item[1] plugintools.addPeli(action="allmyvideos", title=titlefull, url=linkpeli, info_labels=datamovie, thumbnail=poster, fanart=fanart, folder=False, isPlayable=True) if ("flash") in server: linkpeli = '"http://www.flashx.tv/' + item[1] + '.html' plugintools.addPeli(action="flash", title=titlefull, url=linkpeli, info_labels=datamovie, thumbnail=poster, fanart=fanart, folder=False, isPlayable=True) if ("gamo") in server: linkpeli = 'http://www.gamovideo.com/' + item[1] plugintools.addPeli(action="gamovideo", title=titlefull, url=linkpeli, info_labels=datamovie, thumbnail=poster, fanart=fanart, folder=False, isPlayable=True) if ("netu") in server: linkpeli = 'http://waaw.tv/watch_video.php?v=' + item[1] plugintools.addPeli(action="netu", title=titlefull, url=linkpeli, info_labels=datamovie, thumbnail=poster, fanart=fanart, folder=False, isPlayable=True) if ("okru") in server: linkpeli = 'http://ok.ru/videoembed/' + item[1] plugintools.addPeli(action="okru", title=titlefull, url=linkpeli, info_labels=datamovie, thumbnail=poster, fanart=fanart, folder=False, isPlayable=True) if ("open") in server: linkpeli = 'https://openload.co/f/' + item[1] + '/' plugintools.addPeli(action="openload", title=titlefull, url=linkpeli, info_labels=datamovie, thumbnail=poster, fanart=fanart, folder=False, isPlayable=True) if ("powvideo") in server: linkpeli = 'http://powvideo.net/' + item[1] plugintools.addPeli(action="powvideo", title=titlefull, url=linkpeli, info_labels=datamovie, thumbnail=poster, fanart=fanart, folder=False, isPlayable=True) if ("streamin") in server: linkpeli = 'http://streamin.to/' + item[1] plugintools.addPeli(action="streaminto", title=titlefull, url=linkpeli, info_labels=datamovie, thumbnail=poster, fanart=fanart, folder=False, isPlayable=True) if ("videomega") in server: linkpeli = 'http://videomega.tv/?ref=' + item[1] plugintools.addPeli(action="videomega", title=titlefull, url=linkpeli, info_labels=datamovie, thumbnail=poster, fanart=fanart, folder=False, isPlayable=True) ##################################################################################################### ####################################### Control for Library ######################################### elif source == "library": titlefull = '[COLOR white]' + server.title( ) + ' ' + '[/COLOR][COLOR lightyellow][I][' + audio + '] [/COLOR][COLOR lightblue][' + calidad + '] [/COLOR][COLOR gold][Oranline][/I][/COLOR]' if ("allmy") in server: linkpeli = 'https://allmyvideos.net/' + item[1] titlefull = '[COLOR white]' + server.title( ) + ' ' + '[/COLOR][COLOR lightyellow][I][' + str( audio) + '] [/COLOR][COLOR lightblue][' + str( calidad) + '] [/COLOR][COLOR gold][HDFull][/I][/COLOR]' url_list.append(linkpeli) option_list.append(titlefull) if ("flash") in server: linkpeli = '"http://www.flashx.tv/' + item[1] + '.html' titlefull = '[COLOR white]' + server.title( ) + ' ' + '[/COLOR][COLOR lightyellow][I][' + str( audio) + '] [/COLOR][COLOR lightblue][' + str( calidad) + '] [/COLOR][COLOR gold][HDFull][/I][/COLOR]' url_list.append(linkpeli) option_list.append(titlefull) if ("gamo") in server: linkpeli = 'http://www.gamovideo.com/' + item[1] titlefull = '[COLOR white]' + server.title( ) + ' ' + '[/COLOR][COLOR lightyellow][I][' + str( audio) + '] [/COLOR][COLOR lightblue][' + str( calidad) + '] [/COLOR][COLOR gold][HDFull][/I][/COLOR]' url_list.append(linkpeli) option_list.append(titlefull) if ("netu") in server: linkpeli = 'http://waaw.tv/watch_video.php?v=' + item[1] titlefull = '[COLOR white]' + server.title( ) + ' ' + '[/COLOR][COLOR lightyellow][I][' + str( audio) + '] [/COLOR][COLOR lightblue][' + str( calidad) + '] [/COLOR][COLOR gold][HDFull][/I][/COLOR]' url_list.append(linkpeli) option_list.append(titlefull) if ("okru") in server: linkpeli = 'http://ok.ru/videoembed/' + item[1] titlefull = '[COLOR white]' + server.title( ) + ' ' + '[/COLOR][COLOR lightyellow][I][' + str( audio) + '] [/COLOR][COLOR lightblue][' + str( calidad) + '] [/COLOR][COLOR gold][HDFull][/I][/COLOR]' url_list.append(linkpeli) option_list.append(titlefull) if ("open") in server: linkpeli = 'https://openload.co/f/' + item[1] + '/' titlefull = '[COLOR white]' + server.title( ) + ' ' + '[/COLOR][COLOR lightyellow][I][' + str( audio) + '] [/COLOR][COLOR lightblue][' + str( calidad) + '] [/COLOR][COLOR gold][HDFull][/I][/COLOR]' url_list.append(linkpeli) option_list.append(titlefull) if ("powvideo") in server: linkpeli = 'http://powvideo.net/' + item[1] titlefull = '[COLOR white]' + server.title( ) + ' ' + '[/COLOR][COLOR lightyellow][I][' + str( audio) + '] [/COLOR][COLOR lightblue][' + str( calidad) + '] [/COLOR][COLOR gold][HDFull][/I][/COLOR]' url_list.append(linkpeli) option_list.append(titlefull) if ("streamin") in server: linkpeli = 'http://streamin.to/' + item[1] titlefull = '[COLOR white]' + server.title( ) + ' ' + '[/COLOR][COLOR lightyellow][I][' + str( audio) + '] [/COLOR][COLOR lightblue][' + str( calidad) + '] [/COLOR][COLOR gold][HDFull][/I][/COLOR]' url_list.append(linkpeli) option_list.append(titlefull) if ("videomega") in server: linkpeli = 'http://videomega.tv/?ref=' + item[1] titlefull = '[COLOR white]' + server.title( ) + ' ' + '[/COLOR][COLOR lightyellow][I][' + str( audio) + '] [/COLOR][COLOR lightblue][' + str( calidad) + '] [/COLOR][COLOR gold][HDFull][/I][/COLOR]' url_list.append(linkpeli) option_list.append(titlefull) ##################################################################################################### if source == "library": return option_list, url_list
def tvvip_peli(params): plugintools.log("[%s %s] Linker TV-vip %s" % (addonName, addonVersion, repr(params))) ##################### Params Library ########################### url_list=[];option_list=[];source=params.get("extra") ################################################################ cookie_sess = tvvip_cookie_sess(web) url = params.get("url") headers = {'Host': 'tv-vip.com','User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0', 'Accept': 'application/json, text/javascript, */*; q=0.01','Accept-Language': 'es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3','Accept-Encoding': 'gzip, deflate', 'DNT': '1','X-Requested-With': 'XMLHttpRequest','Referer': referer,'Connection': 'keep-alive','Cache-Control': 'max-age=0','__cfduid':cookie_sess} url = url.replace('film','json/repo')+'index.json' r = requests.get(url,headers=headers) data_js = r.text.encode('utf8') js = json.loads(data_js) lang = tvvip_lang(url) subtitle = tvvip_lang_sub(url) ####################################### Control for Linker ########################################## if source == "linker": plugintools.add_item(action="",url="",title="[COLOR lightblue][B]Linker TV-vip"+version+"[/B][COLOR lightblue]"+sc4+"[I] *** By Aquilesserr/PalcoTV Team ***[/I]"+ec4,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) logo = params.get("url").replace('film','json/repo')+'poster.jpg' fondo = params.get("url").replace('film','json/repo')+'thumbnail.jpg' title = js['name'].encode('utf8').strip().replace("\n","").replace("\t","") title = title.replace('á','á').replace('é','é').replace('Ã','í').replace('ó','ó').replace('º','ú').replace('ñ','ñ') genr = tvvip_genr(url) if genr =="": genr = 'N/D' year = js['year'].encode('utf8').strip().replace("\n","").replace("\t","") if year =="": year = 'N/D' durac = js['durationHuman'].encode('utf8').strip().replace("\n","").replace("\t","") if durac =="": durac = 'N/D' punt = js['rate'].encode('utf8').strip().replace("\n","").replace("\t","") if punt =="": punt = 'N/D' sinopsis = js['description'].encode('utf8').strip().replace("\n","").replace("\t","") if sinopsis =="": sinopsis = 'N/D' datamovie = { 'rating': sc3+'[B]Puntuación: [/B]'+ec3+sc+str(punt)+', '+ec, 'genre': sc3+'[B]Género: [/B]'+ec3+sc+str(genr)+', '+ec, 'year': sc3+'[B]Año: [/B]'+ec3+sc+str(year)+', '+ec, 'duration': sc3+'[B]Duración: [/B]'+ec3+sc+str(durac)+', '+ec, 'audiochannels': sc3+'[B]Audio: [/B]'+ec3+sc+str(lang)+', '+ec, 'subtitleslanguage': sc3+'[B]Subtitulos: [/B]'+ec3+sc+str(subtitle)+'[CR]'+ec, 'sinopsis': sc3+'[B]Sinopsis: [/B]'+ec3+sc+str(sinopsis)+ec} datamovie["plot"]=datamovie["rating"]+datamovie["genre"]+datamovie["year"]+datamovie["duration"]+datamovie["audiochannels"]+datamovie["subtitleslanguage"]+datamovie["sinopsis"] plugintools.add_item(action="",url="",title=sc5+"[B]"+title+"[/B]"+ec5,info_labels=datamovie,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) ##################################################################################################### quality_grup = js['profiles'] for quality in quality_grup: quality_max = js['profiles'][quality]['videoResolution'].encode('utf8') peso = js['profiles'][quality]['sizeHuman'].encode('utf8') videouri = js['profiles'][quality]['videoUri'].encode('utf8') server = js['profiles'][quality]['servers'] i=0 for item in server: transcoder = js['profiles'][quality]['servers'][i]['url'].encode('utf8') ####################################### Control for Linker ########################################## if source == "linker": plugintools.addPeli(action="play_resolvers",url=transcoder,page=videouri,title=sc+title+' (Serv.'+str(i+1)+')'+ec+sc2+" ["+str(quality_max)+"]"+ec2+sc5+" ["+peso+"]"+ec5,extra= cookie_sess,info_labels=datamovie,thumbnail=logo,fanart=fondo,folder=False,isPlayable=True) i=i+1 ##################################################################################################### ####################################### Control for Library ######################################### elif source == "library": server = 'Tv-vip Serv.'+str(i+1) titlefull = '[COLOR white]'+server.title()+' '+'[/COLOR][COLOR lightyellow][I]['+lang.strip()+'] [/COLOR][COLOR lightblue]['+quality_max+'] [/COLOR][COLOR gold][TV-Vip][/I][/COLOR]' url_list.append(transcoder+videouri);option_list.append(titlefull) i=i+1 ##################################################################################################### if params.get("extra") == "library": return option_list,url_list
def serieyonkis_linker0(params): plugintools.log('[%s %s] Linker SeriesYonkis %s' % (addonName, addonVersion, repr(params))) plugintools.add_item(action="", url="", title="[COLOR lightblue][B]Linker SeriesYonkis" + version + "[/B][COLOR lightblue]" + sc4 + "[I] *** By PalcoTV Team ***[/I]" + ec4, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) bers_sy_on = plugintools.get_setting("bers_sy_on") bers_sy_level = plugintools.get_setting("bers_sy_level") plugintools.log("bers_sy_on= " + bers_sy_on) plugintools.log("bers_sy_level= " + bers_sy_level) if bers_sy_on == "true" and bers_sy_level == "1": # Control para ejecutar el BERS para toda la serie bers_sy0(params) else: datamovie = {} if params.get("plot") != "": datamovie["Plot"] = params.get( "plot") # Cargamos sinopsis de la serie... (si existe) else: datamovie["Plot"] = "." url = params.get("url") request_headers = [] request_headers.append([ "User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.65 Safari/537.31" ]) request_headers.append(["Referer", referer]) data, response_headers = plugintools.read_body_and_headers( url, headers=request_headers) title = plugintools.find_single_match( data, '<h1 class="underline" title="(.*?)\(').strip() year = plugintools.find_single_match( data, '<h1 class="underline" title=".*?\((.*?)\)').strip() if year == "": year = 'N/D' punt = plugintools.find_single_match( data, '<div class="rating">\s+<p>(.*?)</p>').strip().replace( '\n', '').replace('\t', '') if punt == "": punt = 'N/D' n_temp = plugintools.find_single_match( data, 'id="votes">\s+<p>\s+([0-9]+).*?<span id="votes_value">' ).strip().replace('\n', '').replace('\t', '').replace('|', '') if n_temp == "": n_temp = 'N/D' sinopsis = plugintools.find_single_match( data, '<p style=";">(.*?)</p>').strip() if sinopsis == "": sinopsis = 'N/D' logo = plugintools.find_single_match(data, '<img src="([^"]+)"') datamovie = { 'season': sc3 + '[B]Temporadas Disponibles: [/B]' + ec3 + sc + str(n_temp) + ', ' + ec, 'rating': sc3 + '[B]Puntuación: [/B]' + ec3 + sc + str(punt) + ', ' + ec, 'year': sc3 + '[B]Año: [/B]' + ec3 + sc + str(year) + '[CR]' + ec, 'sinopsis': sc3 + '[B]Sinopsis: [/B]' + ec3 + sc + str(sinopsis) + ec } datamovie["plot"] = datamovie["season"] + datamovie[ "rating"] + datamovie["year"] + datamovie["sinopsis"] plugintools.add_item(action="", url="", title=sc5 + "[B]" + title + "[/B]" + ec5, info_labels=datamovie, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) bloq_temp = plugintools.find_single_match( data, '<div id="section-content">(.*?)</ul>') temps = plugintools.find_multiple_matches( bloq_temp, '<h3 class="season"(.*?)</li>') for item in temps: name_temp = plugintools.find_single_match( item, '<strong class="season_title">(.*?)</strong>').strip() plugintools.addPeli(action="", url="", title=sc2 + '-- ' + name_temp + ' --' + ec2, info_labels=datamovie, thumbnail=logo, fanart=fanart, folder=False, isPlayable=False) capis = plugintools.find_multiple_matches( item, '<td class="episode-title">(.*?)</td>') for entri in capis: url_cap = plugintools.find_single_match(entri, 'href="([^"]+)') url_cap = 'http://www.seriesyonkis.sx' + url_cap num_cap = plugintools.find_single_match( entri, '<strong>(.*?)</strong>') num_cap = num_cap.strip() title_cap = plugintools.find_single_match( entri, '</strong>(.*?)</a>') title_cap = title_cap.strip() title_capi = sc + num_cap + title_cap + ec.strip() title_fixed = num_cap + title_cap title_fixed = title_fixed.strip() plugintools.addPeli(action="enlaces_capi_linker", title=title_capi, url=url_cap, info_labels=datamovie, thumbnail=logo, fanart=fanart, folder=True, extra=title_fixed, isPlayable=False)
def oranline_linker0(params): plugintools.log('[%s %s]Oranline %s' % (addonName, addonVersion, repr(params))) url = params.get("url") headers = { 'user-agent': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14' } r = requests.get(url, headers=headers) data = r.content plugintools.add_item(action="", url="", title="[COLOR lightblue][B]Oranline" + version + "[/B][COLOR lightblue]" + sc4 + "[I][/I]" + ec4, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) logo = plugintools.find_single_match( data, '<div class="col-xs-2 poster">.*?<img src="([^"]+)"') if logo == "": logo = thumbnail info = plugintools.find_single_match( data, '<div id="informacion" class="tab-pane active">(.*?)<div id="produccion" class="tab-pane">' ) fondo = plugintools.find_single_match( info, '<div class="episode-selector-element"><img src="([^"]+)"').replace( 'w185', 'original') if fondo == "": fondo = fanart title = plugintools.find_single_match( info, '<span class="aa">.*?Título.*?</span>.*?<span class="ab">(.*?)</span>' ).replace('&', '').replace('–', '').replace('‘', '').replace('’', '') if title == "": title = "N/D" bloq_genr = plugintools.find_single_match( info, '(<span class="aa">Géneros</span>.*?<span class="ab">.*?</span>)' ).replace('&', '').replace('–', '').replace('‘', '').replace('’', '') if 'rel="category tag">' in bloq_genr: genrfull = plugintools.find_multiple_matches( bloq_genr, 'rel="category tag">(.*?)<') genr = oranline_genr(genrfull) else: genr = "N/D" year = plugintools.find_single_match( info, '<span class="aa">Año de lanzamiento</span>.*?<span class="ab">.*?rel="tag">(.*?)<' ).replace("\t\r\n", "").strip() if year == "": year = "N/D" durac = plugintools.find_single_match( info, '<span class="aa">Duración</span>.*?<span class="ab">(.*?)</span>' ).replace('&', '').replace('–', '').replace('‘', '').replace('’', '') if durac == "": durac = "N/D" punt = plugintools.find_single_match( info, '<span class="aa">Calificación</span>.*?<span class="ab">(.*?)</span>' ).replace('&', '').replace('–', '').replace('‘', '').replace('’', '') if punt == "": punt = "N/D" sinopsis = plugintools.find_single_match( data, '<h2>Sinopsis</h2>.*?<p class="trasnparente">(.*?)</p>').strip() datamovie = { 'rating': sc3 + '[B]Puntuación: [/B]' + ec3 + sc + str(punt) + ', ' + ec, 'genre': sc3 + '[B]Género: [/B]' + ec3 + sc + str(genr) + ', ' + ec, 'year': sc3 + '[B]Año: [/B]' + ec3 + sc + str(year) + ', ' + ec, 'duration': sc3 + '[B]Duración: [/B]' + ec3 + sc + str(durac) + '[CR]' + ec, 'sinopsis': sc3 + '[B]Sinopsis: [/B]' + ec3 + sc + str(sinopsis) + ec } datamovie["plot"] = datamovie["rating"] + datamovie["genre"] + datamovie[ "year"] + datamovie["duration"] + datamovie["sinopsis"] plugintools.addPeli(action="", title=sc5 + "[B]" + title + "[/B]" + ec5, url="", info_labels=datamovie, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) bloque = plugintools.find_single_match( data, '<div id="online">.*?</thead>(.*?)</table>') bloque_peli = plugintools.find_multiple_matches(bloque, '<tr>(.*?)</tr>') i = 1 for entry in bloque_peli: #plugintools.log("entry= "+entry) lang_audio = plugintools.find_single_match( entry, '</span></td>\s+<td>([^<]+)</td>').strip() if lang_audio == "": lang_audio = plugintools.find_single_match( entry, '</span></td><td>([^<]+)</td>').strip() formatq = plugintools.find_single_match( entry, '</span></td>\s+<td>[^<]+</td>\s+<td>([^<]+).*?</td>').replace( "\t\r\n", "").strip() if formatq == "": formatq = formatq = plugintools.find_single_match( entry, '</span></td>\<td>[^<]+</td><td>([^<]+).*?</td>') server_url = plugintools.find_single_match(entry, '<td><a href="([^"]+)"') server = video_analyzer(server_url) if server != "": titlefull = sc + str(i) + '. ' + server.title( ) + ec + ' ' + sc2 + '[I][' + lang_audio + '][/I] ' + ec2 + sc5 + '[I][' + formatq + '][/I]' + ec5 plugintools.addPeli(action=server, url=server_url, title=titlefull, info_labels=datamovie, fanart=fondo, thumbnail=logo, folder=False, isPlayable=True) i = i + 1
def tvvip_serie_temp(params): plugintools.log("[%s %s] Linker TV-vip %s" % (addonName, addonVersion, repr(params))) plugintools.add_item(action="",url="",title="[COLOR lightblue][B]Linker TV-vip"+version+"[/B][COLOR lightblue]"+sc4+"[I] *** By Aquilesserr/PalcoTV Team ***[/I]"+ec4,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) cookie_sess = tvvip_cookie_sess(web) url = params.get("url") url = url.replace('section','json/playlist')+'/index.json' headers = {'Host': 'tv-vip.com','User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0', 'Accept': 'application/json, text/javascript, */*; q=0.01','Accept-Language': 'es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3','Accept-Encoding': 'gzip, deflate', 'DNT': '1','X-Requested-With': 'XMLHttpRequest','Referer': referer,'Connection': 'keep-alive','Cache-Control': 'max-age=0','__cfduid':cookie_sess} r = requests.get(url,headers=headers) if 'refresh' in r.headers: time.sleep(int(r.headers['refresh'][:1])) url = web + '/' + r.headers['refresh'][7:] r = requests.get(url,headers=headers) data_js = r.text.encode('utf8') js = json.loads(data_js) logo = params.get("url").replace('section','json/playlist')+'/thumbnail_300x300.jpg' fondo = params.get("url").replace('section','json/playlist')+'/background.jpg' title = js['name'].encode('utf8').strip().replace("\n","").replace("\t","") title = title.replace('á','á').replace('é','é').replace('Ã','í').replace('ó','ó').replace('º','ú').replace('ñ','ñ') genr = tvvip_genr(url) if genr =="": genr = 'N/D' year = js['year'].encode('utf8').strip().replace("\n","").replace("\t","") if year =="": year = 'N/D' durac = js['runtime'].encode('utf8').strip().replace("\n","").replace("\t","") if durac =="": durac = 'N/D' punt = js['rate'].encode('utf8').strip().replace("\n","").replace("\t","") if punt =="": punt = 'N/D' lang = tvvip_lang(url) n_epis = js['number'] n_temp = js['numberOfSeasons'] datamovie = { 'season': sc3+'[B]Temporadas Disponibles: [/B]'+ec3+sc+str(n_temp)+', '+ec, 'genre': sc3+'[B]Género: [/B]'+ec3+sc+str(genr)+', '+ec, 'year': sc3+'[B]Año: [/B]'+ec3+sc+str(year)+', '+ec, 'duration': sc3+'[B]Duración: [/B]'+ec3+sc+str(durac)+ec} datamovie["plot"]=datamovie["season"]+datamovie["genre"]+datamovie["year"]+datamovie["duration"] plugintools.addPeli(action="",url="",title=sc5+"[B]"+title+"[/B]"+ec5,info_labels=datamovie,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) try: plugintools.add_item(action="",url="",title=sc2+"Extras"+ec2,thumbnail=logo,fanart=fondo,folder=False,isPlayable=False) extras = js['sortedRepoChilds'] i = 0 epis = js['sortedRepoChilds'][i] for epis in extras: title = epis['name'].encode('utf8').replace('á','á').replace('é','é').replace('Ã','í').replace('ó','ó').replace('º','ú').replace('ñ','ñ') durac = epis['runtime']#.encode('utf8') if durac =="": durac = "N/D" url = 'http://tv-vip.com/film/'+epis['id']+'/' # / necesaria para enviar a tvvip_peli plugintools.add_item(action="tvvip_peli",url=url,title=sc+title+ec+sc3+" ["+durac+"]"+ec3,info_labels=datamovie,thumbnail=logo,fanart=fondo,folder=True,isPlayable=False) epis = int(i)+1 except: pass try: tempfull = js['playListChilds'] i = 0 temp = js['playListChilds'][i] for temp in tempfull: logo = 'http://tv-vip.com/json/playlist/'+temp+'/thumbnail_300x300.jpg' title_temp = temp.replace('-',' ').title() url = 'http://tv-vip.com/section/'+temp+'/' plugintools.add_item(action="tvvip_serie_epis",url=url,title=sc2+title_temp+" >>"+ec2,extra= cookie_sess,info_labels=datamovie,thumbnail=logo,fanart=fondo,folder=True,isPlayable=False) except: pass
def animeflv_videopeli(params): plugintools.log("[%s %s] AnimeFLV %s" % (addonName, addonVersion, repr(params))) url = params.get("url") headers = { 'Host': 'animeflv.net', 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0', 'Referer': web } r = requests.get(url, headers=headers) data = r.content bloq_info = plugintools.find_single_match( data, '<div class="anime_info">(.*?)<div class="clear"></div>') logo = plugintools.find_single_match(bloq_info, '<img src="([^"]+)"') if logo == "": logo = thumbnail title = plugintools.find_single_match(bloq_info, '<h1>([^<]+)</h1>').upper().strip() title = title.replace('á', 'á').replace('é', 'é').replace( 'í', 'í').replace('ó', 'ó').replace('ú', 'ú') title = title.replace('&', '').replace(''', '').replace('ñ', 'ñ') estado = plugintools.find_single_match( bloq_info, '<span class="serie_estado_2">([^<]+)</span>').strip().replace( 'ó', 'ó') if estado == "": estado = 'N/D' #bloq_genr = plugintools.find_single_match(data,'<li><b>Generos:</b>(.*?)</li>') genrfull = plugintools.find_multiple_matches( bloq_info, '<a href="/animes/genero/(.*?)/') genr = animeflv_genr(genrfull) if genr == "": genr = 'N/D' year = plugintools.find_single_match( bloq_info, '<li><b>Fecha de Inicio:</b>([^<]+)</li>').strip() if year == "": year = 'N/D' sinopsis = plugintools.find_single_match( bloq_info, '<div class="sinopsis">(.*?)</div>').strip() sinopsis = sinopsis.replace('“', '').replace('”', '').replace( '"', '').replace(''', '').replace('ñ', 'ñ') sinopsis = sinopsis.replace('&', '').replace('á', 'á').replace( 'é', 'é').replace('í', 'í').replace('ó', 'ó').replace('ú', 'ú') datamovie_pass = genr + '|' + year + '|' + sinopsis #Parametros para animeflv_resolverlink ################ Control comprueba si la Peli dispone de varios enlaces ########################## bloq_vid = plugintools.find_single_match( bloq_info, '<ul class="anime_episodios"(.*?)</ul>') vid = plugintools.find_multiple_matches(bloq_vid, '<li><a(.*?)</li>') if len(vid) > 1: plugintools.add_item(action="", url="", title="[COLOR lightblue][B]AnimeFLV" + version + "[/B][COLOR lightblue]" + sc4 + "[I] [/I]" + ec4, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) for item in vid: datamovie = { 'genre': sc3 + '[B]Género: [/B]' + ec3 + sc + str(genr) + ', ' + ec, 'year': sc3 + '[B]Fecha de Inicio: [/B]' + ec3 + sc + str(year) + '[CR]' + ec, 'sinopsis': sc3 + '[B]Sinopsis: [/B]' + ec3 + sc + str(sinopsis) + ec } datamovie["plot"] = datamovie["genre"] + datamovie[ "year"] + datamovie["sinopsis"] url_vid = plugintools.find_single_match(item, 'href="([^"]+)"') url_vid = 'http://animeflv.net' + url_vid title_epis = plugintools.find_single_match( item, 'href=".*?">([^<]+)</a>') plugintools.addPeli(action="animeflv_resolverlink", url=url_vid, title=sc + title_epis + ec, info_labels=datamovie, extra=datamovie_pass, thumbnail=logo, fanart=fanart, folder=True, isPlayable=False) ############################# Else la Peli solo dispone de un link ############################## else: url_vid = plugintools.find_single_match( bloq_info, '<ul class="anime_episodios".*?<a href="([^"]+)"') url_vid = 'http://animeflv.net' + url_vid params["url"] = url_vid params["extra"] = datamovie_pass params["thumbnail"] = logo params["title"] = title animeflv_resolverlink( params ) #Pasando todos los parametros a animeflv_resolverlink sin paradas en add_item
def animeflv_resolverlink(params): plugintools.log("[%s %s] AnimeFLV %s" % (addonName, addonVersion, repr(params))) plugintools.add_item(action="", url="", title="[COLOR lightblue][B]AnimeFLV" + version + "[/B][COLOR lightblue]" + sc4 + "[I] [/I]" + ec4, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) url = params.get("url") logo = params.get("thumbnail") title = params.get("title").replace(sc, '').replace(ec, '') title = title.replace('&AACUTE;', 'Á').replace('&EACUTE;', 'É').replace( '&IACUTE;', 'Í').replace('&OACUTE;', 'Ó').replace('&UACUTE;', 'Ú') try: datamovie = params.get("extra").split('|') datamovie = { 'genre': sc3 + '[B]Género: [/B]' + ec3 + sc + str(datamovie[0]) + ', ' + ec, 'year': sc3 + '[B]Fecha de Inicio: [/B]' + ec3 + sc + str(datamovie[1]) + '[CR]' + ec, 'sinopsis': sc3 + '[B]Sinopsis: [/B]' + ec3 + sc + str(datamovie[2]) + ec } datamovie["plot"] = datamovie["genre"] + datamovie["year"] + datamovie[ "sinopsis"] except: datamovie = { 'sinopsis': sc3 + '[B]No hay Descripción Disponible[/B]' + ec3 } datamovie["plot"] = datamovie["sinopsis"] headers = { 'Host': 'animeflv.net', 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0', 'Referer': web } r = requests.get(url, headers=headers) data = r.content plugintools.addPeli(action="", url="", title=sc5 + "[B]" + title + "[/B]" + ec5, info_labels=datamovie, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) bloq_opc = plugintools.find_single_match( data, '<div class="box_opc" id="opciones_box"(.*?)<div class="box_opc" id="descargas_box"' ) control_server = plugintools.find_single_match( bloq_opc, '/img/servers/(.*?)\.') # Comprueba que existen conectores if control_server == "": plugintools.addPeli(action="", url="", title=sc4 + 'No hay Enlaces Disponibles' + ec4, info_labels=datamovie, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) else: opc = plugintools.find_multiple_matches( bloq_opc, '<div class="opcion video_opcion"(.*?)</div>') bloq_url = plugintools.find_single_match(data, 'var videos =(.*?)\]\};') url_vid = plugintools.find_multiple_matches(bloq_url, 'src=.*?"(.*?)"') i = 0 for item in opc: name_server = plugintools.find_single_match( item, '/img/servers/(.*?)\.') opcion = plugintools.find_single_match( item, 'class="server"/><b>(.*?)</b>') lang = plugintools.find_single_match( item, '<b>Audio:</b> <img src="/img/idiomas/(.*?)\.') if 'ES' in lang: lang = '[I][Esp][/I]' elif 'JP' in lang: lang = '[I][Jap][/I]' else: lang = 'N/D' sub = plugintools.find_single_match( item, '<b>Subs:</b> <img src="/img/idiomas/(.*?)\.') if 'ES' in sub: sub = '[I][Esp][/I]' elif 'JP' in sub: sub = '[I][Jap][/I]' else: sub = 'N/D' server_url = url_vid[i].replace('\\', '') if 'dailymotion' in server_url: server_url = 'http:' + server_url # Resolviendo el error de ausencia de http: en Dailymotion server = video_analyzer(name_server) if 'izanagi' in server_url: server = 'izanagi' elif 'yotta' in server_url: server = 'yotta' elif 'kami' in server_url: server = 'kami' j = i + 1 # Numeracion para las Opciones titlefull = sc + 'Opc.' + str( j ) + ' Aud: ' + ec + sc2 + lang + ec2 + sc + ' Sub: ' + ec + sc2 + sub + ec2 + sc5 + ' [I][' + server.title( ) + '][/I]' + ec5 plugintools.addPeli(action=server, url=server_url, title=titlefull, info_labels=datamovie, thumbnail=logo, fanart=fanart, folder=False, isPlayable=True) i = i + 1
def seriesblanco0(params): plugintools.log('[%s %s] Linker SeriesBlanco %s' % (addonName, addonVersion, repr(params))) plugintools.add_item(action="",url="",title="[COLOR lightblue][B]Linker SeriesBlanco"+version+"[/B][COLOR lightblue]"+sc4+"[I] *** PLD.VisionTV ***[/I]"+ec4,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) url = params.get("url") referer = url data = gethttp_referer_headers(url,referer) #plugintools.log("data= "+data) fondo = plugintools.find_single_match(data, "<meta property='og:image' content='(.*?)'") if fondo == "": fondo = fanart logo = plugintools.find_single_match(data,"<img id='port_serie' src='([^']+)'") if logo == "": logo = thumbnail info = plugintools.find_single_match(data, "<img id='port_serie'(.*?)</tbody></table>") #print info votos = plugintools.find_single_match(info,"color='yellow'>(.*?)<").strip() if votos =="": votos = "N/D" title_ser = plugintools.find_single_match(info, "<h4>(.*?)</h4>").decode('unicode_escape').encode('utf8').strip() if title_ser == "": title_ser = "N/D" genr = plugintools.find_single_match(info, "<font color='skyblue'>G.*?nero:</font></b>(.*?)<br>").decode('unicode_escape').encode('utf8').strip() if genr == "": genr = "N/D" prod_ser = plugintools.find_single_match(info, "color='skyblue'>Productora[^<]+</font></b>(.*?)<br>").decode('unicode_escape').encode('utf8').strip() if prod_ser == "": prod_ser = "N/D" pais_ser = plugintools.find_single_match(info, "color='skyblue'>Pa[^<]+</font></b>(.*?)<br>").decode('unicode_escape').encode('utf8').strip() if pais_ser == "": pais_ser = "N/D" time_ser = plugintools.find_single_match(info,"color='skyblue'>Duraci[^<]+</font></b>(.*?)<br>").decode('unicode_escape').encode('utf8').strip() if time_ser == "": time_ser = "N/D" temp = plugintools.find_multiple_matches(data, "<h2 style='cursor: hand; cursor: pointer;'>(.*?)</tbody></table>") n_temp = len(temp) sinopsis = plugintools.find_single_match(info,"<p>(.*?)</p>").decode('unicode_escape').encode('utf8') sinopsis = sinopsis.replace('<br/>','').replace('<br />','').replace('<br>','').strip() if sinopsis == "": sinopsis = "N/D" datamovie = { 'season': sc3+'[B]Temporadas Disponibles: [/B]'+ec3+sc+str(n_temp)+', '+ec, 'votes': sc3+'[B]Votos: [/B]'+ec3+sc+str(votos)+', '+ec, 'genre': sc3+'[B]Género: [/B]'+ec3+sc+str(genr)+', '+ec, 'studio': sc3+'[B]Productora: [/B]'+ec3+sc+str(prod_ser)+', '+ec, 'duration': sc3+'[B]Duración: [/B]'+ec3+sc+str(time_ser)+'[CR]'+ec, 'sinopsis': sc3+'[B]Sinopsis: [/B]'+ec3+sc+str(sinopsis)+ec} datamovie["plot"]=datamovie["season"]+datamovie["votes"]+datamovie["genre"]+datamovie["studio"]+datamovie["duration"]+datamovie["sinopsis"] plugintools.add_item(action="",title=sc5+"[B]"+title_ser+"[/B]"+ec5,url="",info_labels=datamovie,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) for item in temp: title_temp = plugintools.find_single_match(item, "<u>(.*?)</u></h2>").decode('unicode_escape').encode('utf8') cap_temp = plugintools.find_multiple_matches(item,"<tr><td>(.*?)</td>") plugintools.add_item(action="",title=sc2+'-- '+title_temp+' --'+ec2,url="",thumbnail=logo,info_labels=datamovie,plot=sinopsis,fanart=fondo,folder=False,isPlayable=False) for cap in cap_temp: url_cap = plugintools.find_single_match(cap, "<a href='([^']+)") url_cap = 'http://www.seriesblanco.com'+url_cap title_cap = plugintools.find_single_match(cap, "'>(.*?)</a>") plugintools.addPeli(action="seriesblanco1",title=sc+title_cap+ec,url=url_cap,thumbnail=logo,info_labels=datamovie,plot=sinopsis,fanart=fondo,folder=True,isPlayable=False)
def inkapelis_linker0(params): plugintools.log("[%s %s] Linker Inkapelis %s" % (addonName, addonVersion, repr(params))) ################## Params Library #################### url_list=[];option_list=[];source=params.get("extra") ###################################################### url = params.get("url") r = requests.get(url) data = r.content ####################################### Control for Linker ########################################## if source == "linker": plugintools.add_item(action="",url="",title="[COLOR lightblue][B]Linker Inkapelis"+version+"[/B][COLOR lightblue]"+sc4+"[I] *** By Aquilesserr/PalcoTV Team ***[/I]"+ec4,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) fondo = plugintools.find_single_match(data,'style="background-image: url\(([^)]+)\)').strip() if fondo =="": fondo = fanart logo = plugintools.find_single_match(data,'<div class="col-xs-2 poster"> <img src="([^"]+)"') if logo =="": logo = thumbnail bloq_info = plugintools.find_single_match(data,'<h2>Sinopsis</h2>(.*?)<span class="aa">Reparto</span>') title = plugintools.find_single_match(bloq_info,'<span class="aa">Título</span> <span class="ab">([^<]+)</span>').upper().strip() votos = plugintools.find_single_match(bloq_info,'<span class="aa">Calificación</span> <span class="ab">([^<]+)</span>').strip() if votos =="": punt_imdb = 'N/D' year = plugintools.find_single_match(bloq_info,'<span class="aa">Año de lanzamiento</span> <span class="ab">([^<]+)</span>').strip() if year =="": year = 'N/D' durac = plugintools.find_single_match(bloq_info,'<span class="aa">Duración</span> <span class="ab">([^<]+)</span>').strip() if durac =="": durac = 'N/D' genrfull = plugintools.find_multiple_matches(bloq_info,'rel="category tag">([^<]+)</a>') genr = inkapelis_genr(genrfull) sinopsis = plugintools.find_single_match(bloq_info,'<p class="trasnparente">(.*?)</p>').strip().replace('<a href=','').replace('</strong>','').replace('<strong>','') datamovie = { 'rating': sc3+'[B]Votos: [/B]'+ec3+sc+str(votos)+', '+ec, 'genre': sc3+'[B]Género: [/B]'+ec3+sc+str(genr)+', '+ec, 'year': sc3+'[B]Año: [/B]'+ec3+sc+str(year)+', '+ec, 'duration': sc3+'[B]Duración: [/B]'+ec3+sc+str(durac)+'[CR]'+ec, 'sinopsis': sc3+'[B]Sinopsis: [/B]'+ec3+sc+str(sinopsis)+ec} datamovie["plot"]=datamovie["rating"]+datamovie["genre"]+datamovie["year"]+datamovie["duration"]+datamovie["sinopsis"] plugintools.addPeli(action="",url="",title=sc5+"[B]"+title+"[/B]"+ec5,info_labels=datamovie,thumbnail=thumbnail,fanart=fanart,folder=False,isPlayable=False) ##################################################################################################### lang_embed1 = plugintools.find_single_match(data,'<a href="#embed1" data-toggle="tab">(.*?)</a>').replace('Español','ESP').replace('Latino','LAT').replace('Subtitulado','SUB').replace('Original','V.O.').strip() if lang_embed1 !="": quality_embed1 = plugintools.find_single_match(data,'id="embed1"><div class="calishow">(.*?)</div>') url_embed1 = plugintools.find_single_match(data,'id="embed1">.*?src="([^"]+)"') if 'ok.ru' in url_embed1: url_embed1 = 'http:'+url_embed1 server1 = video_analyzer(url_embed1) ####################################### Control for Linker ########################################## if source == "linker": titlefull1 = sc+server1.title()+ec+" "+sc2+' [I]['+lang_embed1+'][/I]'+ec2+" "+sc+" Video: "+ec+sc5+quality_embed1+ec5 plugintools.addPeli(action=server1,url=url_embed1,title=titlefull1,info_labels=datamovie,thumbnail=logo,fanart=fondo,folder=False,isPlayable=True) ##################################################################################################### ####################################### Control for Library ######################################### elif source == "library": titlefull1 = '[COLOR white]'+server1.title()+' '+'[/COLOR][COLOR lightyellow][I]['+lang_embed1.strip()+'] [/COLOR][COLOR lightblue]['+quality_embed1.replace(" Real ", "-")+'] [/COLOR][COLOR gold][Inkapelis][/I][/COLOR]' url_list.append(url_embed1);option_list.append(titlefull1) #################################################################################################### else: pass lang_embed2 = plugintools.find_single_match(data,'<a href="#embed2" data-toggle="tab">(.*?)</a>').replace('Español','ESP').replace('Latino','LAT').replace('Subtítulo','SUB -').replace('Original','V.O.').replace('Subtitulado','SUB').strip() if lang_embed2 !="": quality_embed2 = plugintools.find_single_match(data,'id="embed2"><div class="calishow">(.*?)</div>') url_embed2 = plugintools.find_single_match(data,'id="embed2">.*?src="([^"]+)"') if 'ok.ru' in url_embed2: url_embed2 = 'http:'+url_embed2 server2 = video_analyzer(url_embed2) ####################################### Control for Linker ########################################## if source == "linker": titlefull2 = sc+server2.title()+ec+" "+sc2+' [I]['+lang_embed2+'][/I]'+ec2+" "+sc+" Video: "+ec+sc5+quality_embed2+ec5 plugintools.addPeli(action=server2,url=url_embed2,title=titlefull2,info_labels=datamovie,thumbnail=logo,fanart=fondo,folder=False,isPlayable=True) ##################################################################################################### ####################################### Control for Library ######################################### elif source == "library": titlefull2 = '[COLOR white]'+server2.title()+' '+'[/COLOR][COLOR lightyellow][I]['+lang_embed2.strip()+'] [/COLOR][COLOR lightblue]['+quality_embed2.replace(" Real ", "-")+'] [/COLOR][COLOR gold][Inkapelis][/I][/COLOR]' url_list.append(url_embed2);option_list.append(titlefull2) ##################################################################################################### else: pass lang_embed3 = plugintools.find_single_match(data,'<a href="#embed3" data-toggle="tab">(.*?)</a>').replace('Español','ESP').replace('Latino','LAT').replace('Subtítulo','SUB -').replace('Subtitulado','SUB').replace('Original','V.O.').strip() if lang_embed3 !="": quality_embed3 = plugintools.find_single_match(data,'id="embed3"><div class="calishow">(.*?)</div>') url_embed3 = plugintools.find_single_match(data,'id="embed3">.*?src="([^"]+)"') if 'ok.ru' in url_embed3: url_embed3 = 'http:'+url_embed3 server3 = video_analyzer(url_embed3) ####################################### Control for Linker ########################################## if source == "linker": titlefull3 = sc+server3.title()+ec+" "+sc2+' [I]['+lang_embed3+'][/I]'+ec2+" "+sc+" Video: "+ec+sc5+quality_embed3+ec5 plugintools.addPeli(action=server3,url=url_embed3,title=titlefull3,info_labels=datamovie,thumbnail=logo,fanart=fondo,folder=False,isPlayable=True) ##################################################################################################### ####################################### Control for Library ######################################### elif source == "library": titlefull3 = '[COLOR white]'+server3.title()+' '+'[/COLOR][COLOR lightyellow][I]['+lang_embed3.strip()+'] [/COLOR][COLOR lightblue]['+quality_embed3.replace(" Real ", "-")+'] [/COLOR][COLOR gold][Inkapelis][/I][/COLOR]' url_list.append(url_embed3);option_list.append(titlefull3) ##################################################################################################### else: pass lang_embed4 = plugintools.find_single_match(data,'<a href="#embed4" data-toggle="tab">(.*?)</a>').replace('Español','ESP').replace('Latino','LAT').replace('Subtítulo','SUB -').replace('Subtitulado','SUB').replace('Original','V.O.').strip() if lang_embed4 !="": quality_embed4 = plugintools.find_single_match(data,'id="embed4"><div class="calishow">(.*?)</div>') url_embed4 = plugintools.find_single_match(data,'id="embed4">.*?src="([^"]+)"') if 'ok.ru' in url_embed4: url_embed4 = 'http:'+url_embed4 server4 = video_analyzer(url_embed4) ####################################### Control for Linker ########################################## if source == "linker": titlefull4 = sc+server4.title()+ec+" "+sc2+' [I]['+lang_embed4+'][/I]'+ec2+" "+sc+" Video: "+ec+sc5+quality_embed4+ec5 plugintools.addPeli(action=server4,url=url_embed4,title=titlefull4,info_labels=datamovie,thumbnail=logo,fanart=fondo,folder=False,isPlayable=True) ##################################################################################################### ####################################### Control for Library ######################################### elif source == "library": titlefull4 = '[COLOR white]'+server4.title()+' '+'[/COLOR][COLOR lightyellow][I]['+lang_embed4.strip()+'] [/COLOR][COLOR lightblue]['+quality_embed4.replace(" Real ", "-")+'] [/COLOR][COLOR gold][Inkapelis][/I][/COLOR]' url_list.append(url_embed4);option_list.append(titlefull4) ##################################################################################################### else: pass bloq_server = plugintools.find_single_match(data,'class="dlmt">Opciones Para Ver Online</h2>(.*?)class="dlmt">Opciones Para Descargar</h2>') serverfull = plugintools.find_multiple_matches(bloq_server,'<tr><td>(.*?)</tr>') for item in serverfull: lang = plugintools.find_single_match(item,'</span></td><td>([^<]+)</td><td>').replace('Español','ESP').replace('Latino','LAT').replace('Subtítulo','SUB -').replace('Subtitulado','SUB').replace('Original','V.O.').strip() quality = plugintools.find_single_match(item,'</span></td><td>.*?</td><td>([^<]+)</td>').strip() url_vid = plugintools.find_single_match(item,'<a href="([^"]+)"') if 'ok.ru' in url_vid: url_vid = 'http:'+url_vid server = video_analyzer(url_vid) ####################################### Control for Linker ########################################## if source == "linker": titlefull = sc+server.title()+ec+" "+sc2+" [I]["+lang+"][/I] "+ec2+" "+sc+"Video: "+ec+sc5+quality+ec5 plugintools.addPeli(action=server,url=url_vid,title=titlefull,info_labels=datamovie,thumbnail=logo,fanart=fondo,folder=False,isPlayable=True) ##################################################################################################### ####################################### Control for Library ######################################### elif source == "library": titlefull = '[COLOR white]'+server.title()+' '+'[/COLOR][COLOR lightyellow][I]['+lang.strip()+'] [/COLOR][COLOR lightblue]['+quality.replace(" Real ", "-")+'] [/COLOR][COLOR gold][Inkapelis][/I][/COLOR]' url_list.append(url_vid);option_list.append(titlefull) ##################################################################################################### if source == "library": return option_list,url_list
def seriesadicto_linker0(params): plugintools.log('[%s %s] Linker SeriesBlanco %s' % (addonName, addonVersion, repr(params))) plugintools.add_item(action="", url="", title="[COLOR lightblue][B]Linker Seriesadicto" + version + "[/B][COLOR lightblue]" + sc4 + "[I] *** By PalcoTV Team ***[/I]" + ec4, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) url = params.get("url") r = requests.get(url) data = r.content logo = referer + plugintools.find_single_match( data, '<img style="width: 240px; height: 360px;" src="([^"]+)"') if logo == "": logo = thumbnail title = plugintools.find_single_match(data, '<h1>(.*?)</h1>').strip() n_temp = plugintools.find_multiple_matches( data, '<i class="glyphicon"></i(.*?)</tbody>') try: sinopsis = plugintools.find_single_match(data, '<p>(.*?)</p>').replace( '<h3>', sc3 + '[B]').replace('</h3>', ':[/B]' + ec3) except: sinopsis = plugintools.find_single_match(data, '<p>(.*?)</p>').replace( '<h3>', '[B]').replace('</h3>', ':[/B]') datamovie = { 'season': sc3 + '[B]Temporadas Disponibles: [/B]' + ec3 + sc + str(len(n_temp)) + '[CR]' + ec, 'sinopsis': sc3 + '[B]Sinopsis: [/B]' + ec3 + sc + str(sinopsis) + ec } datamovie["plot"] = datamovie["season"] + datamovie["sinopsis"] plugintools.addPeli(action="", url="", title=sc5 + "[B]" + title + "[/B]" + ec5, info_labels=datamovie, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) #plugintools.add_item(action="",url="",title=sc5+str(len(n_temp))+" Temporadas disponibles"+ec5,thumbnail=logo,fanart=fanart,folder=False,isPlayable=False) for temp in n_temp: name_temp = plugintools.find_single_match(temp, '>(.*?)</a>').strip() plugintools.add_item(action="", url="", title=sc2 + '-- ' + name_temp + ' --' + ec2, thumbnail=logo, fanart=fanart, folder=False, isPlayable=False) capis = plugintools.find_multiple_matches( temp, '<td class="sape">(.*?)</tr>') for item in capis: url_cap = plugintools.find_single_match(item, '<a href="([^"]+)"') url_cap = referer + url_cap title_capi = plugintools.find_single_match( item, 'class="color4">(.*?)</a>') title_capi = sc + title_capi.strip() + ec plugintools.add_item(action="seriesadicto_linker_epis", url=url_cap, title=title_capi, info_labels=datamovie, thumbnail=logo, fanart=fanart, folder=True, isPlayable=False)
def pelisadicto_linker0(params): plugintools.log("[%s %s] linker Pelisadicto %s" % (addonName, addonVersion, repr(params))) ##################### Params Library ########################### url_list = [] option_list = [] source = params.get("extra") ################################################################ url = params.get("url") r = requests.get(url) data = r.content ####################################### Control for Linker ########################################## if source == "linker": plugintools.add_item(action="", url="", title="[COLOR lightblue][B]Linker Pelisadicto" + version + "[/B][COLOR lightblue]" + sc4 + "[I] *** By PalcoTV Team ***[/I]" + ec4, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) logo = 'http://pelisadicto.com' + plugintools.find_single_match( data, '<img style="width.*?src="([^"]+)"') if logo == "": logo = thumbnail title = plugintools.find_single_match( data, '<meta property="og:title" content="(.*?)\(').strip() if title == "": title = plugintools.find_single_match( data, '<meta property="og:title" content="(.*?)"') year = plugintools.find_single_match( data, '<meta property="og:title" content=".*?\((.*?)\)') bloq_genr = plugintools.find_single_match(data, '<p>Genero(.*?)</p>') genrfull = plugintools.find_multiple_matches(bloq_genr, 'title=".*?">(.*?)<') genr = pelisadicto_genr(genrfull) sinopsis = plugintools.find_single_match( data, '<p>(.*?)</p>').strip().replace('\n', '') datamovie = { 'genre': sc3 + '[B]Género: [/B]' + ec3 + sc + str(genr) + ', ' + ec, 'year': sc3 + '[B]Año: [/B]' + ec3 + sc + str(year) + '[CR]' + ec, 'sinopsis': sc3 + '[B]Sinopsis: [/B]' + ec3 + sc + str(sinopsis) + ec } datamovie["plot"] = datamovie["genre"] + datamovie["year"] + datamovie[ "sinopsis"] plugintools.addPeli(action="", url="", title=sc5 + "[B]" + title + "[/B]" + ec5, info_labels=datamovie, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) ##################################################################################################### bloq_link = plugintools.find_single_match(data, '<tbody>(.*?)</table>') link = plugintools.find_multiple_matches(bloq_link, '<tr>(.*?)</tr>') for item in link: lang = plugintools.find_single_match(item, '<td><img src="([^"]+)"') if '1.png' in lang: lang = sc2 + '[I][ESP][/I]' + ec2 if '2.png' in lang: lang = sc2 + '[I][LAT][/I]' + ec2 if '3.png' in lang: lang = sc2 + '[I][ENG-SUB][/I]' + ec2 if '4.png' in lang: lang = sc2 + '[I][ENG][/I]' + ec2 quality = plugintools.find_single_match( item, '<td><img src=".*?</td>\s+<td>(.*?)</td>') url_server = plugintools.find_single_match(item, ' href="([^"]+)"') server = video_analyzer(url_server) ####################################### Control for Linker ########################################## if source == "linker": titlefull = sc + server.title( ) + ec + " " + lang + " " + sc + "Video: " + ec + sc5 + quality + ec5 plugintools.addPeli(action=server, url=url_server, title=titlefull, info_labels=datamovie, thumbnail=logo, fanart=fanart, folder=False, isPlayable=True) ##################################################################################################### ####################################### Control for Library ######################################### elif source == "library": plugintools.log("server= " + server) plugintools.log("lang= " + lang) plugintools.log("quality= " + quality) titlefull = '[COLOR white]' + server.title( ) + ' ' + '[/COLOR]' + lang.replace( "palegreen", "lightyellow" ).strip( ) + ' [COLOR lightgreen][I][' + quality + '] [/COLOR][COLOR gold][HDFull][/I][/COLOR]' plugintools.log("titlefull= " + titlefull) plugintools.log("url_server= " + url_server) url_list.append(url_server) option_list.append(titlefull) ##################################################################################################### if params.get("extra") == "library": return option_list, url_list
def inkapelis_linker0(params): plugintools.log("[%s %s] Inkapelis %s" % (addonName, addonVersion, repr(params))) plugintools.add_item(action="", url="", title="[COLOR lightblue][B] Inkapelis" + version + "[/B][COLOR lightblue]" + sc4 + "[I][/I]" + ec4, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) url = params.get("url") r = requests.get(url) data = r.content fondo = plugintools.find_single_match( data, 'style="background-image: url\(([^)]+)\)').strip() if fondo == "": fondo = fanart logo = plugintools.find_single_match( data, '<div class="col-xs-2 poster"> <img src="([^"]+)"') if logo == "": logo = thumbnail bloq_info = plugintools.find_single_match( data, '<h2>Sinopsis</h2>(.*?)<span class="aa">Reparto</span>') title = plugintools.find_single_match( bloq_info, '<span class="aa">Título</span> <span class="ab">([^<]+)</span>' ).upper().strip() votos = plugintools.find_single_match( bloq_info, '<span class="aa">Calificación</span> <span class="ab">([^<]+)</span>' ).strip() if votos == "": punt_imdb = 'N/D' year = plugintools.find_single_match( bloq_info, '<span class="aa">Año de lanzamiento</span> <span class="ab">([^<]+)</span>' ).strip() if year == "": year = 'N/D' durac = plugintools.find_single_match( bloq_info, '<span class="aa">Duración</span> <span class="ab">([^<]+)</span>' ).strip() if durac == "": durac = 'N/D' genrfull = plugintools.find_multiple_matches( bloq_info, 'rel="category tag">([^<]+)</a>') genr = inkapelis_genr(genrfull) sinopsis = plugintools.find_single_match( bloq_info, '<p class="trasnparente">(.*?)</p>').strip().replace( '<a href=', '').replace('</strong>', '').replace('<strong>', '') datamovie = { 'rating': sc3 + '[B]Votos: [/B]' + ec3 + sc + str(votos) + ', ' + ec, 'genre': sc3 + '[B]Género: [/B]' + ec3 + sc + str(genr) + ', ' + ec, 'year': sc3 + '[B]Año: [/B]' + ec3 + sc + str(year) + ', ' + ec, 'duration': sc3 + '[B]Duración: [/B]' + ec3 + sc + str(durac) + '[CR]' + ec, 'sinopsis': sc3 + '[B]Sinopsis: [/B]' + ec3 + sc + str(sinopsis) + ec } datamovie["plot"] = datamovie["rating"] + datamovie["genre"] + datamovie[ "year"] + datamovie["duration"] + datamovie["sinopsis"] plugintools.addPeli(action="", url="", title=sc5 + "[B]" + title + "[/B]" + ec5, info_labels=datamovie, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) lang_embed1 = plugintools.find_single_match( data, '<a href="#embed1" data-toggle="tab">(.*?)</a>') if lang_embed1 != "": quality_embed1 = plugintools.find_single_match( data, 'id="embed1"><div class="calishow">(.*?)</div>') url_embed1 = plugintools.find_single_match( data, 'id="embed1">.*?src="([^"]+)"') server1 = video_analyzer(url_embed1) titlefull1 = sc + server1.title( ) + ec + " " + sc2 + ' [I][' + lang_embed1 + '][/I]' + ec2 + " " + sc + " Video: " + ec + sc5 + quality_embed1 + ec5 plugintools.addPeli(action=server1, url=url_embed1, title=titlefull1, info_labels=datamovie, thumbnail=logo, fanart=fondo, folder=False, isPlayable=True) else: pass lang_embed2 = plugintools.find_single_match( data, '<a href="#embed2" data-toggle="tab">(.*?)</a>') if lang_embed2 != "": quality_embed2 = plugintools.find_single_match( data, 'id="embed2"><div class="calishow">(.*?)</div>') url_embed2 = plugintools.find_single_match( data, 'id="embed2">.*?src="([^"]+)"') server2 = video_analyzer(url_embed2) titlefull2 = sc + server2.title( ) + ec + " " + sc2 + ' [I][' + lang_embed2 + '][/I]' + ec2 + " " + sc + " Video: " + ec + sc5 + quality_embed2 + ec5 plugintools.addPeli(action=server2, url=url_embed2, title=titlefull2, info_labels=datamovie, thumbnail=logo, fanart=fondo, folder=False, isPlayable=True) else: pass lang_embed3 = plugintools.find_single_match( data, '<a href="#embed3" data-toggle="tab">(.*?)</a>') if lang_embed3 != "": quality_embed3 = plugintools.find_single_match( data, 'id="embed3"><div class="calishow">(.*?)</div>') url_embed3 = plugintools.find_single_match( data, 'id="embed3">.*?src="([^"]+)"') server3 = video_analyzer(url_embed3) titlefull3 = sc + server3.title( ) + ec + " " + sc2 + ' [I][' + lang_embed3 + '][/I]' + ec2 + " " + sc + " Video: " + ec + sc5 + quality_embed3 + ec5 plugintools.addPeli(action=server3, url=url_embed3, title=titlefull3, info_labels=datamovie, thumbnail=logo, fanart=fondo, folder=False, isPlayable=True) else: pass lang_embed4 = plugintools.find_single_match( data, '<a href="#embed4" data-toggle="tab">(.*?)</a>') if lang_embed4 != "": quality_embed4 = plugintools.find_single_match( data, 'id="embed4"><div class="calishow">(.*?)</div>') url_embed4 = plugintools.find_single_match( data, 'id="embed4">.*?src="([^"]+)"') server4 = video_analyzer(url_embed4) titlefull4 = sc + server4.title( ) + ec + " " + sc2 + ' [I][' + lang_embed4 + '][/I]' + ec2 + " " + sc + " Video: " + ec + sc5 + quality_embed4 + ec5 plugintools.addPeli(action=server4, url=url_embed4, title=titlefull4, info_labels=datamovie, thumbnail=logo, fanart=fondo, folder=False, isPlayable=True) else: pass bloq_server = plugintools.find_single_match( data, 'class="dlmt">Opciones Para Ver Online</h2>(.*?)class="dlmt">Opciones Para Descargar</h2>' ) serverfull = plugintools.find_multiple_matches(bloq_server, '<tr><td>(.*?)</tr>') for item in serverfull: lang = plugintools.find_single_match( item, '</span></td><td>([^<]+)</td><td>').strip() lang = '[' + lang + ']' quality = plugintools.find_single_match( item, '</span></td><td>.*?</td><td>([^<]+)</td>').strip() url_vid = plugintools.find_single_match(item, '<a href="([^"]+)"') server = video_analyzer(url_vid) titlefull = sc + server.title( ) + ec + " " + sc2 + " [I]" + lang + "[/I] " + ec2 + " " + sc + "Video: " + ec + sc5 + quality + ec5 plugintools.addPeli(action=server, url=url_vid, title=titlefull, info_labels=datamovie, thumbnail=logo, fanart=fondo, folder=False, isPlayable=True)
def animeflv_videoserie(params): plugintools.log("[%s %s] AnimeFLV %s" % (addonName, addonVersion, repr(params))) url = params.get("url") genr = params.get("extra") headers = { 'Host': 'animeflv.net', 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0', 'Referer': web } r = requests.get(url, headers=headers) data = r.content bloq_info = plugintools.find_single_match( data, '<div class="anime_info">(.*?)<div class="clear"></div>') logo = plugintools.find_single_match(bloq_info, '<img src="([^"]+)"') if logo == "": logo = thumbnail title = plugintools.find_single_match(bloq_info, '<h1>([^<]+)</h1>').upper().strip() title = title.replace('á', 'á').replace('é', 'é').replace( 'í', 'í').replace('ó', 'ó').replace('ú', 'ú') title = title.replace('&', '').replace(''', '').replace('ñ', 'ñ') estado = plugintools.find_single_match( bloq_info, '<span class="serie_estado.*?">([^<]+)</span>').strip().replace( 'ó', 'ó') if estado == "": estado = 'N/D' year = plugintools.find_single_match( bloq_info, '<li><b>Fecha de Inicio:</b>([^<]+)</li>').strip() if year == "": year = 'N/D' sinopsis = plugintools.find_single_match( bloq_info, '<div class="sinopsis">(.*?)</div>').strip() sinopsis = sinopsis.replace('“', '').replace('”', '').replace( '"', '').replace('ñ', 'ñ').replace(''', '') sinopsis = sinopsis.replace('&', '').replace('á', 'á').replace( 'é', 'é').replace('í', 'í').replace('ó', 'ó').replace('ú', 'ú') titlefull = sc5 + '[B]' + title + '[/B]' + sc + ' Estado: ' + ec + sc3 + '[I](' + estado + ')[/I]' + ec3 datamovie = { 'genre': sc3 + '[B]Género: [/B]' + ec3 + sc + str(genr) + ', ' + ec, 'year': sc3 + '[B]Fecha de Inicio: [/B]' + ec3 + sc + str(year) + '[CR]' + ec, 'sinopsis': sc3 + '[B]Sinopsis: [/B]' + ec3 + sc + str(sinopsis) + ec } datamovie["plot"] = datamovie["genre"] + datamovie["year"] + datamovie[ "sinopsis"] bloq_epis = plugintools.find_single_match( bloq_info, '<ul class="anime_episodios"(.*?)</ul>') epis = plugintools.find_multiple_matches(bloq_epis, '<a href="(.*?)">(.*?)</a></li>') datamovie_pass = genr + '|' + year + '|' + sinopsis #Pasando los datos a animeflv_resolverlink if len(epis) > 1: plugintools.add_item(action="", url="", title="[COLOR lightblue][B]AnimeFLV" + version + "[/B][COLOR lightblue]" + sc4 + "[I] [/I]" + ec4, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) plugintools.add_item(action="", url="", title=titlefull, info_labels=datamovie, thumbnail=thumbnail, fanart=fanart, folder=False, isPlayable=False) for item in epis: try: url_vid = item[0] url_vid = 'http://animeflv.net' + url_vid title = item[1] title = title.replace('á', 'á').replace( 'é', 'é').replace('í', 'í').replace('ó', 'ó').replace('ú', 'ú') title = title.replace('&', '').replace(''', '').replace('ñ', 'ñ') plugintools.addPeli(action="animeflv_resolverlink", url=url_vid, title=sc + title + ec, info_labels=datamovie, extra=datamovie_pass, thumbnail=logo, fanart=fanart, folder=True, isPlayable=False) except: pass #################### Control para OVAS, saltando a animeflv_resolverlink si dispone de un solo link ######################################################## elif len(epis) <= 1: try: epis = plugintools.find_single_match( bloq_epis, '<a href="(.*?)">(.*?)</a></li>') url_vid = str(epis[0]) url_vid = 'http://animeflv.net' + url_vid title = str(epis[-1]) params["url"] = url_vid params["extra"] = datamovie_pass params["thumbnail"] = logo params["title"] = title #Cogiendo los parametros necesarios animeflv_resolverlink(params) except: pass