GRsync.py is limited to a certain number of images
Opened this issue · 0 comments
mneumann commented
/v1/photos
does not return all images on the camera. Once you have roughly more than 1000 images, it won't be able to sync them.
The API has a limit=xxx
query parameter. Even when you increase the limit to a very high value, it won't return a list of all photos. This is where after=path/file
query parameter can be used.
So you fetch the first list of images by specifiying /v1/photos
, select the last image in the list and do another request
to /v1/photos?after=139RICOH/R0009466.JPG
(where 139RICOH/R0009466.JPG would be your last image) and then iterate until you get an empty result, similar to my Elixir grsync:
https://github.com/mneumann/ricoh-gr-iii-tools/blob/main/grsync/grsync.exs#L43