Skip to content

Commit

Permalink
RhetTbull#1778 Make sure to operate timewarp on selected pics only if…
Browse files Browse the repository at this point in the history
… neither --uuid nor --uuid-from-file are used
  • Loading branch information
oPromessa committed Jan 16, 2025
1 parent c390332 commit dba9e50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion osxphotos/cli/timewarp.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,8 @@ def timewarp_cli(
if uuid_from_file:
photos.extend(list(PhotosLibrary().photos(uuid=load_uuid_from_file(uuid_from_file))))

if len(photos) == 0:
# If neither uuid nor uuid_from_file is specified, then operate over selected photos
if not (uuid or uuid_from_file):
try:
photos.extend(PhotosLibrary().selection)
except Exception as e:
Expand Down

0 comments on commit dba9e50

Please sign in to comment.