Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
add iso to json updater
add tif to object bagger
  • Loading branch information
bturkus committed Oct 4, 2023
1 parent b87736d commit b5534d6
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))
else:
tags.append(old_file_path)
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 b5534d6

Please sign in to comment.