Skip to content

Commit

Permalink
fixes icloud-photos-downloader#200, --only-print-filenames
Browse files Browse the repository at this point in the history
- live photos were printed, even though already downloaded
  • Loading branch information
menkej committed Nov 2, 2020
1 parent b1cddb5 commit 96279ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- fix: --only-print-filenames option displays filenames (live photos) of files that have already been downloaded #200

## 1.7.0 (2020-11-1)

- fix: --log-level option [#194](https://github.com/icloud-photos-downloader/icloud_photos_downloader/pull/194)
Expand Down
2 changes: 1 addition & 1 deletion icloudpd/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ def download_photo(counter, photo):

lp_file_exists = os.path.isfile(lp_download_path)

if only_print_filenames:
if only_print_filenames and not lp_file_exists:
print(lp_download_path)
else:
if lp_file_exists:
Expand Down

0 comments on commit 96279ce

Please sign in to comment.