From c5c1b79111cff952f74e702d92ff14933f9a8f2e Mon Sep 17 00:00:00 2001 From: ytshen Date: Sat, 17 Feb 2024 15:50:02 +0800 Subject: [PATCH] update --- fallback_infos.py | 2 ++ main.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/fallback_infos.py b/fallback_infos.py index 7333ede..c67a8f8 100644 --- a/fallback_infos.py +++ b/fallback_infos.py @@ -27,8 +27,10 @@ def fallback_if_need(current, previous, associate_map=None): if current[key]: fallback_if_need(current[key], value, associate_map.get(key, {})) else: + print(f'fallback {key}') current[key] = value elif key not in current: + print(f'fallback {key}') current[key] = value elif isinstance(current, list) and (uid := associate_map.get(fallback_associated_unique_id)): diff --git a/main.py b/main.py index db400b6..524d2d7 100644 --- a/main.py +++ b/main.py @@ -182,7 +182,7 @@ def parse(plugin, **kwargs): print(f'handle {plugin[repo]} request {release_url} failed: {e}') plugin[releases] = release_infos - + if name not in plugin: plugin[name] = plugin[repo].split('/')[-1]