Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow xmp sidecar plists in XML format #1061

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

euank
Copy link
Contributor

@euank euank commented Jan 18, 2025

Some older files seem to use that format.

I have a file from early 2020 in my iCloud which has an XML plist, so it seems plausible apple used to upload them in that format?

I obviously don't remember how I actually added that file or when exactly, but you know, it's there.

Fixes #1059

@AndreyNikiforov
Copy link
Collaborator

can you add tests for files with plist in xml format, pls?

@AndreyNikiforov
Copy link
Collaborator

can you add tests for files with plist in xml format, pls?

@euank any chance you can add tests soon, so we can merge the fix?

@euank
Copy link
Contributor Author

euank commented Jan 23, 2025

Will do! Apologies for the slow response, I've been off on vacation, but I'll get to it either this evening, or this weekend

Some older files seem to use that format.

I have a file from early 2020 in my iCloud which has an XML plist, so it
seems plausible apple used to upload them in that format?

I obviously don't remember how I actually added that file or when
exactly, but you know, it's there.

Fixes icloud-photos-downloader#1059

I've also run ./scripts/format and added a unit test
@euank
Copy link
Contributor Author

euank commented Jan 23, 2025

Updated the unit tests to include the data that originally errored out, hopefully that level of testing makes sense to you!

@AndreyNikiforov AndreyNikiforov merged commit 9c88079 into icloud-photos-downloader:master Jan 23, 2025
372 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OverflowError: cannot fit 'int' into an index-sized integer when using '--xmp-sidecar'
2 participants