mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
.
This commit is contained in:
parent
a4e1350089
commit
3f9e219425
@ -166,7 +166,7 @@ def trysearchfordata(gamepath, key, vid):
|
|||||||
data = targetmod[key].searchfordata(vid)
|
data = targetmod[key].searchfordata(vid)
|
||||||
except:
|
except:
|
||||||
print_exc()
|
print_exc()
|
||||||
data = {}
|
return False
|
||||||
title = data.get("title", None)
|
title = data.get("title", None)
|
||||||
namemap = data.get("namemap", None)
|
namemap = data.get("namemap", None)
|
||||||
developers = data.get("developers", [])
|
developers = data.get("developers", [])
|
||||||
@ -194,7 +194,7 @@ def trysearchfordata(gamepath, key, vid):
|
|||||||
savehook_new_data[gamepath]["webtags"] = webtags
|
savehook_new_data[gamepath]["webtags"] = webtags
|
||||||
if len(developers):
|
if len(developers):
|
||||||
savehook_new_data[gamepath]["developers"] = developers
|
savehook_new_data[gamepath]["developers"] = developers
|
||||||
|
return True
|
||||||
|
|
||||||
def everymethodsthread():
|
def everymethodsthread():
|
||||||
while True:
|
while True:
|
||||||
@ -208,8 +208,11 @@ def everymethodsthread():
|
|||||||
|
|
||||||
elif _type == 1:
|
elif _type == 1:
|
||||||
key, vid = arg
|
key, vid = arg
|
||||||
trysearchfordata(gamepath, key, vid)
|
if trysearchfordata(gamepath, key, vid):
|
||||||
gobject.baseobject.translation_ui.displayglobaltooltip.emit(f"{key}: {vid} data loaded")
|
gobject.baseobject.translation_ui.displayglobaltooltip.emit(f"{key}: {vid} data loaded")
|
||||||
|
else:
|
||||||
|
gobject.baseobject.translation_ui.displayglobaltooltip.emit(f"{key}: {vid} load failed")
|
||||||
|
|
||||||
except:
|
except:
|
||||||
print_exc()
|
print_exc()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user