This commit is contained in:
Jordon Brooks 2023-08-23 21:01:01 +01:00
parent db43239b3d
commit 98df94b180
3 changed files with 29 additions and 11 deletions

View file

@ -32,11 +32,11 @@ def load_video_metadata(list_path):
- list: List of dictionaries, each containing video details.
"""
LOGGER.trace(f"Entering: load_video_metadata({list_path})")
#LOGGER.trace(f"Entering: load_video_metadata({list_path})")
try:
with open(list_path, "r") as json_file:
file = json.load(json_file)
LOGGER.trace(f"load_video_metadata returning: {file}")
#LOGGER.trace(f"load_video_metadata returning: {file}")
return file
except FileNotFoundError:
LOGGER.error(f"Metadata file {list_path} not found.")