Open xob0t opened 3 months ago
Yeah, that would be amazing! :)
Right now this tool is really handy to re-upload any google photo media that is not in an album, which in my case, was responsible for about 50% of storage. The rest would require keeping the album associations like you're proposing here.
I suppose this could just be a CSV that gets exported by the tookit before doing a move, then ingested after re-upload to automate restoring the existing albums?
Have you thought of what is sufficient to uniquely identify photos? Filename won't cover all cases (but might be OK if it could ignore any possible collisions before doing anything to the files). Does the "undocumented api" export file checksums? That would be nice :)
I suppose this could just be a CSV that gets exported by the tookit before doing a move, then ingested after re-upload to automate restoring the existing albums?
Yes, but i'm thinking json instead of csv
Have you thought of what is sufficient to uniquely identify photos? Filename won't cover all cases (but might be OK if it could ignore any possible collisions before doing anything to the files). Does the "undocumented api" export file checksums? That would be nice :)
Filename + size would be enough I guess. Checksums would be nice, but api does not expose them.
There is a way to do it with the current capabilities of the script, but it requires more manual action.
I have not tested it myself, but it should work.
I have a POC in my fork that worked for me to get down to 0 bytes of google photo quota usage, while keeping all the photos, and seemingly in the correct albums. There are some downsides - more on them later. @xob0t let me know if you have any interest in merging it in, but be warned I don't have much experience with JS.
The workflow I was using is as follows:
@oryjkov great, i'll take a look when i get the time!
Suppose you want to reupload you media from a Pixel device, but downloading, deleting and uploading will remove all reuploaded media from all albums. To solve this, album info for each item can be extracted and then imported to restore the album assignment.