Skip to content

KeyError: <AssetVersionSize.ORIGINAL: 'original'> if download with --size adjusted --size alternative #926

@xbd-gh

Description

@xbd-gh

Overview
KeyError: <AssetVersionSize.ORIGINAL: 'original'> if download with --size adjusted --size alternative (not use --force-size)
threr was only one photo in my icloud with not edited, when i download with --size adjusted --size alternative (not use --force-size),
after got one photo ,then i got the info: KeyError: <AssetVersionSize.ORIGINAL: 'original'>
then i edit the photo ,run icloudpd again .after got one edited photo ,i got the same error message.

Steps to Reproduce

  1. there is only one photo in cloud (not edited)
  2. icloudpd --directory .\photos --domain cn --username xx --password xx --folder-structure none --size adjusted --size alternative --file-match-policy name-id7
  3. edit the photo
  4. icloudpd --directory .\photos --domain cn --username xx --password xx --folder-structure none --size adjusted --size alternative --file-match-policy name-id7

Expected Behavior
no error info

Actual Behavior
exit with error

Context
after debug,I found the return of disambiguate_filenames only include adjusted ,when download_size=alternative,download_size will be changed to original , but no original in the return of disambiguate_filenames
ver

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions