cambio de version
This commit is contained in:
Executable → Regular
+5
-9
@@ -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| |<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="(['
|
||||
'^"]+)">».*?li>')
|
||||
'<li><a class=next page-numbers local-link href=('
|
||||
'.*?)>».*?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)
|
||||
|
||||
|
||||
Executable → Regular
+2
-2
@@ -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": [
|
||||
{
|
||||
|
||||
Executable → Regular
+6
-3
@@ -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| |<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
|
||||
|
||||
Reference in New Issue
Block a user