([^<]+)<.*?(.*?)<.*?
(.*?).*?(.*?).*?(.*?).*?(.*?)'
matches = match(data, patron=patron).matches
- for url, thumb, title, plot, tipo, epis, rating, date in matches:
+ for url, thumb, title, plot, Type, epis, rating, date in matches:
infolabels = {"mediatype": "tvshow"}
contentType = "tvshow"
args = "tv"
title = title.strip()
- tipo = tipo.strip()
+ Type = Type.strip()
rating = rating.strip()
epis = epis.strip()
infolabels["plot"] = htmlclean(plot.strip())
@@ -2578,20 +2578,20 @@ def searching_mal(item):
import traceback
logger.error(traceback.format_exc())
- if tipo == "Movie" or tipo == "OVA":
+ if Type == "Movie" or Type == "OVA":
infolabels["mediatype"] = "movie"
contentType = "movie"
args = "movie"
show = ""
- if epis and tipo != "Movie":
+ if epis and Type != "Movie":
title += " %s eps" % epis
if rating != "0.00" and rating != "N/A":
infolabels["rating"] = float(rating)
title += " %s" % (rating)
itemlist.append(Item(channel=item.channel, title=title, action="details_mal", url=url, show=show,
thumbnail=thumb, infoLabels=infolabels, contentTitle=contentitle,
- contentType=contentType, tipo=tipo.lower(), args=args))
+ contentType=contentType, Type=Type.lower(), args=args))
if not "&show=" in item.url:
next_page = item.url + "&show=50"
@@ -2713,13 +2713,13 @@ def callback_mal(item, values):
genero_ids = "&".join(genero_ids)
query = values["keyword"].replace(" ", "%20")
- tipo = item.valores["tipo"][values["tipo"]]
+ Type = item.valores["tipo"][values["tipo"]]
valoracion = item.valores["valoracion"][values["valoracion"]]
estado = item.valores["estado"][values["estado"]]
item.url = "https://myanimelist.net/anime.php?q=%s&type=%s&score=%s&status=%s" \
"&p=0&r=0&sm=0&sd=0&sy=0&em=0&ed=0&ey=0&c[0]=a&c[1]=b&c[2]=c&c[3]=d&c[4]=f&gx=0" \
- % (query, tipo, valoracion, estado)
+ % (query, Type, valoracion, estado)
if genero_ids:
item.url += "&" + genero_ids
@@ -2851,14 +2851,14 @@ def items_mal(item):
title = title.replace("] (TV)", "]")
elif title.count("(Movie)") == 2:
title = title.replace("] (Movie)", "]")
- tipo = "tvshow"
+ Type = "tvshow"
args = "tv"
if "Movie" in d["anime_media_type_string"]:
- tipo = "movie"
+ Type = "movie"
args = "movie"
itemlist.append(Item(channel=item.channel, action="details_mal", url=url, title=title, thumbnail=thumbnail,
- contentTitle=contentTitle, contentType=tipo, args=args, login=True))
+ contentTitle=contentTitle, contentType=Type, args=args, login=True))
if itemlist:
itemlist.insert(0, Item(channel=item.channel, action="", title=config.get_localized_string(70387)))