-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Live photos are downloaded with the wrong extension #1
Comments
I'm running into the same issue. Did you happen to work out a solution? 🤞 I have over 5TB of photos/videos in GP, and using Google Takeout is an absolute nightmare, so I'd really love to be able to use gphotosdl to back everything up. |
@ncw Apologies for the ping. ~98% of my pictures are live photos, and I can't wait to use gphotosdl to download my entire Google Photos library. Is it possible to add the ability to unzip the motion photo archive files? or maybe just leave them as .zip instead of using .jpg/.heic? Thank you for making this tool for us! I feel trapped with so much data in Google Photos, and takeout being an absolute mess (and almost impossible to get a full archive downloaded since it's so large). |
What is happening is that rclone uses the name that google photos uses to save the image. So if you look at one of your heic images on the google photos website and click the info button you'll see something like this And I suspect in there the name is Unfortunately it is rclone that names the files not I think the answer to this might be to have a script which detects the zip files and unpacks them afterwards. Or alternatively If someone could attach a live photo to this issue for me to experiment with I'd be grateful as I don't have any! |
Thank you for looking into this! It would be neat to have the script detect and unzip the files as it goes (and keep the image and the video file), although if it's not keeping the original file, I assume resuming would be a problem when I hit the rate limit and have to start the script from scratch? I have attached a sample file below. If it ends up breaking other things (ie. the ability to have the script resume the transfers), it would probably be better to have a separate script that detects zip files and extracts them after all files are transferred. Just wanted to say thank you again for investing the time to make this. I was so excited when I found it. I'm currently struggling with API limits, but I'm tweaking my rclone command to try to slow everything down to avoid it. I might have to run the script for a few hours, then cancel for a few hours, and then run it again, etc. |
First, thanks for building this tool. I think many users would like to back up their Google Photos in original quality, and this might be the way to go.
I played a bit with gphotosdl and found that live photos that normally are downloaded as a zip archive from the web UI are incorrectly named to a picture file format like
.jpg
,.heic
, etc. For example,photos.zip
(containingimg_123.jpg
andimg_123.mov
) is named toimg_123.JPG
.A possible solution is to first check if the file is a zip archive and then unzip it and serve the matching file.
gphotosdl/main.go
Lines 275 to 301 in 8d9e256
The text was updated successfully, but these errors were encountered: