diff --git a/CHANGELOG b/CHANGELOG index 15d7845a..4e033e5e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -42,4 +42,6 @@ Fixes an issue causing IMDB collection to fail due to duplicate keys Removed Blog from the Navigation due to lack of time for updating/maintaining it Fixes #2354 by updating version of tmdbapi dependency Added Start Time, Finished and Run Time to Summary of run. -Fixed an issue where custom repositories would not work correctly if the URL did not end in a trailing `/` character. \ No newline at end of file +Fixed an issue where custom repositories would not work correctly if the URL did not end in a trailing `/` character. +Kometa will now check for `.yaml` extension in filenames if `.yml` is not found and vice-versa + diff --git a/VERSION b/VERSION index 084402da..975c3b1e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.1.0-build30 +2.1.0-build31 diff --git a/modules/meta.py b/modules/meta.py index b49bf620..3d4eb47e 100644 --- a/modules/meta.py +++ b/modules/meta.py @@ -152,10 +152,15 @@ class DataFile: content_path = os.path.abspath(os.path.join(file_path, "default.yml") if translation else file_path) dir_path = file_path if not os.path.exists(content_path): - if file_type == "Default": - raise Failed(f"File Error: Default does not exist {file_path}") + if content_path.endswith(".yml") and os.path.exists(content_path[:-4] + ".yaml"): + content_path = content_path[:-4] + ".yaml" + elif content_path.endswith(".yaml") and os.path.exists(content_path[:-5] + ".yml"): + content_path = content_path[:-5] + ".yml" else: - raise Failed(f"File Error: File does not exist {content_path}") + if file_type == "Default": + raise Failed(f"File Error: Default does not exist {file_path}") + else: + raise Failed(f"File Error: File does not exist {content_path}") yaml = self.config.Requests.file_yaml(content_path, check_empty=True) if not translation: logger.debug(f"File Loaded From: {content_path}")