simonmitchell / rocc

A Swift framework for remote control of digital Cameras
MIT License
123 stars 15 forks source link

UPnP code not finding date folders for whole of SD card contents #33

Closed simonmitchell closed 4 years ago

simonmitchell commented 4 years ago

Something is happening currently to certain camera models (perhaps not formatting SD card regularly even, as one user reported this fixing his issue) which means that our code isn’t finding date folders via UPnP for all dates that the camera has stored.

Some preliminary investigation shows that on Camrote we start by searching for a folder with ObjectID “0” we then get a single result which is “PhotoRoot”... which also has a unique identifier based single folder, and when we ask this for all subfolders we don’t get all of the date folders. It’s possible we need to paginate the request to this folder or make it sort in ascending date order rather than descending or similar.

simonmitchell commented 4 years ago

Seems this is an issue around the user having taken photos on more than 50 days... even when Sony ask for 100 results they are returned them in batches of 50.

<NumberReturned>
    50
</NumberReturned>
<TotalMatches>
    66
</TotalMatches>

Will need to manually paginate through until we've loaded all matches!