Merge pull request #228 from t1254362/patch1
Añadir calidad entre corchetes y rename
This commit is contained in:
@@ -156,7 +156,7 @@ def listado(item):
|
|||||||
|
|
||||||
show = title
|
show = title
|
||||||
if item.extra != "buscar-list":
|
if item.extra != "buscar-list":
|
||||||
title = title + ' ' + calidad
|
title = title + ' [' + calidad + "]"
|
||||||
|
|
||||||
context = ""
|
context = ""
|
||||||
context_title = scrapertools.find_single_match(url, "http://(?:www.)?descargas2020.com/(.*?)/(.*?)/")
|
context_title = scrapertools.find_single_match(url, "http://(?:www.)?descargas2020.com/(.*?)/(.*?)/")
|
||||||
@@ -193,7 +193,7 @@ def listado(item):
|
|||||||
extra = page_extra))
|
extra = page_extra))
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
def listado2(item):
|
def listado_busqueda(item):
|
||||||
logger.info()
|
logger.info()
|
||||||
itemlist = []
|
itemlist = []
|
||||||
data = re.sub(r"\n|\r|\t|\s{2,}", "", httptools.downloadpage(item.url, post=item.post).data)
|
data = re.sub(r"\n|\r|\t|\s{2,}", "", httptools.downloadpage(item.url, post=item.post).data)
|
||||||
@@ -245,7 +245,7 @@ def listado2(item):
|
|||||||
context=["buscar_trailer"]))
|
context=["buscar_trailer"]))
|
||||||
|
|
||||||
if post:
|
if post:
|
||||||
itemlist.append(item.clone(channel=item.channel, action="listado2", title=">> Página siguiente",
|
itemlist.append(item.clone(channel=item.channel, action="listado_busqueda", title=">> Página siguiente",
|
||||||
thumbnail=get_thumb("next.png")))
|
thumbnail=get_thumb("next.png")))
|
||||||
|
|
||||||
return itemlist
|
return itemlist
|
||||||
@@ -458,7 +458,7 @@ def search(item, texto):
|
|||||||
try:
|
try:
|
||||||
item.post = "q=%s" % texto
|
item.post = "q=%s" % texto
|
||||||
item.pattern = "buscar-list"
|
item.pattern = "buscar-list"
|
||||||
itemlist = listado2(item)
|
itemlist = listado_busqueda(item)
|
||||||
|
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user