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]