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

Upload does not include photo Description/Caption #22

Open
ckpager opened this issue Feb 9, 2023 · 0 comments
Open

Upload does not include photo Description/Caption #22

ckpager opened this issue Feb 9, 2023 · 0 comments

Comments

@ckpager
Copy link

ckpager commented Feb 9, 2023

Regarding eshmu's upload.py, line 160:
create_body = json.dumps({"albumId":album_id, "newMediaItems":[{"description":"","simpleMediaItem":{"uploadToken":upload_token.content.decode()}}]}, indent=4)

I am trying to upload JPGs to Google Photos with a description. However, when I set the description, this field is entirely ignored by Google Photos:
create_body = json.dumps({"albumId":album_id, "newMediaItems":[{"description":"THIS TEXT IS IGNORED","simpleMediaItem":{"uploadToken":upload_token.content.decode()}}]}, indent=4)

How can this very helpful python script be modified to include the photo captions?
This is the issue to be addressed (but in python):
https://stackoverflow.com/questions/72639040/programmatically-set-a-google-photos-caption

Thank you!

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

No branches or pull requests

1 participant