diff --git a/plugin.video.alfa/channels/LIKUOO.json b/plugin.video.alfa/channels/LIKUOO.json new file mode 100644 index 00000000..593db20f --- /dev/null +++ b/plugin.video.alfa/channels/LIKUOO.json @@ -0,0 +1,16 @@ +{ + "id": "LIKUOO", + "name": "LIKUOO", + "active": true, + "adult": true, + "language": ["*"], + "thumbnail": "https://likuoo.video/files_static/images/logo.jpg", + "banner": "", + "categories": [ + "adult" + ], + "settings": [ + + ] +} + diff --git a/plugin.video.alfa/channels/LIKUOO.py b/plugin.video.alfa/channels/LIKUOO.py new file mode 100644 index 00000000..a293fed5 --- /dev/null +++ b/plugin.video.alfa/channels/LIKUOO.py @@ -0,0 +1,88 @@ +# -*- coding: utf-8 -*- +#------------------------------------------------------------ +import urlparse,urllib2,urllib,re +import os, sys +from platformcode import config, logger +from core import scrapertools +from core.item import Item +from core import servertools +from core import httptools +from core import tmdb +from core import jsontools + +host = 'http://www.likuoo.video' + + +def mainlist(item): + logger.info() + itemlist = [] + itemlist.append( Item(channel=item.channel, title="Ultimos" , action="peliculas", url=host)) + itemlist.append( Item(channel=item.channel, title="Categorias" , action="categorias", url=host + "/all-channels/")) + itemlist.append( Item(channel=item.channel, title="Buscar", action="search")) + return itemlist + + +def search(item, texto): + logger.info() + texto = texto.replace(" ", "+") + item.url = host + "/search/?s=%s" % texto + try: + return peliculas(item) + except: + import sys + for line in sys.exc_info(): + logger.error("%s" % line) + return [] + + +def categorias(item): + logger.info() + itemlist = [] + data = httptools.downloadpage(item.url).data + data = re.sub(r"\n|\r|\t| |
", "", data) + patron = '
.*?", "", data) + patron = '
.*?.*?src="(.*?)".*?
(.*?)
' + matches = re.compile(patron,re.DOTALL).findall(data) + for scrapedurl,scrapedtitle,scrapedthumbnail,scrapedtime in matches: + url = urlparse.urljoin(item.url,scrapedurl) + scrapedtime = scrapedtime.replace("m", ":").replace("s", " ") + title = "[COLOR yellow]" + scrapedtime + "[/COLOR] " +scrapedtitle + contentTitle = title + thumbnail = "https:" + scrapedthumbnail + plot = "" + year = "" + itemlist.append( Item(channel=item.channel, action="play" , title=title , url=url, thumbnail=thumbnail, plot=plot, contentTitle = contentTitle, infoLabels={'year':year} )) + next_page_url = scrapertools.find_single_match(data,'...
') + if next_page_url!="": + next_page_url = urlparse.urljoin(item.url,next_page_url) + itemlist.append( Item(channel=item.channel , action="peliculas" , title="Página Siguiente >>" , text_color="blue", url=next_page_url , folder=True) ) + return itemlist + + +def play(item): + logger.info() + data = scrapertools.cachePage(item.url) + itemlist = servertools.find_video_items(data=data) + + for videoitem in itemlist: + videoitem.title = item.fulltitle + videoitem.fulltitle = item.fulltitle + videoitem.thumbnail = item.thumbnail + videochannel=item.channel + return itemlist + diff --git a/plugin.video.alfa/channels/javlin.json b/plugin.video.alfa/channels/javlin.json new file mode 100644 index 00000000..31aa65d0 --- /dev/null +++ b/plugin.video.alfa/channels/javlin.json @@ -0,0 +1,15 @@ +{ + "id": "javlin", + "name": "javlin", + "active": true, + "adult": true, + "language": ["*"], + "thumbnail": "http://javl.in/wp-content/uploads/2015/07/favicon1.ico", + "banner": "", + "categories": [ + "adult" + ], + "settings": [ + + ] +} diff --git a/plugin.video.alfa/channels/javlin.py b/plugin.video.alfa/channels/javlin.py new file mode 100644 index 00000000..e70da654 --- /dev/null +++ b/plugin.video.alfa/channels/javlin.py @@ -0,0 +1,85 @@ +# -*- coding: utf-8 -*- +#------------------------------------------------------------ +import urlparse,urllib2,urllib,re +import os, sys +from core import jsontools as json +from core import scrapertools +from core import servertools +from core.item import Item +from platformcode import config, logger +from core import httptools +from core import tmdb + + +host = 'http://javl.in' + + +def mainlist(item): + logger.info() + itemlist = [] + itemlist.append( Item(channel=item.channel, title="Peliculas" , action="peliculas", url=host)) + itemlist.append( Item(channel=item.channel, title="Categorias" , action="categorias", url=host)) + itemlist.append( Item(channel=item.channel, title="Buscar" , action="search")) + return itemlist + + +def search(item, texto): + logger.info("pelisalacarta.gmobi mainlist") + texto = texto.replace(" ", "+") + item.url = host+ "/?s=%s" % texto + try: + return peliculas(item) + except: + import sys + for line in sys.exc_info(): + logger.error("%s" % line) + return [] + + +def categorias(item): + logger.info() + itemlist = [] + data = httptools.downloadpage(item.url).data + patron = '