KonradIT / gopro-py-api

Unofficial GoPro API Library for Python - connect to GoPro via WiFi.
MIT License
1.4k stars 211 forks source link

GetMediaList error #193

Open tcazes opened 2 years ago

tcazes commented 2 years ago

Hi, i´m creating some integreation between python and Hero10. Gopto-py-api works well. But in some cases getMediaList method return a empty media vector. Even in the browser method return empy vector:

image

If i turnoff the camera and turn on it again, method respond correctly

image *ignore MP4 files here

In my project i need to start and stop timelapse photo, but monitoring all photos that was taken by camera in near-real-time. Basicaly i do thats steps:

  1. Call media list to get last media name (for file name and folder)
  2. Start Time lapse photo (0,5s)
  3. Async call camera to check if predicted files was created ( i need to do that because getMediaList return busy when timelapse photo are taken)
  4. Wait N seconds
  5. Stop TimeLapse
  6. Stop all asyn proccess

I´m using a Hero10 Black. With firmware version H21.01.01.40.70 (Labs) connected by USB Cable

Could this problem be with the firmware? Has anyone ever experienced this?

Thansk for your help