boredazfcuk / docker-icloudpd

An Alpine Linux container for the iCloud Photos Downloader command line utility
1.58k stars 149 forks source link

Can´t sync my Share folder photos with icloudpd docker #602

Open apriliars3 opened 3 days ago

apriliars3 commented 3 days ago

I can't sync my 53 shared folders that I have in iCloud with my apriliars3@gmail.com account, but instead I do have my photos and personal albums that I have on my iPhone synchronized.

Is it possible to configure the container to synchronize the photos of the iCloud personal folder and also the 53 shared folders that I have in iCloud and can synchronize with the iCloud app from Windows?

Captura de pantalla 2024-07-03 230011

Captura de pantalla 2024-07-03 231218

I use docker compose with this configuration with Container Maganer on DSM.

services: icloudpd: container_name: icloudpd restart: always environment:

And icloudpd.conf on /volume1/docker/icloudp

agentid= albums_with_dates=false align_raw=as-is apple_id=apriliars3@gmail.com auth_china=false authentication_type=MFA auto_delete=false bark_device_key= bark_server= content_source_url= convert_heic_to_jpeg=false debug_logging=false delete_accompanying=false delete_after_download=false delete_empty_directories=false delete_notifications=true dingtalk_token= directory_permissions=750 discord_id= discord_token= download_notifications=true download_path=/iCloud file_match_policy=name-size-dedup-with-suffix file_permissions=640 folder_structure={:%Y/%m} force_gid=false gotify_app_token= gotify_https= gotify_server_url= group=users group_id=100 icloud_china=false iyuu_token= jpeg_path= jpeg_quality=90 keep_unicode=false libraries_with_dates=false live_photo_mov_filename_policy=suffix live_photo_size=original media_id_delete= media_id_download= media_id_expiration= media_id_startup= media_id_warning= msmtp_args=--tls-starttls=off msmtp_from= msmtp_host= msmtp_pass= msmtp_port= msmtp_tls=on msmtp_to= msmtp_user= name= nextcloud_delete=false nextcloud_password= nextcloud_upload=false nextcloud_url= nextcloud_username= notification_days=3 notification_type=Telegram photo_album="all albums" photo_library="all libraries" photo_size=original prowl_api_key= pushover_sound= pushover_token= pushover_user= recent_only= set_exif_datetime=false single_pass=false skip_album= skip_check=false skip_download=false skip_library= skip_live_photos=false skip_videos=false startup_notification=true synchronisation_delay=0 synchronisation_interval=43200 synology_ignore_path=false

This is the logs of container

