def getadfly(item): logger.info("[gaypornshare.py] play") itemlist=[] location = item.url if item.server=="adfly": # Extrae la URL de saltar el anuncio en adf.ly if location.startswith("http://adf"): # Averigua el enlace from servers import adfly location = adfly.get_long_url(location) logger.info("location="+location) from servers import servertools itemlist=servertools.find_video_items(data=location) for videoitem in itemlist: videoitem.channel=__channel__ videoitem.folder=False else: itemlist.append(item) return itemlist
def findvideo(item): logger.info("streamondemand.animeinstreaming play") itemlist = [] url = item.url if 'adf.ly' in item.url: url = adfly.get_long_url(item.url) if 'animeforce' in url: url = url.split('&')[0] headers.append(['Referer', item.url]) data = scrapertools.cache_page(url, headers=headers) patron = """<source\s*src=(?:"|')([^"']+?)(?:"|')\s*type=(?:"|')video/mp4(?:"|')>""" matches = re.compile(patron, re.DOTALL).findall(data) headers.append(['Referer', url]) for video in matches: itemlist.append( Item(channel=__channel__, action="play", title=item.title, url=video + '|' + urllib.urlencode(dict(headers)), folder=False)) else: itemlist.extend(servertools.find_video_items(data=url)) for videoitem in itemlist: videoitem.title = item.title + videoitem.title videoitem.fulltitle = item.fulltitle videoitem.show = item.show videoitem.thumbnail = item.thumbnail videoitem.channel = __channel__ return itemlist
def play(item): logger.info("[filmenoi.py] play") itemlist=[] if item.server=="linkbucks": logger.info("Es linkbucks") # Averigua el enlace from servers import linkbucks location = linkbucks.get_long_url(item.url) logger.info("location="+location) # Extrae la URL de saltar el anuncio en adf.ly if location.startswith("http://adf"): # Averigua el enlace from servers import adfly location = adfly.get_long_url(location) logger.info("location="+location) from servers import servertools itemlist=servertools.find_video_items(data=location) for videoitem in itemlist: videoitem.channel=__channel__ videoitem.folder=False else: itemlist.append(item) return itemlist
def play(item): logger.info("[xo.py] play") itemlist=[] if item.server=="linkbucks": logger.info("Es linkbucks") # Averigua el enlace from servers import linkbucks location = linkbucks.get_long_url(item.url) logger.info("location="+location) # Extrae la URL de saltar el anuncio en adf.ly if location.startswith("http://adf"): # Averigua el enlace from servers import adfly location = adfly.get_long_url(location) logger.info("location="+location) from servers import servertools itemlist=servertools.find_video_items(data=location) for videoitem in itemlist: videoitem.channel=__channel__ videoitem.folder=False else: itemlist.append(item) return itemlist
def findvideo(item): logger.info("streamondemand.animeinstreaming play") itemlist = [] url = item.url if '.ly' in item.url: url = adfly.get_long_url(item.url) if 'animeforce' in url: url = url.split('&')[0] headers.append(['Referer', item.url]) data = scrapertools.cache_page(url, headers=headers) patron = """<source\s*src=(?:"|')([^"']+?)(?:"|')\s*type=(?:"|')video/mp4(?:"|')>""" matches = re.compile(patron, re.DOTALL).findall(data) headers.append(['Referer', url]) for video in matches: itemlist.append(Item(channel=__channel__, action="play", title=item.title, url=video + '|' + urllib.urlencode(dict(headers)), folder=False)) else: itemlist.extend(servertools.find_video_items(data=url)) for videoitem in itemlist: videoitem.title = item.title + videoitem.title videoitem.fulltitle = item.fulltitle videoitem.show = item.show videoitem.thumbnail = item.thumbnail videoitem.channel = __channel__ return itemlist
def play(item): logger.info("[somosmovies.py] play(item.url="+item.url+")") itemlist=[] if "bit.ly" in item.url: logger.info("Acortador bit.ly") location = scrapertools.get_header_from_response(item.url,header_to_get="location") logger.info("[somosmovies.py] location="+location) item.url = location return play(item) if "goo.gl" in item.url: logger.info("Acortador goo.gl") location = scrapertools.get_header_from_response(item.url,header_to_get="location") item.url = location return play(item) #adf.ly elif "j.gs" in item.url: logger.info("Acortador j.gs (adfly)") from servers import adfly location = adfly.get_long_url(item.url) item.url = location return play(item) else: from servers import servertools itemlist=servertools.find_video_items(data=item.url) for videoitem in itemlist: videoitem.channel=__channel__ videoitem.folder=False return itemlist
def findvideos(item): logger.info("streamondemand.animeforce findvideos") itemlist = [] if item.extra: data = httptools.downloadpage(item.url, headers=headers).data blocco = scrapertools.get_match(data, r'%s(.*?)</tr>' % item.extra) scrapedurl = scrapertools.find_single_match( blocco, r'<a href="([^"]+)"[^>]+>') url = scrapedurl else: url = item.url if 'adf.ly' in url: url = adfly.get_long_url(url) elif 'bit.ly' in url: url = httptools.downloadpage( url, only_headers=True, follow_redirects=False).headers.get("location") if 'animeforce' in url: headers.append(['Referer', item.url]) data = httptools.downloadpage(url, headers=headers).data itemlist.extend(servertools.find_video_items(data=data)) for videoitem in itemlist: videoitem.title = item.title + videoitem.title videoitem.fulltitle = item.fulltitle videoitem.show = item.show videoitem.thumbnail = item.thumbnail videoitem.channel = __channel__ url = url.split('&')[0] data = httptools.downloadpage(url, headers=headers).data patron = """<source\s*src=(?:"|')([^"']+?)(?:"|')\s*type=(?:"|')video/mp4(?:"|')>""" matches = re.compile(patron, re.DOTALL).findall(data) headers.append(['Referer', url]) for video in matches: itemlist.append( Item(channel=__channel__, action="play", title=item.title, thumbnail=item.thumbnail, url=video + '|' + urllib.urlencode(dict(headers)), folder=False)) else: itemlist.extend(servertools.find_video_items(data=url)) for videoitem in itemlist: videoitem.title = item.title + videoitem.title videoitem.fulltitle = item.fulltitle videoitem.show = item.show videoitem.thumbnail = item.thumbnail videoitem.channel = __channel__ return itemlist
def play(item): logger.info("streamondemand.iluvanime play") itemlist = [] data = adfly.get_long_url(item.url) head = [['User-Agent','Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0'],['Referer', item.url]] url=scrapertools.cache_page(data, headers=head) patron='<source.*?src="(.*?)".*?type=\'video/mp4\'' matches=re.compile(patron, re.DOTALL).findall(url) for video in matches: itemlist.append(Item(channel=__channel__,action="play", title=item.title,url=video)) return itemlist
def findvideos(item): logger.info("pelisalacarta.aquitorrent findvideos") itemlist = [] data = scrapertools.cache_page(item.url) data = re.sub(r"\n|\r|\t|\s{2}| ","",data) # Torrent en zip patron = '<h1 class="post-title entry-title">([^<]+)</h1>.*?</b><br><br>.*?' patron+= 'href="(.*?\.zip)".*?' matches = re.compile(patron,re.DOTALL).findall(data) if len(matches)>0: for scrapedtitle, scrapedzip in matches: # Arregla la url y extrae el torrent scrapedtorrent = unzip(fix_url(scrapedzip)) itemlist.append( Item(channel=item.channel, title =item.title+"[COLOR red][B] [magnet][/B][/COLOR]" , url=scrapedtorrent, action="play", server="torrent", thumbnail=item.thumbnail, fanart=item.extra , folder=False) ) #Vamos con el normal patron = '<h1 class="post-title entry-title">([^<]+)</h1>.*?' patron+= 'href="(magnet[^"]+)".*?' matches = re.compile(patron,re.DOTALL).findall(data) for scrapedtitle, scrapedmagnet in matches: if "Docus" in item.url or "F1" in item.url or "MotoGP" in item.url or "Mundia" in item.url: fanart= item.fanart else: fanart = item.extra title_tag="[COLOR yellow][B]Ver--[/B][/COLOR]" item.title=item.title.strip() itemlist.append( Item(channel=item.channel, title =title_tag+item.title+"[COLOR red][B] [magnet][/B][/COLOR]" , url=scrapedmagnet, action="play", server="torrent", thumbnail=item.thumbnail, fanart=fanart , folder=False) ) #nueva variacion if len(itemlist) == 0: patron = '<h1 class="post-title entry-title">([^<]+)</h1>.*?<br><br>.*?' patron+= 'href="([^"]+)".*?' matches = re.compile(patron,re.DOTALL).findall(data) for scrapedtitle, scrapedtorrent in matches: if "adf.ly" in scrapedtorrent: from servers import adfly scrapedtorrent = adfly.get_long_url(scrapedtorrent) itemlist.append( Item(channel=item.channel, title =scrapedtitle+"[COLOR green][B] [magnet][/B][/COLOR]", url=scrapedtorrent, action="play", server="torrent", thumbnail=item.thumbnail, fanart=item.extra , folder=False) ) return itemlist
def play( item ): logger.info( "[asiansubita.py] play" ) data = adfly.get_long_url( item.url ) itemlist = servertools.find_video_items( data=data ) for videoitem in itemlist: videoitem.title = item.show videoitem.fulltitle = item.fulltitle videoitem.thumbnail = item.thumbnail videoitem.channel = __channel__ return itemlist
def play(item): logger.info("[OcchioDelWrestling.py]==> play") data = adfly.get_long_url(item.url) itemlist = servertools.find_video_items(data=data) for videoitem in itemlist: videoitem.title = item.show videoitem.fulltitle = item.fulltitle videoitem.show = item.show videoitem.thumbnail = item.thumbnail videoitem.channel = __channel__ return itemlist
def play(item): logger.info("[asiansubita.py] play") data = adfly.get_long_url(item.url) itemlist = servertools.find_video_items(data=data) for videoitem in itemlist: videoitem.title = item.show videoitem.fulltitle = item.fulltitle videoitem.thumbnail = item.thumbnail videoitem.channel = __channel__ return itemlist
def findvideos(item): logger.info("streamondemand.animeforce findvideos") itemlist = [] if item.extra: data = scrapertools.cache_page(item.url, headers=headers) blocco = scrapertools.get_match(data, r'%s(.*?)</tr>' % item.extra) scrapedurl = scrapertools.find_single_match(blocco, r'<a href="([^"]+)"[^>]+>') url = scrapedurl else: url = item.url if 'adf.ly' in url: url = adfly.get_long_url(url) elif 'bit.ly' in url: url = scrapertools.getLocationHeaderFromResponse(url) if 'animeforce' in url: headers.append(['Referer', item.url]) data = scrapertools.cache_page(url, headers=headers) itemlist.extend(servertools.find_video_items(data=data)) for videoitem in itemlist: videoitem.title = item.title + videoitem.title videoitem.fulltitle = item.fulltitle videoitem.show = item.show videoitem.thumbnail = item.thumbnail videoitem.channel = __channel__ url = url.split('&')[0] data = scrapertools.cache_page(url, headers=headers) patron = """<source\s*src=(?:"|')([^"']+?)(?:"|')\s*type=(?:"|')video/mp4(?:"|')>""" matches = re.compile(patron, re.DOTALL).findall(data) headers.append(['Referer', url]) for video in matches: itemlist.append(Item(channel=__channel__, action="play", title=item.title, url=video + '|' + urllib.urlencode(dict(headers)), folder=False)) else: itemlist.extend(servertools.find_video_items(data=url)) for videoitem in itemlist: videoitem.title = item.title + videoitem.title videoitem.fulltitle = item.fulltitle videoitem.show = item.show videoitem.thumbnail = item.thumbnail videoitem.channel = __channel__ return itemlist
def play(item): logger.info("pelisalacarta.yaske play item.url="+item.url) itemlist=[] if item.url.startswith("http://adf.ly"): from servers import adfly item.url = adfly.get_long_url(item.url) data = scrapertools.downloadpageGzip(item.url) #logger.info("data="+data) data = data.replace("http://www.yaske.net/archivos/allmyvideos/play.php?v=","http://allmyvideos.net/") itemlist = servertools.find_video_items(data=data) for newitem in itemlist: newitem.fulltitle = item.fulltitle return itemlist
def play(item): logger.info("[cineonlineeu.py] play") itemlist = [] if item.server == "linkbucks": from servers import linkbucks location = linkbucks.get_long_url(item.url) elif item.server == "adfly": from servers import adfly location = adfly.get_long_url(item.url) else: location = item.url from servers import servertools itemlist = servertools.find_video_items(data=location) for videoitem in itemlist: videoitem.channel = __channel__ videoitem.folder = False return itemlist
def play(item): logger.info("[cineonlineeu.py] play") itemlist=[] if item.server=="linkbucks": from servers import linkbucks location = linkbucks.get_long_url(item.url) elif item.server=="adfly": from servers import adfly location = adfly.get_long_url(item.url) else: location = item.url from servers import servertools itemlist=servertools.find_video_items(data=location) for videoitem in itemlist: videoitem.channel=__channel__ videoitem.folder=False return itemlist
def play(item): logger.info("[tucinecom.py] play") itemlist=[] # Extrae la URL de saltar el anuncio en adf.ly if item.url.startswith("http://adf"): # Averigua el enlace from servers import adfly location = adfly.get_long_url(item.url) logger.info("location="+location) from servers import servertools itemlist=servertools.find_video_items(data=location) for videoitem in itemlist: videoitem.channel=__channel__ videoitem.folder=False else: itemlist.append(Item(url=item.url, server=item.server)) return itemlist
def play(item): logger.info("pelisalacarta.yaske play item.url=" + item.url) itemlist = [] if item.url.startswith("http://adf.ly"): from servers import adfly item.url = adfly.get_long_url(item.url) data = scrapertools.downloadpageGzip(item.url) #logger.info("data="+data) data = data.replace( "http://www.yaske.net/archivos/allmyvideos/play.php?v=", "http://allmyvideos.net/") itemlist = servertools.find_video_items(data=data) for newitem in itemlist: newitem.fulltitle = item.fulltitle return itemlist
def findvideos(item): logger.info("pelisalacarta.aquitorrent findvideos") itemlist = [] data = scrapertools.cache_page(item.url) data = re.sub(r"\n|\r|\t|\s{2}| ", "", data) # Torrent en zip patron = '<h1 class="post-title entry-title">([^<]+)</h1>.*?</b><br><br>.*?' patron += 'href="(.*?\.zip)".*?' matches = re.compile(patron, re.DOTALL).findall(data) if len(matches) > 0: for scrapedtitle, scrapedzip in matches: # Arregla la url y extrae el torrent scrapedtorrent = unzip(fix_url(scrapedzip)) itemlist.append( Item(channel=item.channel, title=item.title + "[COLOR red][B] [magnet][/B][/COLOR]", url=scrapedtorrent, action="play", server="torrent", thumbnail=item.thumbnail, fanart=item.extra, folder=False)) #Vamos con el normal patron = '<h1 class="post-title entry-title">([^<]+)</h1>.*?' patron += 'href="(magnet[^"]+)".*?' matches = re.compile(patron, re.DOTALL).findall(data) for scrapedtitle, scrapedmagnet in matches: if "Docus" in item.url or "F1" in item.url or "MotoGP" in item.url or "Mundia" in item.url: fanart = item.fanart else: fanart = item.extra title_tag = "[COLOR yellow][B]Ver--[/B][/COLOR]" item.title = item.title.strip() itemlist.append( Item(channel=item.channel, title=title_tag + item.title + "[COLOR red][B] [magnet][/B][/COLOR]", url=scrapedmagnet, action="play", server="torrent", thumbnail=item.thumbnail, fanart=fanart, folder=False)) #nueva variacion if len(itemlist) == 0: patron = '<h1 class="post-title entry-title">([^<]+)</h1>.*?<br><br>.*?' patron += 'href="([^"]+)".*?' matches = re.compile(patron, re.DOTALL).findall(data) for scrapedtitle, scrapedtorrent in matches: if "adf.ly" in scrapedtorrent: from servers import adfly scrapedtorrent = adfly.get_long_url(scrapedtorrent) itemlist.append( Item(channel=item.channel, title=scrapedtitle + "[COLOR green][B] [magnet][/B][/COLOR]", url=scrapedtorrent, action="play", server="torrent", thumbnail=item.thumbnail, fanart=item.extra, folder=False)) return itemlist