add generic templates
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user