Re: Downloading only protected images

Marcus Meissner <[email protected]> Wed, 20 Oct 2021 14:17:09 +0200
Newsgroups gmane.comp.multimedia.gphoto.user
Message-ID <YXAIxZi0tmHrjW7Z@jet>
On Tue, Oct 19, 2021 at 09:15:08PM +0200, Peter Sonander wrote:
> Hi again!
> 
> I have now been enable to activate the playback button needed to add
> --set-config applicationmode=1
> 
> Now I receive an "unknown" PTP event 4007, which I from Nikon SDK has
> figured out is ObjectInfoChanged. I also receive a parameter which from the
> SDK documentation is supposed to be an objecthandle to the image. Is there
> anyway to use this handle to retrieve the properties of the image to check
> if it has been protected and if so start the download?
> 
> Has anyone tried to build this using GPhoto. Monitor the camera for changes,
> once an image gets protected download it.

So far we had no PTP_EC_ObjectInfoChanged support.

I just now have added support to libgphoto2 GIT.


If you protect/unprotect an image when wait-event is running it will report:

	FILECHANGED DSC_1119.JPG /store_00010001/DCIM/100NCZ_6

And you can adjust your tool to download on FILECHANGED events.

Ciao, Marcus