add generic templates

This commit is contained in:
ChristopheSeux
2024-04-16 14:28:02 +02:00
parent 2960bab63d
commit 0055e0f39e
11 changed files with 343 additions and 116 deletions
+4
View File
@@ -63,6 +63,7 @@ def load_trackers():
print(f'Could not register Tracker {name}')
print(e)
def load_prefs():
prefs = get_addon_prefs()
prefs_config_file = prefs.config_path
@@ -72,6 +73,9 @@ def load_prefs():
prefs_datas = read_file(os.path.expandvars(prefs_config_file))
if not prefs_datas:
return
for tracker_data in prefs_datas['trackers']:
tracker_name = norm_str(tracker_data['name'])
if not hasattr(prefs.trackers, tracker_name):