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

Uploading but with date folders structure #4

Open
Grzegosz opened this issue Jan 18, 2025 · 6 comments
Open

Uploading but with date folders structure #4

Grzegosz opened this issue Jan 18, 2025 · 6 comments
Labels
enhancement New feature or request

Comments

@Grzegosz
Copy link

Hi.
Using Synology Photos I can upload files in Timeline view and then Synology creates folders like year/month. Unfortunately there is cap 5k files and I have hundreds thousands of pics and videos so can't do it manually drag and drop to Photos app.
Using File Explorer when I copy Synology doesn't create date folders.
Is your script able to upload photos and videos but as timeline view? So it will create year/month folders during upload. Thanks.

@Caleb9
Copy link
Owner

Caleb9 commented Jan 18, 2025

Hi!

At the moment the app doesn't have this functionality. It's an idea for a feature though, I'll see if it's even possible when I have some time to work on it.

@Caleb9 Caleb9 added the enhancement New feature or request label Jan 18, 2025
@Grzegosz
Copy link
Author

Ok, thanks.
I need that feature quickly, so will try to figure it out in bash maybe as I don't know F#. Will paste it here for reference if I would do it with success :)

@Caleb9
Copy link
Owner

Caleb9 commented Jan 18, 2025

Great. This one is written in Rust though, just in case ;)

@Caleb9
Copy link
Owner

Caleb9 commented Jan 18, 2025

Btw, I have an old project here which maybe could be sufficient for your use case, if you can accept that folders are named like YYYY_MM_DD (e.g. 2024_02_29). It is inspired by how Canon EOS utility imports files. It is only for copying files so it would require mounting the Photos folder on your system. But if you need to have a YYYY/MM (e.g. 2024/02) structure, then it's not gonna work.

@Grzegosz
Copy link
Author

Grzegosz commented Jan 20, 2025

Synology Photos drag and drop in Timeline view - photos and videos are correctly placed to year/month folders. So picture taken 2023.04 is put into 2023/04 directory automatically which is perfect. This is what I would like to have, some script that is doing same - taking picture and puts it in correct directory.
I have played with SYNO.FotoTeam.Upload.Item API but no success. Photos uploaded via browser and Synology Photos are correctly recognized but using API not (going under 2025/01 folder which is current month not pic true date).

I have also found this project, but also not working as expected, same issue:
https://github.com/Hawk-Zhou/synology_uploader/blob/main/synology_uploader.py

So to sun this up: would like to select picture and upload it to Synology timeline view, which correctly recognize picture taken date.

@Caleb9
Copy link
Owner

Caleb9 commented Feb 8, 2025

I think as a workaround it might be easier to write a relatively simple script e.g. in Python, which will inspect the file's EXIF data (there are libraries to do that) and just create those directories and do a "regular" copy of the files to a shared folder mounted in your file system. You won't need to mess around with the undocumented Synology Photos API this way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants