From 3bd333c1aaeb66e331743e6c7e3c7d2f839e2c3d Mon Sep 17 00:00:00 2001 From: rekushi <1+rekushi@noreply.flipnote.world> Date: Thu, 29 Oct 2026 04:25:10 +0000 Subject: [PATCH] fix(ugo): import the PPM module explicitly Resolve the module instead of its exported class so embedded-thumbnail decoding works. --- Hatenatools/UGO.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Hatenatools/UGO.py b/Hatenatools/UGO.py index 925535b..e6ca5f7 100644 --- a/Hatenatools/UGO.py +++ b/Hatenatools/UGO.py @@ -8,11 +8,12 @@ from __future__ import annotations import os import sys +from importlib import import_module from base64 import b64decode, b64encode import xml.etree.ElementTree as ET try: - from . import PPM as _ppm_module + _ppm_module = import_module(".PPM", __package__) HasPPM = True except (ImportError, ValueError): try: