|
|
@ -596,6 +596,7 @@ class MetadataFile(DataFile):
|
|
|
|
self.library = library
|
|
|
|
self.library = library
|
|
|
|
self.metadata = None
|
|
|
|
self.metadata = None
|
|
|
|
self.collections = None
|
|
|
|
self.collections = None
|
|
|
|
|
|
|
|
self.dynamic_collections = []
|
|
|
|
self.templates = None
|
|
|
|
self.templates = None
|
|
|
|
self.update_collections = True
|
|
|
|
self.update_collections = True
|
|
|
|
self.update_seasons = True
|
|
|
|
self.update_seasons = True
|
|
|
@ -757,9 +758,11 @@ class MetadataFile(DataFile):
|
|
|
|
logger.separator(f"Loading {self.type_str} {file_type}: {path}")
|
|
|
|
logger.separator(f"Loading {self.type_str} {file_type}: {path}")
|
|
|
|
logger.info("")
|
|
|
|
logger.info("")
|
|
|
|
data = self.load_file(self.type, self.path)
|
|
|
|
data = self.load_file(self.type, self.path)
|
|
|
|
|
|
|
|
if self.file_style == "metadata":
|
|
|
|
self.metadata = get_dict("metadata", data, library.metadatas)
|
|
|
|
self.metadata = get_dict("metadata", data, library.metadatas)
|
|
|
|
self.templates = get_dict("templates", data)
|
|
|
|
self.templates = get_dict("templates", data)
|
|
|
|
self.external_templates(data)
|
|
|
|
self.external_templates(data)
|
|
|
|
|
|
|
|
if self.file_style == "collection":
|
|
|
|
self.collections = get_dict("collections", data, library.collections)
|
|
|
|
self.collections = get_dict("collections", data, library.collections)
|
|
|
|
self.dynamic_collections = get_dict("dynamic_collections", data)
|
|
|
|
self.dynamic_collections = get_dict("dynamic_collections", data)
|
|
|
|
col_names = library.collections + [c for c in self.collections]
|
|
|
|
col_names = library.collections + [c for c in self.collections]
|
|
|
|