Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bturkus committed Oct 5, 2023
2 parents 83e47e7 + b5534d6 commit be2d3eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ami_scripts/create_object_bags.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion ami_scripts/json_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit be2d3eb

Please sign in to comment.