cambio de version

This commit is contained in:
alfa-addon
2017-08-01 17:45:09 -04:00
parent 728deb7690
commit 10efada600
4 changed files with 29 additions and 25 deletions

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.alfa" name="Alfa" version="0.0.3" provider-name="unknown">
<addon id="plugin.video.alfa" name="Alfa" version="0.0.4" provider-name="unknown">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
<import addon="script.module.libtorrent" optional="true"/>
@@ -9,16 +9,21 @@
</extension>
<extension point="xbmc.addon.metadata">
<summary lang="es">Sumario en Español</summary>
<news>Estos son los cambios para esta versión:
- mejortorrent
- plusdede
- allcalidad
- retocados iconos
- Nuevo canal: vernovelasonline
- Nuevo servidor: downace
- Nuevo servidor: gvideo
- cinetux: Cambio de estructura
- añadido textos para "spanish (mexico)", ya no debe salir los textos en inglés en algunas partes
<news>[B]Estos son los cambios para esta versión:[/B][CR]
[COLOR green][B]Canales agregados y arreglos[/B][/COLOR]
[I]- Cinecalidad
- Cinefox
- Mundoflv
- Metaserie
- Pelisplanet
- flashx
- xTheatre
- Playpornx[/I][CR]
[COLOR green][B]Servidores agregados y arreglos[/B][/COLOR][CR]
[I]- Flashx
- Streamcherry[/I]
</news>
<description lang="es">Descripción en Español</description>
<summary lang="en">English summary</summary>

14
plugin.video.alfa/channels/metaserie.py Executable file → Normal file
View File

@@ -62,12 +62,9 @@ def todas(item):
logger.info()
itemlist = []
data = httptools.downloadpage(item.url).data
logger.debug(data)
patron = '<div class="poster">[^<]'
patron += '<a href="([^"]+)" title="([^"]+)en(.*?)">[^<]'
patron += '<div class="poster_efecto"><span>([^<]+)<.*?div>[^<]'
patron += '<img.*?src="([^"]+)"'
data = re.sub(r'"|\n|\r|\t|&nbsp;|<br>|\s{2,}', "", data)
patron = '<div class=poster>.*?<a href=(.*?) title=(.*?)en(.*?)>.*?'
patron +='<div class=poster_efecto><span>(.*?)<.*?div>.*?<img.*?src=(.*?) class'
matches = re.compile(patron, re.DOTALL).findall(data)
for scrapedurl, scrapedtitle, lang, scrapedplot, scrapedthumbnail in matches:
@@ -95,8 +92,8 @@ def todas(item):
# Paginacion
next_page_url = scrapertools.find_single_match(data,
'<li><a class="next page-numbers local-link" href="(['
'^"]+)">&raquo;.*?li>')
'<li><a class=next page-numbers local-link href=('
'.*?)>&raquo;.*?li>')
if next_page_url != "":
itemlist.append(Item(channel=item.channel,
action="todas",
@@ -174,7 +171,6 @@ def episodiosxtemp(item):
logger.info()
itemlist = []
data = httptools.downloadpage(item.url).data
logger.debug(data)
patron = '<td><h3 class=".*?href="([^"]+)".*?">([^<]+).*?td>'
matches = re.compile(patron, re.DOTALL).findall(data)

4
plugin.video.alfa/channels/playpornx.json Executable file → Normal file
View File

@@ -4,8 +4,8 @@
"active": true,
"adult": true,
"language": "es",
"thumbnail": "https://s22.postimg.org/eewoqq1w1/playpornx.png",
"banner": "https://s12.postimg.org/is9u6fsul/playpornx_banner.png",
"thumbnail": "https://s3.postimg.org/3rkfrnypv/playpornx.png",
"banner": "https://s3.postimg.org/it5qa1gyb/playpornx-banner.png",
"version": 1,
"changes": [
{

9
plugin.video.alfa/channels/playpornx.py Executable file → Normal file
View File

@@ -14,7 +14,8 @@ def mainlist(item):
itemlist = []
itemlist.append(Item(channel=item.channel, title="Todas", action="lista",
thumbnail='https://s18.postimg.org/fwvaeo6qh/todas.png',
fanart='https://s18.postimg.org/fwvaeo6qh/todas.png'))
fanart='https://s18.postimg.org/fwvaeo6qh/todas.png',
url ='https://www.playpornx.net/category/porn-movies/?filter=date'))
itemlist.append(Item(channel=item.channel, title="Buscar", action="search", url='http://www.playpornx.net/?s=',
thumbnail='https://s30.postimg.org/pei7txpa9/buscar.png',
fanart='https://s30.postimg.org/pei7txpa9/buscar.png'))
@@ -28,10 +29,12 @@ def lista(item):
itemlist = []
if item.url == '': item.url = host
data = httptools.downloadpage(item.url).data
patron = '<a class="clip-link" title="([^"]+)" href="([^"]+)">\s*<span class="clip">\s*<img alt=".*?" width="190" height="266" src="([^"]+)" data-qazy="true" \/><span class="vertical-align"><\/span>\s*<\/span>'
data = re.sub(r'"|\n|\r|\t|&nbsp;|<br>|\s{2,}', "", data)
logger.debug(data)
patron = 'role=article><a href=(.*?) rel=bookmark title=(.*?)>.*?src=(.*?) class'
matches = re.compile(patron, re.DOTALL).findall(data)
for scrapedtitle, scrapedurl, scrapedthumbnail in matches:
for scrapedurl, scrapedtitle, scrapedthumbnail in matches:
url = scrapedurl
thumbnail = scrapedthumbnail
title = scrapedtitle