Repository navigation
iclouddrive: add icloud photos support - #8734
coughlanio wants to merge 1 commit into
Conversation
116f6da to
722d48c
Compare
Recent updates since yesterday:Architecture improvements:
API challenges (the joys of undocumented APIs!):
I'm continuing to test and refine these issues. |
|
I don't know if this helps but I have noticed some of the same duplication if you request your photos via data and privacy from Apple |
|
Thanks for your work! 🚀 Out of curiosity: does this add support for also uploading photos and if not, do you plan adding it here? |
|
@coughlanio just out of curiosity, you left the last todo list item unticked :
Does that mean you are still working on this PR ? I would love to see it reviewed and potentially added |
|
@ajnart I've been short on time so I've not made any progress - current state of this is very much a functional POC with some rough edges - if someone wants to take a look, be my guest! |
|
@JoshPaterson damn sorry, wrong id - I meant #9234 |
Add read-only iCloud Photos support to the existing iclouddrive backend via `service = photos` config option. Also includes auth improvements on top of rclone#9209's SRP authentication. **Photos features:** - 3-level hierarchy: libraries (Personal + Shared Photo Library) → albums → photos/videos - server-side smart albums (All Photos, Videos, Favorites, Screenshots, Live, Bursts, Panoramas, Slo-mo, Time-lapse, Portrait, Long Exposure, Animated, Hidden, Recently Deleted) - User-created albums and nested album folders - Live Photo `.MOV` companions as first-class entries - Edited photo versions (`-edited` suffix) and RAW alternatives - Duplicate filename dedup for camera counter wrap collisions - Parallel cold listing for large albums - Delta sync via CloudKit `changes/zone` - warm listings near-instant from disk cache - Disk cache (libraries, albums, photos) with atomic writes for crash safety - `ChangeNotify` support for FUSE mounts via `changes/zone` polling - `ListR` support for `--fast-list` and recursive operations - `--metadata` support - width, height, added-time, favorite, hidden - Fresh download URLs per file - no stale URL failures on long copies - FUSE mount documentation with recommended flags **Auth improvements over rclone#9209:** - SMS 2FA fallback for users without trusted Apple devices - Explicit push notification request - fixes iOS/macOS 26.4+ where 409 no longer auto-pushes - Thread safety for concurrent FUSE callers (mutexes on session and client state) - Session endpoint caching - skips ~5s `/validate` round-trip on warm start - `Disconnect` support - clears auth state + disk cache - PCS cookie support for Advanced Data Protection accounts, including trusted-device approval for PCS cookies Built on @coughlanio's Photos PoC (Closes rclone#8734) and @mikegillan's SRP auth (rclone#9209). Fixes rclone#7982 Co-authored-by: Chris Coughlan <[email protected]>
What is the purpose of this change?
This PR adds iCloud Photos support to the existing iclouddrive backend, creating a unified iCloud backend that allows users to access both iCloud Drive and iCloud Photos through a single backend with service selection.
Key changes:
Technical Implementation:
serviceconfiguration option to select between "drive" and "photos"icloud.goas the main router handling authentication and service routingicloudphotos.gowithin the iclouddrive packageapi/client.go,api/session.go)Was the change discussed in an issue or in the forum before?
#7982
Checklist