Skip to content

Commit

Permalink
Fix: Script did not accept equal negative album ranges such as '-2,-2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Salvoxia committed Feb 14, 2025
1 parent e004563 commit c8ade9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions immich_auto_album.py
Original file line number Diff line number Diff line change
Expand Up @@ -1835,8 +1835,8 @@ def find_user_by_name_or_email(name_or_email: str, user_list: list[dict]) -> dic
not is_integer(album_levels_range_split[1]),
int(album_levels_range_split[0]) == 0,
int(album_levels_range_split[1]) == 0,
(int(album_levels_range_split[1]) < 0 >= int(album_levels_range_split[0])),
(int(album_levels_range_split[0]) < 0 >= int(album_levels_range_split[1])),
(int(album_levels_range_split[1]) < 0 <= int(album_levels_range_split[0])),
(int(album_levels_range_split[0]) < 0 <= int(album_levels_range_split[1])),
(int(album_levels_range_split[0]) < 0 and int(album_levels_range_split[1]) < 0 and int(album_levels_range_split[0]) > int(album_levels_range_split[1]))
]):
logging.error(("Invalid album_levels range format! If a range should be set, the start level and end level must be separated by a comma like '<startLevel>,<endLevel>'. "
Expand Down

0 comments on commit c8ade9d

Please sign in to comment.