Skip to content

Commit

Permalink
Normalizes unicode for album names, #1475
Browse files Browse the repository at this point in the history
  • Loading branch information
RhetTbull committed Apr 28, 2024
1 parent b33a223 commit ba768eb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions osxphotos/cli/import_cli.py
Expand Up @@ -184,11 +184,10 @@ def add_photo_to_albums(
"""Add photo to one or more albums"""
albums = []
for a in album:
albums.extend(
render_photo_template(
album_names = render_photo_template(
filepath, relative_filepath, a, exiftool_path, sidecar
)
)
albums.extend(normalize_unicode(aa) for aa in album_names)
verbose(
f"Adding photo [filename]{filepath.name}[/filename] to {len(albums)} {pluralize(len(albums), 'album', 'albums')}"
)
Expand Down

0 comments on commit ba768eb

Please sign in to comment.