Fixed missing steam cdn url setting for thumbnailer plugin; fixed vod_thumbnailer plugin not expanding return values correctly

This commit is contained in:
2025-12-27 16:36:13 -06:00
parent ad06ea50ad
commit 6a3bfbeb13
3 changed files with 5 additions and 3 deletions

View File

@@ -38,6 +38,7 @@ class IconController(Icon):
self.BASE_THUMBS_PTH = f"{USER_HOME}/.thumbnails" self.BASE_THUMBS_PTH = f"{USER_HOME}/.thumbnails"
self.ABS_THUMBS_PTH = f"{self.BASE_THUMBS_PTH}/normal" self.ABS_THUMBS_PTH = f"{self.BASE_THUMBS_PTH}/normal"
self.STEAM_ICONS_PTH = f"{self.BASE_THUMBS_PTH}/steam_icons" self.STEAM_ICONS_PTH = f"{self.BASE_THUMBS_PTH}/steam_icons"
self.STEAM_CDN_URL = ""
if not path.isdir(self.BASE_THUMBS_PTH): if not path.isdir(self.BASE_THUMBS_PTH):
os.mkdir(self.BASE_THUMBS_PTH) os.mkdir(self.BASE_THUMBS_PTH)
@@ -60,6 +61,7 @@ class IconController(Icon):
self.container_icon_wh = config["container_icon_wh"] self.container_icon_wh = config["container_icon_wh"]
self.video_icon_wh = config["video_icon_wh"] self.video_icon_wh = config["video_icon_wh"]
self.sys_icon_wh = config["sys_icon_wh"] self.sys_icon_wh = config["sys_icon_wh"]
self.STEAM_CDN_URL = config["steam_cdn_url"]
# Filters # Filters
filters = settings["filters"] filters = settings["filters"]

View File

@@ -14,7 +14,7 @@ class VideoIconMixin:
proc = subprocess.Popen([self.FFMPG_THUMBNLR, "-t", scrub_percent, "-s", "300", "-c", "jpg", "-i", full_path, "-o", hash_img_path]) proc = subprocess.Popen([self.FFMPG_THUMBNLR, "-t", scrub_percent, "-s", "300", "-c", "jpg", "-i", full_path, "-o", hash_img_path])
proc.wait() proc.wait()
except Exception as e: except Exception as e:
logger.info(repr(e)) logger.info(e)
self.ffprobe_generate_video_thumbnail(full_path, hash_img_path) self.ffprobe_generate_video_thumbnail(full_path, hash_img_path)

View File

@@ -117,8 +117,8 @@ class Plugin(PluginBase):
uri = self._fm_state.uris[0] uri = self._fm_state.uris[0]
path = self._fm_state.tab.get_current_directory() path = self._fm_state.tab.get_current_directory()
parts = uri.split("/") parts = uri.split("/")
path_exists, path_exists, \
img_hash, img_hash, \
hash_img_pth = self._event_system.emit_and_await("get-thumbnail-hash", (uri,)) hash_img_pth = self._event_system.emit_and_await("get-thumbnail-hash", (uri,))
if not path_exists: if not path_exists: