diff --git a/LunaTranslator/LunaTranslator/cishu/cishubase.py b/LunaTranslator/LunaTranslator/cishu/cishubase.py index 4793f1a5..e4f8cb6c 100644 --- a/LunaTranslator/LunaTranslator/cishu/cishubase.py +++ b/LunaTranslator/LunaTranslator/cishu/cishubase.py @@ -30,9 +30,8 @@ class cishubase: except: self.needinit = True - if res is None or res == "": - return - self.callback(res) + if res and len(res): + self.callback(res) except: pass diff --git a/LunaTranslator/LunaTranslator/cishu/goo.py b/LunaTranslator/LunaTranslator/cishu/goo.py index 7907a3ad..c6a97ab0 100644 --- a/LunaTranslator/LunaTranslator/cishu/goo.py +++ b/LunaTranslator/LunaTranslator/cishu/goo.py @@ -17,10 +17,10 @@ class goo(cishubase): xx = re.sub("", "", xx) xx = re.sub("", "", xx) - - return ( - '
'.format( - url + if len(xx): + return ( + ''.format( + url + ) + + xx ) - + xx - ) diff --git a/LunaTranslator/LunaTranslator/cishu/weblio.py b/LunaTranslator/LunaTranslator/cishu/weblio.py index d49c9a10..d0c070dc 100644 --- a/LunaTranslator/LunaTranslator/cishu/weblio.py +++ b/LunaTranslator/LunaTranslator/cishu/weblio.py @@ -25,10 +25,10 @@ class weblio(cishubase): _all.append(xx) join = "