From b5534d682cc79d82a356e69d4226329e20f82079 Mon Sep 17 00:00:00 2001 From: bturkus Date: Wed, 4 Oct 2023 16:58:41 -0400 Subject: [PATCH] small fixes add iso to json updater add tif to object bagger --- ami_scripts/create_object_bags.py | 2 +- ami_scripts/json_updater.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ami_scripts/create_object_bags.py b/ami_scripts/create_object_bags.py index 76030b97..5d173b20 100755 --- a/ami_scripts/create_object_bags.py +++ b/ami_scripts/create_object_bags.py @@ -37,7 +37,7 @@ def make_object_dirs(source_directory, file_list): new_file_path = source_directory / cms_id / file_path new_file_path.parent.mkdir(parents=True, exist_ok=True) - if old_file_path.suffix in ('.mkv', '.json', '.mp4', '.dv', '.flac', '.iso', '.cue', '.mov', '.jpg'): + if old_file_path.suffix in ('.mkv', '.json', '.mp4', '.dv', '.flac', '.iso', '.cue', '.mov', '.jpg', '.tif'): shutil.move(str(old_file_path), str(new_file_path)) else: tags.append(old_file_path) diff --git a/ami_scripts/json_updater.py b/ami_scripts/json_updater.py index b7974dda..92bf66a7 100755 --- a/ami_scripts/json_updater.py +++ b/ami_scripts/json_updater.py @@ -21,7 +21,7 @@ def get_media_files(source_directory): json_files = [] for item in source_directory.glob('**/*'): - if item.is_file() and item.suffix in ('.flac', '.mp4', '.mkv', '.wav'): + if item.is_file() and item.suffix in ('.flac', '.mp4', '.mkv', '.wav', '.iso'): media_files.append(item) elif item.is_file() and item.suffix == '.json': json_files.append(item)