html: fix erorr thumbs
This commit is contained in:
@@ -105,7 +105,7 @@ class platform(Platformtools):
|
|||||||
thumbnail=channelselector.get_thumb("back.png", "banner_")))
|
thumbnail=channelselector.get_thumb("back.png", "banner_")))
|
||||||
else:
|
else:
|
||||||
itemlist.insert(0, Item(title="Atrás", action="go_back",
|
itemlist.insert(0, Item(title="Atrás", action="go_back",
|
||||||
thumbnail=channelselector.get_thumb("back.png")))
|
thumbnail=channelselector.get_thumb("back.png", "banner_")))
|
||||||
|
|
||||||
JsonData = {}
|
JsonData = {}
|
||||||
JsonData["action"] = "EndItems"
|
JsonData["action"] = "EndItems"
|
||||||
@@ -119,17 +119,9 @@ class platform(Platformtools):
|
|||||||
# Recorremos el itemlist
|
# Recorremos el itemlist
|
||||||
for item in itemlist:
|
for item in itemlist:
|
||||||
|
|
||||||
if not item.thumbnail and item.action == "search": item.thumbnail = channelselector.get_thumb("search.png")
|
if not item.thumbnail and item.action == "search": item.thumbnail = channelselector.get_thumb("search.png", "banner_")
|
||||||
if not item.thumbnail and item.folder == True: item.thumbnail = channelselector.get_thumb("folder.png", "banner")
|
#if not item.thumbnail and item.folder == True: item.thumbnail = channelselector.get_thumb("folder.png", "banner_")
|
||||||
if not item.thumbnail and item.folder == False: item.thumbnail = channelselector.get_thumb("nofolder.png")
|
if not item.thumbnail and item.folder == False: item.thumbnail = channelselector.get_thumb("nofolder.png", "banner_")
|
||||||
if "http://media.xxxxx/" in item.thumbnail and not item.thumbnail.startswith(
|
|
||||||
"http://media.xxxxxxxx/thumb_"):
|
|
||||||
|
|
||||||
if parent_item.viewmode in ["banner", "channel"]:
|
|
||||||
item.thumbnail = channelselector.get_thumbnail_path("banner") + os.path.basename(item.thumbnail)
|
|
||||||
else:
|
|
||||||
item.thumbnail = channelselector.get_thumbnail_path() + os.path.basename(item.thumbnail)
|
|
||||||
|
|
||||||
# Estas imagenes no estan en banner, asi que si queremos banner, para que no se vean mal las quitamos
|
# Estas imagenes no estan en banner, asi que si queremos banner, para que no se vean mal las quitamos
|
||||||
elif parent_item.viewmode in ["banner", "channel"] and item.thumbnail.startswith(
|
elif parent_item.viewmode in ["banner", "channel"] and item.thumbnail.startswith(
|
||||||
"http://media.xxxxx/thumb_"):
|
"http://media.xxxxx/thumb_"):
|
||||||
|
|||||||
Reference in New Issue
Block a user