boredazfcuk / docker-icloudpd

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

folder structure when using shared library #465

Closed blackfox33 closed 5 months ago

blackfox33 commented 9 months ago

I could not manage to get my desired folder structure for the shared library. In the old container I got it like this: .../apple/iCloud_Backup_Shared/ and then year/month. For example: .../apple/iCloud_Backup_Shared/2023/12/file1234.heic

I managed to set Folder Structure: {:%Y/%m} by using libraries_with_dates: true. But now it does create a subfolder using the name of the shared library, so it looks like that: .../apple/iCloud_Backup_Shared/SharedSync-{ID_of_the_shared_library}/2023/12/file1234.heic

How can I get rid of the subfolder with the shared library ID and set it to the old structure?

rustig136 commented 8 months ago

Hi, are you using the 'iCloud Shared Photo Library' and is icloudpd downloading all photos and videos from the shared library?

Thanks!

blackfox33 commented 8 months ago

Hi, yes I do and it is downloading all photos and videos correctly. It is just this subfolder with the name + ID from the Shared Library that I would like to get rid of and instead download to my desired directory.

rustig136 commented 8 months ago

Cool, I understand and using a quick network web inspector I could find my ID. Thanks for your prompt reply!

rustig136 commented 8 months ago

For some reason is my icloudpd not downloading the items from the shared library. I have tried photo_library="all libraries" and "PrimarySync,SharedSync-########-####-####-####-############". So far only my personal library was 100% synced.. Do you want to share your anonymised config with me please?

blackfox33 commented 8 months ago

I see that you opened your own issue as this belongs not here. I will reply to you there.

mafis commented 8 months ago

Possible you missing that config: libraries_with_dates: true ? Is default to false and I get into the same problem and read that. @blackfox33 @rustig136

rustig136 commented 8 months ago

Hello @mafis I appreciate your feedback greatly—it worked wonders. I have to confess that initially, the new setting didn't take effect when I added it to the compose-docker.yml file as an environment variable. However, upon closer inspection of the icloudpd.conf, I noticed "libraries_with_dates:false." This led me to believe that the new setting wasn't applied. After manually modifying the conf file, everything started working as anticipated, and I now have my two libraries in the folder structure as desired.

Thank you very much!