2024-07-03 22:17:13 INFO Auto delete: false 2024-07-03 22:17:14 INFO Delete after download: false 2024-07-03 22:17:14 INFO Delete empty directories: false 2024-07-03 22:17:14 INFO Photo size: original 2024-07-03 22:17:14 INFO Align RAW: as-is 2024-07-03 22:17:14 INFO Single pass mode: false 2024-07-03 22:17:14 INFO Skip download check: false 2024-07-03 22:17:14 INFO Skip live photos: false 2024-07-03 22:17:14 INFO Number of most recently added photos to download: Download All Photos 2024-07-03 22:17:14 INFO Downloading photos from album(s): all albums 2024-07-03 22:17:14 INFO Stop downloading when prexisiting files count is: Download All Photos 2024-07-03 22:17:14 INFO Live photo size: original 2024-07-03 22:17:14 INFO Skip videos: false 2024-07-03 22:17:14 INFO Convert HEIC to JPEG: false 2024-07-03 22:17:14 INFO Telegram notifications enabled 2024-07-03 22:17:14 INFO Telegram token: ccccccccccccccccccccccccccccccccccccc 2024-07-03 22:17:14 INFO Telegram chat id: xxxxxxx 2024-07-03 22:17:14 INFO Telegram polling: true 2024-07-03 22:17:15 INFO Telegram notification URL: https://api.telegram.org/dfsgadfsghsdfhsdfghsfghsfghshshhs 2024-07-03 22:17:15 INFO Check Telegram bot initialised... 2024-07-03 22:17:23 INFO - Bot has been initialised. 2024-07-03 22:17:23 INFO Latest update id: 2334522355634 2024-07-03 22:17:23 INFO Sending Telegram startup notification 2024-07-03 22:17:23 INFO Downloading from: icloud.com 2024-07-03 22:17:23 INFO Authentication domain: com 2024-07-03 22:17:23 INFO Ignore Synology extended attribute directories: Disabled 2024-07-03 22:17:23 INFO Container initialisation complete 2024-07-03 22:17:24 INFO Directory is writable: /config/python_keyring/ 2024-07-03 22:17:24 INFO Check download directory mounted correctly... 2024-07-03 22:17:24 INFO Failsafe file /iCloud/.mounted exists, continuing 2024-07-03 22:17:24 INFO Directory is writable: /config/python_keyring/ 2024-07-03 22:17:24 INFO Keyring file exists, continuing 2024-07-03 22:17:24 INFO Sync user: apriliars3 2024-07-03 22:17:24 INFO Synchronisation starting at 22:17:24 2024-07-03 22:17:24 INFO Keyring file exists, continuing 2024-07-03 22:17:24 INFO Check download directory mounted correctly... 2024-07-03 22:17:24 INFO Failsafe file /iCloud/.mounted exists, continuing 2024-07-03 22:17:25 INFO Check for new files using password stored in keyring file 2024-07-03 22:17:25 INFO Generating list of files in iCloud. This may take a long time if you have a large photo collection. Please be patient. Nothing is being downloaded at this time /iCloud/2024/07/IMG_0466.PNG /iCloud/2024/07/IMG_0465.PNG /iCloud/2024/07/IMG_0464.PNG /iCloud/2024/07/82064BF7-4F1D-4E9F-A69D-CAAE1536B879.JPG /iCloud/2024/07/IMG_0462.PNG /iCloud/2024/07/IMG_0461.PNG /iCloud/2024/07/71ae00ef-f2c9-46cb-8e10-3d46efb95e50.mp4 /iCloud/2024/07/400aea15-2cc2-407c-bb2f-9c0d5e05727d.mp4 /iCloud/2024/06/IMG_0435.HEIC 2024-07-03 22:17:49 INFO Check successful 2024-07-03 22:17:49 INFO New files detected: 9 2024-07-03 22:18:01 INFO Downloading album: All Photos 2024-07-03 22:18:14 INFO Downloading 85 original photos and videos to /iCloud ... 2024-07-03 22:18:19 INFO All photos have been downloaded 2024-07-03 22:18:20 INFO Downloading album: Time-lapse 2024-07-03 22:18:35 INFO Downloading 0 original photos and videos to /iCloud ... 2024-07-03 22:18:36 INFO All photos have been downloaded 2024-07-03 22:18:36 INFO Downloading album: Videos 2024-07-03 22:18:54 INFO Downloading 2 original photos and videos to /iCloud ... 2024-07-03 22:18:56 INFO All photos have been downloaded 2024-07-03 22:18:57 INFO Downloading album: Slo-mo 2024-07-03 22:19:13 INFO Downloading 0 original photos and videos to /iCloud ... 2024-07-03 22:19:13 INFO All photos have been downloaded 2024-07-03 22:19:14 INFO Downloading album: Bursts 2024-07-03 22:19:27 INFO Downloading 0 original photos and videos to /iCloud ... 2024-07-03 22:19:27 INFO All photos have been downloaded 2024-07-03 22:19:29 INFO Downloading album: Favorites 2024-07-03 22:19:51 INFO Downloading 0 original photos and videos to /iCloud ... 2024-07-03 22:19:52 INFO All photos have been downloaded 2024-07-03 22:19:53 INFO Downloading album: Panoramas 2024-07-03 22:20:04 INFO Downloading 0 original photos and videos to /iCloud ... 2024-07-03 22:20:04 INFO All photos have been downloaded 2024-07-03 22:20:05 INFO Downloading album: Screenshots 2024-07-03 22:20:18 INFO Downloading 20 original photos and videos to /iCloud ... 2024-07-03 22:20:20 INFO All photos have been downloaded 2024-07-03 22:20:21 INFO Downloading album: Live 2024-07-03 22:20:36 INFO Downloading 0 original photos and videos to /iCloud ... 2024-07-03 22:20:36 INFO All photos have been downloaded 2024-07-03 22:20:37 INFO Downloading album: Recently Deleted 2024-07-03 22:20:52 INFO Downloading 0 original photos and videos to /iCloud ... 2024-07-03 22:20:53 INFO All photos have been downloaded 2024-07-03 22:20:54 INFO Downloading album: Hidden 2024-07-03 22:21:26 INFO Downloading 0 original photos and videos to /iCloud ... 2024-07-03 22:21:27 INFO All photos have been downloaded 2024-07-03 22:21:27 INFO Downloading album: WhatsApp 2024-07-03 22:21:41 INFO Downloading 25 original photos and videos to /iCloud ... 2024-07-03 22:21:43 INFO All photos have been downloaded 2024-07-03 22:21:44 INFO Downloading album: Imgur 2024-07-03 22:21:56 INFO Downloading 0 original photos and videos to /iCloud ... 2024-07-03 22:21:56 INFO All photos have been downloaded 2024-07-03 22:21:57 INFO Downloading album: Xega Album 2024-07-03 22:22:08 INFO Downloading 0 original photos and videos to /iCloud ... 2024-07-03 22:22:08 INFO All photos have been downloaded 2024-07-03 22:22:09 INFO Synchronisation complete for apriliars3 2024-07-03 22:22:09 INFO Web cookie expires: 2024-08-26 @ 22:31:40 2024-07-03 22:22:09 INFO Multifactor authentication cookie expires: 2024-08-02 @ 12:21:59 2024-07-03 22:22:09 INFO Days remaining until expiration: 29 2024-07-03 22:22:09 INFO Synchronisation ended at 22:22:09 2024-07-03 22:22:09 INFO Total time taken: 00:04:45 2024-07-03 22:22:09 INFO Next synchronisation at 10:17:24 2024-07-03 22:22:09 INFO Monitoring Telegram for remote commands prefix: apriliars3

boredazfcuk commented 3 days ago

No, it's not possible to do this.

For each shared library library you want to download, it will trigger a download run where the utility logs into iCloud.com and downloads all the photos in that shared library. Your scenario would trigger 53 logins in a short period of time.

The option to download files by photo album also uses this approach and during my testing, I found that when attempting to download from more than about 6-8 albums, Apple would force an MFA re-authentication. I guess it's their way of preventing bots from hammering authentication attempts.

If you want to download from your personal photo stream and shared libraries, you can setup two containers, one for the photo stream and a second for the shared libraries. I think this should work, as each container should be seen as a separate device, so hopefully not invalidate the first container's cookie. I've not tested though.