From 96279ced1cf7813045c04b17bdcc29f42a2dc83d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Menke?= Date: Mon, 2 Nov 2020 12:51:27 +0100 Subject: [PATCH] fixes #200, --only-print-filenames - live photos were printed, even though already downloaded --- CHANGELOG.md | 2 ++ icloudpd/base.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ab9e2256..4679113f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/icloudpd/base.py b/icloudpd/base.py index 2a16a292a..7a2201bd3 100755 --- a/icloudpd/base.py +++ b/icloudpd/base.py @@ -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: