-
Notifications
You must be signed in to change notification settings - Fork 20
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
Export and import media album info #3
Comments
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 :) |
Yes, but i'm thinking json instead of csv
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:
Downsides:
|
@oryjkov great, i'll take a look when i get the time! |
Thanks @oryjkov and @xob0t, I have a different use case where I need to create albums for uploaded photos. I can create a JSON file with a an array of "Album name" and list of productID of photos to be included in this album. I will start with @oryjkov code and try to make it work with my use case. I have never coded in javascript so it will take me some 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.
The text was updated successfully, but these errors were encountered: