.*?([^<]+)' + patron = '.*?' + patron += '([^<]+)' matches = re.compile(patron,re.DOTALL).findall(data) for scrapedurl,scrapedtitle,scrapedthumbnail,duracion in matches: scrapedplot = "" title = "[COLOR yellow]" + duracion + "[/COLOR] " + scrapedtitle - itemlist.append( Item(channel=item.channel, action="play", title=title , url=scrapedurl , thumbnail=scrapedthumbnail , plot=scrapedplot , folder=True) ) - next_page_url = scrapertools.find_single_match(data,'Next') - if next_page_url=="": - 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) ) + itemlist.append( Item(channel=item.channel, action="play", title=title, url=scrapedurl, + thumbnail=scrapedthumbnail, plot=scrapedplot) ) + next_page = scrapertools.find_single_match(data,'Next') + if next_page=="": + next_page = scrapertools.find_single_match(data,'.*?') + if next_page!="": + next_page = urlparse.urljoin(item.url,next_page) + itemlist.append(item.clone(action="lista", title="Página Siguiente >>", text_color="blue", url=next_page) ) return itemlist @@ -75,13 +78,54 @@ def play(item): logger.info() itemlist = [] data = scrapertools.cachePage(item.url) - pornhub = scrapertools.find_single_match(data,'> 4 + b = (b & 15) << 4 | c >> 2 + e = (c & 3) << 6 | d + reto += chr(a) + if c != 64: reto += chr(b) + if d != 64: reto += chr(e) + + return urllib.unquote(reto) + + diff --git a/plugin.video.alfa/channels/sexgalaxy.json b/plugin.video.alfa/channels/sexgalaxy.json index f9c356d2..36fadfbd 100644 --- a/plugin.video.alfa/channels/sexgalaxy.json +++ b/plugin.video.alfa/channels/sexgalaxy.json @@ -4,7 +4,7 @@ "active": true, "adult": true, "language": ["*"], - "thumbnail": "http://sexgalaxy.net/wp-content/uploads/2016/11/logogalaxy_red.png", + "thumbnail": "https://sexgalaxy.net/wp-content/themes/redwaves-lite/images/logo.png", "banner": "", "categories": [ "adult" diff --git a/plugin.video.alfa/channels/sexgalaxy.py b/plugin.video.alfa/channels/sexgalaxy.py index 0967ce96..37102a55 100644 --- a/plugin.video.alfa/channels/sexgalaxy.py +++ b/plugin.video.alfa/channels/sexgalaxy.py @@ -14,8 +14,8 @@ host = 'http://sexgalaxy.net' def mainlist(item): logger.info() itemlist = [] - itemlist.append( Item(channel=item.channel, title="Ultimos" , action="peliculas", url=host + "/new-releases/")) - itemlist.append( Item(channel=item.channel, title="Peliculas" , action="peliculas", url=host + "/full-movies/")) + itemlist.append( Item(channel=item.channel, title="Ultimos" , action="lista", url=host + "/new-releases/")) + itemlist.append( Item(channel=item.channel, title="Peliculas" , action="lista", url=host + "/full-movies/")) itemlist.append( Item(channel=item.channel, title="Canales" , action="canales", url=host)) itemlist.append( Item(channel=item.channel, title="Categorias" , action="categorias", url=host)) itemlist.append( Item(channel=item.channel, title="Buscar" , action="search")) @@ -27,7 +27,7 @@ def search(item, texto): texto = texto.replace(" ", "+") item.url = host + "/?s=%s" % texto try: - return peliculas(item) + return lista(item) except: import sys for line in sys.exc_info(): @@ -47,7 +47,8 @@ def canales (item): scrapedthumbnail = "" scrapedtitle = str(scrapedtitle) thumbnail = urlparse.urljoin(item.url,scrapedthumbnail) - itemlist.append( Item(channel=item.channel, action="peliculas", title=scrapedtitle , url=scrapedurl , thumbnail=scrapedthumbnail , plot=scrapedplot , folder=True) ) + itemlist.append( Item(channel=item.channel, action="lista", title=scrapedtitle, url=scrapedurl, + thumbnail=scrapedthumbnail, plot=scrapedplot) ) return itemlist @@ -63,11 +64,12 @@ def categorias(item): scrapedthumbnail = "" scrapedtitle = str(scrapedtitle) thumbnail = urlparse.urljoin(item.url,scrapedthumbnail) - itemlist.append( Item(channel=item.channel, action="peliculas", title=scrapedtitle , url=scrapedurl , thumbnail=scrapedthumbnail , plot=scrapedplot , folder=True) ) + itemlist.append( Item(channel=item.channel, action="lista", title=scrapedtitle, url=scrapedurl, + thumbnail=scrapedthumbnail, plot=scrapedplot) ) return itemlist -def peliculas(item): +def lista(item): logger.info() itemlist = [] data = httptools.downloadpage(item.url).data @@ -75,10 +77,14 @@ def peliculas(item): matches = re.compile(patron,re.DOTALL).findall(data) for scrapedurl,scrapedtitle,scrapedthumbnail in matches: scrapedplot = "" - itemlist.append( Item(channel=item.channel, action="play", title=scrapedtitle , url=scrapedurl , thumbnail=scrapedthumbnail , fulltitle=scrapedtitle , plot=scrapedplot , folder=True) ) - 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) ) + itemlist.append( Item(channel=item.channel, action="play" , title=title , url=scrapedurl, thumbnail=thumbnail, + plot=plot, contentTitle = contentTitle)) + next_page = scrapertools.find_single_match(data,'»') + if next_page!="": + next_page = urlparse.urljoin(item.url,next_page) + itemlist.append(item.clone(action="lista", title="Página Siguiente >>", text_color="blue", url=next_page) ) return itemlist @@ -62,12 +61,10 @@ def play(item): logger.info() itemlist = [] data = scrapertools.cachePage(item.url) - patron = '
.*?' + patron += '([^<]+)' matches = re.compile(patron,re.DOTALL).findall(data) for scrapedurl,scrapedtitle,scrapedthumbnail,duracion in matches: scrapedplot = "" title = "[COLOR yellow]" + duracion + "[/COLOR] " + scrapedtitle - itemlist.append( Item(channel=item.channel, action="play", title=title , url=scrapedurl , thumbnail=scrapedthumbnail , plot=scrapedplot , folder=True) ) - next_page_url = scrapertools.find_single_match(data,'Next') - if next_page_url=="": - 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) ) + itemlist.append( Item(channel=item.channel, action="play", title=title, url=scrapedurl, + thumbnail=scrapedthumbnail, plot=scrapedplot) ) + next_page = scrapertools.find_single_match(data,'Next') + if next_page=="": + next_page = scrapertools.find_single_match(data,'.*?') + if next_page!="": + next_page = urlparse.urljoin(item.url,next_page) + itemlist.append(item.clone(action="lista", title="Página Siguiente >>", text_color="blue", url=next_page) ) return itemlist @@ -75,13 +78,54 @@ def play(item): logger.info() itemlist = [] data = scrapertools.cachePage(item.url) - pornhub = scrapertools.find_single_match(data,'> 4 + b = (b & 15) << 4 | c >> 2 + e = (c & 3) << 6 | d + reto += chr(a) + if c != 64: reto += chr(b) + if d != 64: reto += chr(e) + + return urllib.unquote(reto) + + diff --git a/plugin.video.alfa/channels/sexgalaxy.json b/plugin.video.alfa/channels/sexgalaxy.json index f9c356d2..36fadfbd 100644 --- a/plugin.video.alfa/channels/sexgalaxy.json +++ b/plugin.video.alfa/channels/sexgalaxy.json @@ -4,7 +4,7 @@ "active": true, "adult": true, "language": ["*"], - "thumbnail": "http://sexgalaxy.net/wp-content/uploads/2016/11/logogalaxy_red.png", + "thumbnail": "https://sexgalaxy.net/wp-content/themes/redwaves-lite/images/logo.png", "banner": "", "categories": [ "adult" diff --git a/plugin.video.alfa/channels/sexgalaxy.py b/plugin.video.alfa/channels/sexgalaxy.py index 0967ce96..37102a55 100644 --- a/plugin.video.alfa/channels/sexgalaxy.py +++ b/plugin.video.alfa/channels/sexgalaxy.py @@ -14,8 +14,8 @@ host = 'http://sexgalaxy.net' def mainlist(item): logger.info() itemlist = [] - itemlist.append( Item(channel=item.channel, title="Ultimos" , action="peliculas", url=host + "/new-releases/")) - itemlist.append( Item(channel=item.channel, title="Peliculas" , action="peliculas", url=host + "/full-movies/")) + itemlist.append( Item(channel=item.channel, title="Ultimos" , action="lista", url=host + "/new-releases/")) + itemlist.append( Item(channel=item.channel, title="Peliculas" , action="lista", url=host + "/full-movies/")) itemlist.append( Item(channel=item.channel, title="Canales" , action="canales", url=host)) itemlist.append( Item(channel=item.channel, title="Categorias" , action="categorias", url=host)) itemlist.append( Item(channel=item.channel, title="Buscar" , action="search")) @@ -27,7 +27,7 @@ def search(item, texto): texto = texto.replace(" ", "+") item.url = host + "/?s=%s" % texto try: - return peliculas(item) + return lista(item) except: import sys for line in sys.exc_info(): @@ -47,7 +47,8 @@ def canales (item): scrapedthumbnail = "" scrapedtitle = str(scrapedtitle) thumbnail = urlparse.urljoin(item.url,scrapedthumbnail) - itemlist.append( Item(channel=item.channel, action="peliculas", title=scrapedtitle , url=scrapedurl , thumbnail=scrapedthumbnail , plot=scrapedplot , folder=True) ) + itemlist.append( Item(channel=item.channel, action="lista", title=scrapedtitle, url=scrapedurl, + thumbnail=scrapedthumbnail, plot=scrapedplot) ) return itemlist @@ -63,11 +64,12 @@ def categorias(item): scrapedthumbnail = "" scrapedtitle = str(scrapedtitle) thumbnail = urlparse.urljoin(item.url,scrapedthumbnail) - itemlist.append( Item(channel=item.channel, action="peliculas", title=scrapedtitle , url=scrapedurl , thumbnail=scrapedthumbnail , plot=scrapedplot , folder=True) ) + itemlist.append( Item(channel=item.channel, action="lista", title=scrapedtitle, url=scrapedurl, + thumbnail=scrapedthumbnail, plot=scrapedplot) ) return itemlist -def peliculas(item): +def lista(item): logger.info() itemlist = [] data = httptools.downloadpage(item.url).data @@ -75,10 +77,14 @@ def peliculas(item): matches = re.compile(patron,re.DOTALL).findall(data) for scrapedurl,scrapedtitle,scrapedthumbnail in matches: scrapedplot = "" - itemlist.append( Item(channel=item.channel, action="play", title=scrapedtitle , url=scrapedurl , thumbnail=scrapedthumbnail , fulltitle=scrapedtitle , plot=scrapedplot , folder=True) ) - 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) ) + itemlist.append( Item(channel=item.channel, action="play" , title=title , url=scrapedurl, thumbnail=thumbnail, + plot=plot, contentTitle = contentTitle)) + next_page = scrapertools.find_single_match(data,'»') + if next_page!="": + next_page = urlparse.urljoin(item.url,next_page) + itemlist.append(item.clone(action="lista", title="Página Siguiente >>", text_color="blue", url=next_page) ) return itemlist @@ -62,12 +61,10 @@ def play(item): logger.info() itemlist = [] data = scrapertools.cachePage(item.url) - patron = '