Skip to content

Commit

Permalink
Fix crash when creating xmp sidecar: Some images have a different typ…
Browse files Browse the repository at this point in the history
…e fo value in 'adjustmentSimpleDataEnc' field
  • Loading branch information
chkuendig committed Dec 21, 2024
1 parent c591dc4 commit aff9bb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/icloudpd/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ def download_photo_(counter: Counter, photo: PhotoAsset) -> bool:
download.set_utime(download_path, created_date)
logger.info("Downloaded %s", truncated_path)

if xmp_sidecar and download_size != AssetVersionSize.ADJUSTED:
if xmp_sidecar:
generate_xmp_file(logger, download_path, photo._asset_record)

# Also download the live photo if present
Expand Down

0 comments on commit aff9bb6

Please sign in to comment.