From 7875c33ae4e73ba5b46606c201d93b1bff8c5a2f Mon Sep 17 00:00:00 2001 From: mrgaturus Date: Thu, 31 May 2018 23:10:24 -0500 Subject: [PATCH] FIX: bug en thumbnails de findvideos --- plugin.video.alfa/platformcode/unify.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugin.video.alfa/platformcode/unify.py b/plugin.video.alfa/platformcode/unify.py index 494999af..f39e21e9 100644 --- a/plugin.video.alfa/platformcode/unify.py +++ b/plugin.video.alfa/platformcode/unify.py @@ -475,7 +475,9 @@ def thumbnail_type(item): thumb_type = config.get_setting('video_thumbnail_type') info = item.infoLabels - item.contentThumbnail = item.thumbnail + if not item.contentThumbnail: + item.contentThumbnail = item.thumbnail + if info: if info['thumbnail'] !='': item.contentThumbnail = info['thumbnail'] @@ -488,7 +490,7 @@ def thumbnail_type(item): from core.servertools import get_server_parameters #logger.debug('item.server: %s'%item.server) server_parameters = get_server_parameters(item.server.lower()) - item.thumbnail = server_parameters.get("thumbnail", "") + item.thumbnail = server_parameters.get("thumbnail", item.contentThumbnail) return item.thumbnail