gopro-py-api icon indicating copy to clipboard operation
gopro-py-api copied to clipboard

Downloading more than 999 timelapse-images

Open mabeckgit opened this issue 6 years ago • 1 comments

Describe the bug First: Thanks a lot for providing this API, it saved us so much work!

The GoPro 7 Black (and I assume others too) save files in subfolders, each subfolder containing up to 999 files. When I use the downloadAll function in GoProCamera.py it only downloads the latest folder and none of the older ones. In my application I let the GoPro run for hours and create about 3000+ images and would love to download them all in one go afterwards.

Edit: This seems only to happen when taking a timelapse of 1000+ images

2nd Edit: Now I also encountered the problem with just images (not timelapse). :(

To Reproduce Steps to reproduce the behavior:

  1. Take more than 999 images
  2. run GoProCamera.downloadAll('all')

Expected behavior Downloading all images.

Desktop (please complete the following information):

  • OS: Windows 10
  • GoPro Hero 7 Black

I should note, I changed the code a bit, such that a destination-folder can be given to downloadAll. The changes exactly are: Line 890: def downloadAll(self, option="", prefix=''): and Line 904: self.downloadMedia(folder, file, custom_filename=prefix+folder+"-"+file)

nothing else was changed.

mabeckgit avatar Nov 27 '19 20:11 mabeckgit

Seeing a similar issue with GoPro Hero 5 Black. I currently have two folders on the Cam: 100GOPRO and 101GOPRO

downloadAll() only downloads the first file from each folder.

dmt0 avatar Jun 24 '21 17:06 dmt0