xxx fixes
This commit is contained in:
@@ -38,6 +38,8 @@
|
|||||||
"visible": true,
|
"visible": true,
|
||||||
"lvalues": [
|
"lvalues": [
|
||||||
"Sin color",
|
"Sin color",
|
||||||
|
"Perfil 5",
|
||||||
|
"Perfil 4",
|
||||||
"Perfil 3",
|
"Perfil 3",
|
||||||
"Perfil 2",
|
"Perfil 2",
|
||||||
"Perfil 1"
|
"Perfil 1"
|
||||||
|
|||||||
Executable → Regular
+3
-2
@@ -127,7 +127,7 @@ def peliculas(item):
|
|||||||
|
|
||||||
data = httptools.downloadpage(item.url).data
|
data = httptools.downloadpage(item.url).data
|
||||||
data = re.sub(r"\n|\r|\t|\(.*?\)|\s{2}| ", "", data)
|
data = re.sub(r"\n|\r|\t|\(.*?\)|\s{2}| ", "", data)
|
||||||
# logger.info(data)
|
logger.info(data)
|
||||||
|
|
||||||
patron = '<div class="poster"><img src="([^"]+)" alt="([^"]+)">.*?' # img, title.strip()
|
patron = '<div class="poster"><img src="([^"]+)" alt="([^"]+)">.*?' # img, title.strip()
|
||||||
patron += '<span class="icon-star2"></span>(.*?)/div>.*?' # rating
|
patron += '<span class="icon-star2"></span>(.*?)/div>.*?' # rating
|
||||||
@@ -138,7 +138,8 @@ def peliculas(item):
|
|||||||
matches = scrapertools.find_multiple_matches(data, patron)
|
matches = scrapertools.find_multiple_matches(data, patron)
|
||||||
|
|
||||||
for scrapedthumbnail, scrapedtitle, rating, calidad, scrapedurl, year in matches[item.page:item.page + 20]:
|
for scrapedthumbnail, scrapedtitle, rating, calidad, scrapedurl, year in matches[item.page:item.page + 20]:
|
||||||
if 'Próximamente' not in calidad:
|
if 'Próximamente' not in calidad and '-XXX.jpg' not in scrapedthumbnail:
|
||||||
|
|
||||||
scrapedtitle = scrapedtitle.replace('Ver ', '').strip()
|
scrapedtitle = scrapedtitle.replace('Ver ', '').strip()
|
||||||
contentTitle = scrapedtitle.partition(':')[0].partition(',')[0]
|
contentTitle = scrapedtitle.partition(':')[0].partition(',')[0]
|
||||||
title = "%s [COLOR green][%s][/COLOR] [COLOR yellow][%s][/COLOR]" % (
|
title = "%s [COLOR green][%s][/COLOR] [COLOR yellow][%s][/COLOR]" % (
|
||||||
|
|||||||
Reference in New Issue
Block a user