diff --git a/plugin.video.alfa/channels/pandamovie.py b/plugin.video.alfa/channels/pandamovie.py
index 96f70a82..ec8a72ab 100644
--- a/plugin.video.alfa/channels/pandamovie.py
+++ b/plugin.video.alfa/channels/pandamovie.py
@@ -14,9 +14,9 @@ host= 'https://pandamovies.pw'
def mainlist(item):
logger.info()
itemlist = []
- itemlist.append( Item(channel=item.channel, title="Peliculas" , action="lista", url=host + "/list-movies"))
- itemlist.append( Item(channel=item.channel, title="Categorias" , action="categorias", url=host + "/list-movies"))
- itemlist.append( Item(channel=item.channel, title="Canal" , action="categorias", url=host + "/list-movies"))
+ itemlist.append( Item(channel=item.channel, title="Peliculas" , action="lista", url=host + "/movies"))
+ itemlist.append( Item(channel=item.channel, title="Categorias" , action="categorias", url=host + "/movies"))
+ itemlist.append( Item(channel=item.channel, title="Canal" , action="categorias", url=host + "/movies"))
itemlist.append( Item(channel=item.channel, title="Buscar", action="search"))
return itemlist
@@ -42,7 +42,7 @@ def categorias(item):
else:
data = scrapertools.get_match(data,'Studios(.*?)')
data = re.sub(r"\n|\r|\t| |
", "", data)
- patron = '
([^<]+)'
+ patron = '([^<]+)'
matches = re.compile(patron,re.DOTALL).findall(data)
for scrapedurl,scrapedtitle in matches:
scrapedplot = ""
@@ -58,17 +58,19 @@ def lista(item):
logger.info()
itemlist = []
data = scrapertools.cachePage(item.url)
- patron = '')
+ # 1
+ next_page = scrapertools.find_single_match(data,'.*?href=\'([^\']+)\'>')
if next_page =="":
next_page = scrapertools.find_single_match(data,'Next »')
if next_page!="":
diff --git a/plugin.video.alfa/channels/pornboss.py b/plugin.video.alfa/channels/pornboss.py
index c5f06431..d0886ca6 100644
--- a/plugin.video.alfa/channels/pornboss.py
+++ b/plugin.video.alfa/channels/pornboss.py
@@ -19,7 +19,7 @@ def mainlist(item):
itemlist.append( Item(channel=item.channel, title=" categorias" , action="categorias", url=host + "/category/movies/"))
itemlist.append( Item(channel=item.channel, title="Videos" , action="lista", url=host + "/category/clips/"))
- itemlist.append( Item(channel=item.channel, title=" categorias" , action="lista", url=host + "/category/clips/"))
+ itemlist.append( Item(channel=item.channel, title=" categorias" , action="categorias", url=host + "/category/clips/"))
return itemlist
@@ -41,11 +41,11 @@ def categorias(item):
itemlist = []
data = httptools.downloadpage(item.url).data
data = re.sub(r"\n|\r|\t| |
", "", data)
- if item.url == host + "/category/movies/":
+ if "/category/movies/" in item.url:
data = scrapertools.get_match(data,'>Movies(.*?)')
else:
data = scrapertools.get_match(data,'>Clips(.*?)')
- patron = '([^"]+)'
+ patron = '([^"]+)'
matches = re.compile(patron,re.DOTALL).findall(data)
scrapertools.printMatches(matches)
for scrapedurl,scrapedtitle in matches:
@@ -60,20 +60,21 @@ def lista(item):
logger.info()
itemlist = []
data = scrapertools.cachePage(item.url)
- patron = '.*?.*?'
matches = re.compile(patron,re.DOTALL).findall(data)
scrapertools.printMatches(matches)
for scrapedthumbnail,scrapedtitle,scrapedurl in matches:
scrapedplot = ""
itemlist.append( Item(channel=item.channel, action="play", title=scrapedtitle, url=scrapedurl,
thumbnail=scrapedthumbnail, fanart=scrapedthumbnail, plot=scrapedplot) )
- next_page = scrapertools.find_single_match(data,'')
+ next_page = scrapertools.find_single_match(data,'')
if next_page!="":
- itemlist.append( Item(channel=item.channel, action="lista", title="Página Siguiente >>", text_color="blue", url=next_page) )
+ itemlist.append(item.clone(action="lista", title="Página Siguiente >>", text_color="blue", url=next_page) )
return itemlist
+
def play(item):
logger.info()
itemlist = servertools.find_video_items(data=item.url)
diff --git a/plugin.video.alfa/channels/porntrex.py b/plugin.video.alfa/channels/porntrex.py
index f6561068..ae821844 100644
--- a/plugin.video.alfa/channels/porntrex.py
+++ b/plugin.video.alfa/channels/porntrex.py
@@ -81,6 +81,7 @@ def lista(item):
if not scrapedthumbnail.startswith("https"):
scrapedthumbnail = "https:%s" % scrapedthumbnail
scrapedtitle = "%s - [COLOR red]%s[/COLOR] %s" % (duration, quality, scrapedtitle)
+ scrapedthumbnail += "|Referer=https://www.porntrex.com/"
itemlist.append(item.clone(action=action, title=scrapedtitle, url=scrapedurl, thumbnail=scrapedthumbnail,
contentThumbnail=scrapedthumbnail, fanart=scrapedthumbnail))
# Extrae la marca de siguiente página
@@ -256,6 +257,7 @@ def menu_info(item):
if i == 0:
continue
img = urlparse.urljoin(host, img)
+ img += "|Referer=https://www.porntrex.com/"
title = "Imagen %s" % (str(i))
itemlist.append(item.clone(action="", title=title, thumbnail=img, fanart=img))
diff --git a/plugin.video.alfa/channels/videosXYZ.py b/plugin.video.alfa/channels/videosXYZ.py
index 62b56a3f..489efdc5 100644
--- a/plugin.video.alfa/channels/videosXYZ.py
+++ b/plugin.video.alfa/channels/videosXYZ.py
@@ -38,10 +38,10 @@ def lista(item):
logger.info()
itemlist = []
data = httptools.downloadpage(item.url).data
- patron = '.*?data-src="([^"]+)"'
+ patron = '|#038;", "", data)
- patron_todos = '(.*?)