mholt / timeliner

All your digital life on a single timeline, stored locally -- DEPRECATED, SEE TIMELINIZE (link below)
https://timelinize.com
GNU Affero General Public License v3.0
3.57k stars 116 forks source link

parsing width as int: strconv.Atoi: parsing "": invalid syntax (width=) #35

Open rpajarola opened 5 years ago

rpajarola commented 5 years ago

I get the following error message, and timeliner consistently doesn't download all pictures

2019/05/29 05:02:01 [ERROR][google_photos/xxx@xxx] Processing item graph: processing node of item graph: assembling item for storage: getting item metadata: parsing width as int: strconv.Atoi: parsing "": invalid syntax (width=)

mholt commented 5 years ago

Does it say that for every item? It appears that your media library has no "width" information, which seems like a bug in Google Photos API at a glance.

If you could use the "Try this API" thing on the right side of this page for mediaItems.list, it would be nice to see what the full response is actually like: https://developers.google.com/photos/library/reference/rest/v1/mediaItems/list

Better yet, put a log.Printf into the code to see what the JSON is that we're getting back from the API in your case.