diff --git a/ami_scripts/create_object_bags.py b/ami_scripts/create_object_bags.py index 049d7ce3..d66efc8b 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)) print(f'Moving file: {old_file_path}') else: 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)